Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Join Event (https://forums.graalonline.com/forums/showthread.php?t=87562)

Mattehy 08-22-2009 09:57 PM

ok :( but want ur this.event_list xD

[email protected] 08-22-2009 09:59 PM

Quote:

Originally Posted by Mattehy (Post 1517676)
ok :( but want ur this.event_list xD

You're setting the server flag with my post too- check your origional post :)

Mattehy 08-22-2009 09:59 PM

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

Switch 08-22-2009 10:01 PM

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.


All times are GMT +2. The time now is 01:21 PM.

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