Thread: Plane
View Single Post
  #8  
Old 10-14-2005, 08:55 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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

__________________
Skyld
Reply With Quote