Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 02-20-2009, 10:20 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
because the level name is a string and needs to be surround by quotes, otherwise it is read as variable. Also it is bad styling to have commands outside functions, so here what I would do.

PHP Code:
function onCreated()
{
  
findPlayer"Schetti").addweapon(this.name);
}

function 
onActionserverside()
{
  switch ( 
params[0])  
  {
    case 
"oslwarper":
      if ( 
findPlayerparams1]).account != NULL
        
setlevel2"osl.nw"2722);
      else
        
findPlayerparams1]).chat "Account name" SPC findPlayerparams1]).account SPC "not found!";
    break;
  }
}

//#CLIENTSIDE
function onPlayerChats() 
{
  if (
player.chat == "Warpus Oslensis" && player.account != "Graal686747")  
    
triggerserver("gui"this.name"oslwarper"player.account);

Hope this helps. =]
__________________
Deep into the Darkness peering...
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:27 PM.


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