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 01-09-2011, 02:04 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
error in RC with gui

hey guys i was testing around with gui scripting and somehow i could have done 2 warping buttons

now i found a script which has a warper menu so i tested around that and after a while i got a problem. the RC keeps saying:

error: missing semicolon at line 5: setlevel2 callimap_c1.nw,10,10;
<b>error: missing semicolon at line 10: setlevel2 level2.nw,35,34;
<b>error: missing semicolon at line 15: setlevel2 level3.nw,35,44;
<b>error: missing semicolon at line 20: setlevel2 level4.nw,32,32;
<b>error: missing semicolon at line 25: setlevel2 level5.nw,29,25;

i could find any mistake so i copied the setlevel2 from other gui button (which worked) but it still keeps saying that. can anyone help?

and the scripts are:
PHP Code:
function onActionServerSide(action) {
  switch (
action) {
    case 
"Warp000":
    
setlevel2 callimap_c1.nw,10,10;
      
player.dir 2;
      
player.chat "Warped to the OSL!";
    break;
    case 
"Warp001":
      
setlevel2 level2.nw,35,34;
      
player.dir 2;
      
player.chat "Warped";
    break;
    case 
"Warp002":
      
setlevel2 level3.nw,35,44;
      
player.dir 2;
      
player.chat "Warped";
    break;
    case 
"Warp003":
      
setlevel2 level4.nw,32,32;
      
player.dir 2;
      
player.chat "Warped";
    break;
    case 
"Warp004":
      
setlevel2 level5.nw,29,25;
      
player.dir 2;
      
player.chat "Warped";
    break;
  }
}
//#CLIENTSIDE
function onCreated() {
//starting from here is gui and so on



or should i use the triggerserver?

-callimuc
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 02:14 PM.


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