Quote:
|
Originally Posted by excaliber7388
(I can already hear Skyld scolding me XD)
|
Nice to know you are
beginning to take what I say on board. Now you just need to do as other nice forum users say and actually format your scripting nicely.
Quote:
|
Originally Posted by ApothiX
NPC Code:
setlevel2 #s(client.planelevel),strtofloat(#s(client.planex) ),strtofloat(#s(client.planey));
Another thing, client. variables are very insecure, people will be able to abuse this script to make it warp them to wherever they want on your server.
|
A string list may be better suited to your needs.
NPC Code:
setstring clientr.plane,<level>,<x>,<y>; // Set the level, x and y
replacestring clientr.plane,0,<newlevel>; // Want to replace just the level?
replacestring clientr.plane,1,<newx>; // Or just the x?
setlevel2 #I(clientr.plane,0),strtofloat(#I(clientr.plane,1) ),strtofloat(#I(clientr.plane,2)); // And warp the player