| Mirage Source http://miragesource.net/forums/ |
|
| Easy Warping http://miragesource.net/forums/viewtopic.php?f=210&t=3650 |
Page 1 of 2 |
| Author: | Labmonkey [ Sun Apr 27, 2008 10:58 pm ] |
| Post subject: | Easy Warping |
Again, this is mainly a tutorial for people coming from Elysium, though it does make using mirage much easier. It adds in an option to just type "/warp" instead of "/warptome" and "/warpmeto" and "/warpto" which can get really confusing and annoying. Just type "/warp" to go anywhere, to a player, to a map, or to the moon... well not really. Search in modgamelogic for Code: '// Mapper Admin Commands // I put my code under this block of code Code: ' Map Editor If LCase$(Mid$(MyText, 1, 10)) = "/mapeditor" Then frmMirage.Width = 14175 Call SendRequestEditMap MyText = vbNullString frmMirage.txtMyChat.Text = vbNullString Exit Sub End If You can put it anywhere you want in there really... Anyway here is the code. Code: ' Warping
If LCase$(Mid$(MyText, 1, 5)) = "/warp" Then If IsNumeric(Mid$(MyText, 6, Len(MyText) - 5)) Then MyText = Mid$(MyText, 6, Len(MyText) - 5) n = Val(MyText) ' Check to make sure its a valid map # If n > 0 And n <= MAX_MAPS Then Call WarpTo(n) Else Call AddText("Invalid map number.", Red) End If Else Call WarpMeTo(Mid$(MyText, 6, Len(MyText) - 5)) End If MyText = vbNullString frmMirage.txtMyChat.Text = vbNullString Exit Sub End If |
|
| Author: | Rian [ Mon Apr 28, 2008 1:30 am ] |
| Post subject: | Re: Easy Warping |
Clever and handy, but i don't think it takes care of /warptome |
|
| Author: | Lea [ Mon Apr 28, 2008 1:40 am ] |
| Post subject: | Re: Easy Warping |
now make a warp map,x,y command and a warp map,x,y,dir command! Sometimes you just need to get into those tight places |
|
| Author: | Kousaten [ Mon Apr 28, 2008 2:39 pm ] |
| Post subject: | Re: Easy Warping |
Or face the direction you want and call a method of warping based on maybe double clicking on the map if you've got high enough access. |
|
| Author: | Lea [ Mon Apr 28, 2008 4:35 pm ] |
| Post subject: | Re: Easy Warping |
On Eternal Flame there was the fire I usually sat in. I made a block a map down, so I would run straight down, then /warpto 1 and be on the fire... So I didnt need to think of locations at all XD Maybe /warpto 1 5 6 0 would have been harder to type (arbitrary numbers) |
|
| Author: | Labmonkey [ Mon Apr 28, 2008 7:23 pm ] |
| Post subject: | Re: Easy Warping |
Sonire wrote: Clever and handy, but i don't think it takes care of /warptome Of course it doesnt take care of /warptome... how the hell would you know if you wanted to warp to the person or warp them to you. And no don't say put a 0 or a 1 at the end, I think two warping commands is easy enough to remember. As for warp(x,y,) a much easier way to do this is to make mappers able to walk over blocks and set their move speed really high. If you want me to ill make a tutorial |
|
| Author: | Rian [ Mon Apr 28, 2008 8:57 pm ] |
| Post subject: | Re: Easy Warping |
Labmonkey wrote: Sonire wrote: Clever and handy, but i don't think it takes care of /warptome Of course it doesnt take care of /warptome... how the hell would you know if you wanted to warp to the person or warp them to you. You said it, not me: Labmonkey wrote: It adds in an option to just type "/warp" instead of "/warptome" and "/warpmeto" and "/warpto" which can get really confusing and annoying. Just type "/warp" to go anywhere Silly boi <3 |
|
| Author: | Labmonkey [ Mon Apr 28, 2008 9:56 pm ] |
| Post subject: | Re: Easy Warping |
I meant that having all of those warping commands makes it confusing. Why should warpto warp me to a map, and warpmeto warp me to a player? An engine with 3 warp commands needs some work. I am going to make an admin panel next. |
|
| Author: | Coke [ Tue Apr 29, 2008 12:13 pm ] |
| Post subject: | Re: Easy Warping |
just get it to check on /warp if : /warp text here is > 0 and <= max_maps then warp to a map, else try and warp to a player |
|
| Author: | shaded [ Tue Apr 29, 2008 2:19 pm ] |
| Post subject: | Re: Easy Warping |
Instead of warpto using x,y coords. Code it so you have a command called warp and then click on the square you need to warp to. This would take care of an issues for when you warpto a map and land in the middle of the mountains. Also you won't have to figure out the coords everytime. |
|
| Author: | Robin [ Tue Apr 29, 2008 2:28 pm ] |
| Post subject: | Re: Easy Warping |
Quick addition. Go to the PicScreen click sub, then just do a: Code: If shift = true then warprequest(x, y) end if Then do an access check on the server and finish the warp. |
|
| Author: | Labmonkey [ Tue Apr 29, 2008 10:30 pm ] |
| Post subject: | Re: Easy Warping |
Fox wrote: just get it to check on /warp if : /warp text here is > 0 and <= max_maps then warp to a map, else try and warp to a player Um... I am not sure if you have been following, and this is an optimization.. or if you just read the post above you. This tutorial does that... |
|
| Author: | Coke [ Tue Apr 29, 2008 10:37 pm ] |
| Post subject: | Re: Easy Warping |
Haven't been following. |
|
| Author: | Labmonkey [ Tue Apr 29, 2008 11:22 pm ] |
| Post subject: | Re: Easy Warping |
lol |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|