Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-14-2013, 01:35 AM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
help, proof reading needed.

PHP Code:
findplayer("khortez").addweapon(this.name);

function 
onActionServerSide(){

if(
params[0] == "warp"){
 
 
temp.pl player;
 
temp.warped findplayerbycommunityname(params[1]);
 
}

if(
temp.warped != NULL){
temp.pl temp.pl.setlevel2(temp.warped.leveltemp.warped.xtemp.warped.y);
 }
  
 
 else {
 
temp.pl.chat "Can't find"SPC params[1];
 }
  }
 
 
 
 
 
//#CLIENTSIDE
 
function onPlayerChats(){
 if(
player.chat.starts("/warp")){
 
  
triggerserver("gui"this.name"warp"player.chat.substring(5));
 }
  } 
I've been trying to get this to work, and for some reason it's not. can anyone tell me what i'm doing wrong?

any additional helpful comments on how to make my scripts better is appreciated. thanks
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 09:43 PM.


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