Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-17-2006, 04:40 AM
lordspawn lordspawn is offline
Registered User
Join Date: Aug 2004
Posts: 24
lordspawn is on a distinguished road
[!help!] Script isnt Warping the player

Ok, im makin a type of warpbook script for a server and it's just not warping the player to the spot. Im not sure if its the serverside section at the top that's messing it up or what, anyway heres the script. [NO STEALING =/]

PHP Code:
if (actionserverside) {  
    if(
strequals(#p(0),warpbook)) {
    
setlevel2 #p(0),strtofloat(#p(1)),strtofloat(#p(2));    
    
}
    }
//#CLIENTSIDE
if (weaponfired) {
  
playerdir=2;
  
setani cross-forplayerworld149-newwarp,;
  
this.mode=abs(this.mode-1);
  if(
this.mode=0){
    
hideimg 296;
    
hideimg 297;
    
timeout=0;
  }
  else{
timeout=.05;}
}
if(
timeout&&this.mode=1){
  
tokenize #s(PlayerWarps);
  
if(keydown(1)){this.selected=this.selected-4;timeout=.5;}
  elseif(
keydown(3)){this.selected=this.selected+4;timeout=.5;}
  else{
timeout=.05;}
  if(
this.selected<0){this.selected=tokenscount-4;}
  if(
this.selected>tokenscount-1){this.selected=0;}
  
showimg 296,@@cb@Left or Right To Change S To Warp or A to cancel,playerx+1.5,playery-2;
  
showimg 297,@@cb@#t(this.selected),playerx+1.5,playery-1;
  
freezeplayer1;
  if(
keydown(5)){
    
this.mode=0;
    
hideimg 296;
    
hideimg 297;
    
playerfreezetime=0;
    
setani warper,;
    
sleep 2;
    
triggeraction 0,0,serverside,Warpbook,warpbook;
  }
  if(
keydown(6)){
    
setani idle,;
    
playerfreezetime=0;
    
this.mode=0;
    
hideimg 296;
    
hideimg 297;
  }

Help, and advice on what to change to make it warp the player please
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.