Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Help me with my trial tool (https://forums.graalonline.com/forums/showthread.php?t=87489)

Mattehy 08-19-2009 09:16 PM

Help me with my trial tool
 
PHP Code:

function onActionServerside(commandacct) {
  switch (
command) {
    case 
"LevelWarp":
    
setlevel2(params[3],params[1],params[2]);
      break;
          case 
"PlayerWarp":
   
setlevel2(findplayer(params[1]).level,findplayer(params[1]).x,findplayer(params[1]).y);;
      break;
          case 
"UpdateLevel":
findlevel(player.level).updateboard2(0,0,64,64);
      break;
      }
      }
//#CLIENTSIDE
function onPlayerChats()
{
if(
player.chat.starts("/levelwarp "))
{
    
temp.tokens player.chat.tokenize();
    
temp.temp.tokens[1];
    
temp.temp.tokens[2];
    
temp.level temp.tokens[3];
  
triggerserver("gui"name"LevelWarp"temp.temp.temp.level);
}
if(
player.chat.starts("/updatelevel "))
{
  
triggerserver("gui"name"UpdateLevel"temp.temp.temp.level);
}
if(
player.chat.starts("/warpto "))
{
    
temp.tokens player.chat.tokenize();
    
temp.warpplayer temp.tokens[1];
  
triggerserver("gui"name"PlayerWarp"temp.warpplayer);
}


Is their any other commands i can put in like change rights or sumthing xD
and also can i put /levelwarp and /warpto to gether?


All times are GMT +2. The time now is 12:08 AM.

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