[Added Feature] jTynne's @go Command Alternative (.TXT Format!)

jTynne

High Council
Messages
249
Points
0
Emulator
jTynne's @go Command Alternative In .txt Format!
This is my custom alternative to @go that allows end users the ability to EASILY add/change @go locations on the fly without the need to edit any source files OR recompling/rebooting their server. This is a highly customizable script that is pretty straight-forward in its coding. You can easily add in or adjust existing @go locations in seconds.

Please Note: This will replace the default @go command when loaded in-game!

Instructions / Customization
To use? Simply upload and @loadnpc the file in-game and @go will be modified. If you wish to add in a new @go location, all you have to do is add a new entry following the format noted below:

if(@warp$ == "35" || @warp$ == "ecl" || @warp$ == "ecla" || @warp$ == "eclag" || @warp$ == "eclage") { callsub Process,"eclage",110,39,0,0; }
if(@warp$ == "36" || @warp$ == "ser" || @warp$ == "sere" || @warp$ == "seren" || @warp$ == "serenglade") { callsub Process,"serenglade",34,82,0,0; }

As noted in the text in red above, you add in a number higher than the current highest value (in the script currently, Eclage is 35, so to add in a custom location, simply add in a value of 36, customize the text based warp strings you want (for @go 36, in the above example, you can either use @go 36 or @go ser @go sere @go seren or @go serenglade, and all will teleport you to the same location of serenglade <34,82>).

Planned for future releases:
- Additional options GM's can set for the command in the header. (Re-use delay, price per use option)
- Mapflag check for nowarp and nogo mapflags.
- No usage while dead.

Version History : Current Version 2.0

2.0 Dec 31st, 2012 : http://www.justintfields.com/rAthena/scripts/gobind_v2.txt

1.0 Dec 29th, 2012: http://www.justintfields.com/rAthena/scripts/gobind.txt


Please report any bugs you may find, and/or if you have any requests / suggestions for the script as a response to this thread. Thank you!

(Please +1 me if you enjoy this script~)

 
Last edited by a moderator:
Isn't it better to use compare?

(E.G: if( compare(@warp$,"pr") || @warp$ == "0") -> do....
It'll cut down your script size :-P, also its not case sensitive that way.

try to use Temporarily npc variables as well

Code:
.@variable$
 
Last edited by a moderator:
Hmm, is a good script, but you can optimize and improve. And as Jeroen said, use compare, see the difference on your script. +1

 
Never heard of the compare script command, I'll look into it! Thanks
default_smile.png


 
Thanks to this script, but I have found a problem

On a longer term, it seems not to be reading the parameter and just keeps on displaying this:

"[server] : To use @go, enter a number 0 or greater. For a full list of available warps, type '@go list'.";
no matter what I type, that's what shows.

Tried to do @reloadscript but still the same error

 
The group requirement is bypassable if u type @go 10 for example it will block and says your level does not allow but if u type @go amatsu. you can bypass it hehe

 
hi is there an update for not bypassing the mapflag nowarpto and nowarp Thankyou 
 

if(player is at guild_vs5)

{

disable gobind ??



 
Last edited by a moderator:
Back
Top