Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 08-22-2009, 09:57 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
ok but want ur this.event_list xD
__________________
Develop 4 Lyf
Reply With Quote
  #17  
Old 08-22-2009, 09:59 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by Mattehy View Post
ok but want ur this.event_list xD
You're setting the server flag with my post too- check your origional post
Reply With Quote
  #18  
Old 08-22-2009, 09:59 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
PHP Code:
function onActionServerside(commandacct) {
  switch (
command) {
    case 
"Host":
    
sendtorc(params[2]@" is hosting "@params[1]@"!");
    
player.chat "Hosted Event: "@params[1]@"!";
    
serverr.event params[1];
    break;
        case 
"End":
    
sendtorc(params[1]@" has ended "@serverr.event@"!");
    
player.chat "Event Ended!";
    
serverr.event "";
    break;
            case 
"Join":
    
setlevel2(this.(@serverr.event@"_event")[0],this.(@serverr.event@"_event")[1],this.(@serverr.event@"_event")[2]);
    break;
    }
}
//#CLIENTSIDE
function onCreated()
{
this.allowevents = {"OSL"};
this.OSL_event = {"haven-osl.nw",30,30};
}
function 
onPlayerChats()
{
if(
player.chat.starts(":hostevent ")){
    
temp.tokens player.chat.tokenize();
    
temp.event temp.tokens[1];
    if(
temp.event in this.alloweventstriggerserver("gui"name"Host"temp.eventplayer.account);
    else 
player.chat "Invalid Event!";
}
if(
player.chat.starts(":endevent")){
    
temp.tokens player.chat.tokenize();
    
temp.event temp.tokens[1];
    if(
serverr.event != ""triggerserver("gui"name"End"player.account);
    else 
player.chat "Their is no event going on!";
}
if(
player.chat.starts(":joinevent")){
    if(
serverr.event != ""triggerserver("gui"name"Join");
    else 
player.chat "Their is no event going on!";
}

(Problem: :joinevent)
this is my current code and still doesnt work
__________________
Develop 4 Lyf
Reply With Quote
  #19  
Old 08-22-2009, 10:01 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
http://forums.graalonline.com/forums...43&postcount=1
Brought to you by the Search Button and all its mystical powers!
Didn't read through all the code; not sure if it has exactly what you want but I'm sure you can edit a few things.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
Reply


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 10:20 PM.


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