View Single Post
  #3  
Old 09-20-2005, 02:35 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by napo_p2p
It's against the rules to give full scripts, so I'll give you some hints...
I'll assume you'll be using GS1.

Use a clientside timeout loop to check if the player is swimming. Can use:
PHP Code:
if (strequals(#m,swim)) 
or:
PHP Code:
if (swimming
If they are swimming, an easy way to change their spot is to simply change playerx and playery to a location on the level that is not part of the arena. If you want them warped to a different level, you will have to use triggeraction, since setlevel2 is a serverside command.
Well, in GS2 you could do
PHP Code:
if (player.ani == "aniname, 'swim' or 'dead' for instance") {
  
// place your triggeraction to serverside here, then check the gani again serverside and warp out the player serverside :D

Have that in a timeout loop, called every .1 or .05 seconds, and that _should_ work.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote