Jump to content

Question

Posted

can anyone help me in my problems?

 

My Dice,LMS and RFYL Events have this minor problem the warp portal to connect to the destination of each events show the npc even though its not the time to join those event its always shows in prontera..

 

 

sorry for my bad english..please help me

8 answers to this question

Recommended Posts

Posted (edited)


prontera,193,171,6 script RFYL npc 994,{

OnInit:

disablenpc "RFYL event";

disablenpc "RFYL npc";

end;

}

prontera,135,167,5 script RFYL Event 899,{

if(getgmlevel() < 60 ) end;

mes "Hello there GM " + strcharinfo(0) + " !";

next;

set .menu$, select(.gm_menu$);

switch( select ("Open RFYL Event:No Thanks")) {

case 1: // Run For Your Life

next;

mes "I will now create warps, announce, & warp you.";

close2;

warp "g_room1-1",230,368;

Announce "There will be a 'Run For Your Life' Event Held!",bc_all;

sleep2 2500;

enablenpc "RFYL event";

sleep2 2500;

Announce "If you want to join, the warp will be open in Prontera. It will be open for 2 minute!",bc_all;

sleep2 30000;

Announce "You have only 1 minute left to join the event!",bc_all;

sleep2 1000;

initnpctimer;

goto L_Timer;

end;

close;

case 2:

mes "[RFYL Event]";

mes "Come back if you change your mind, See Yah!";

close;

}

L_Timer:

OnTimer00000:

Announce "Timer has started!",bc_all;

end;

OnTimer30000:

Announce "Thirty Seconds Have Passed By!",bc_all;

sleep2 5000;

Announce "Hurry to Prontera if you want to join!",bc_all;

end;

OnTimer40000:

Announce "Twenty seconds left!",bc_all;

end;

OnTimer50000:

Announce "Ten seconds left!",bc_all;

end;

OnTimer55000:

Announce "5!",bc_all;

sleep2 1000;

Announce "4!",bc_all;

sleep2 1000;

Announce "3!",bc_all;

sleep2 1000;

Announce "2!",bc_all;

sleep2 1000;

Announce "1!",bc_all;

sleep2 1000;

Announce "The warp is now closed!",bc_all;

sleep2 1000;

disablenpc "RFYL event";

stopnpctimer;

end;

OnInit:

setarray .gmevents$,"RFYL?";

for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 )

set .gm_menu$, .gm_menu$ + (.gmevents$[.@i]) +":";

disablenpc "RFYL event";

end;

}

prontera,156,171,4 script RFYL event 811,{

mes "[ Run For Your Life Event ]";

mes "Hello, I'm the Run For Your Life Event Manager. My record says that the defending champion on this event was "+$PPEDefendingChampion$+". Anyways, what do you want to do?";

mes " ";

mes "Scripted by: ^777777FlareRO^000000";

next;

menu "Join Event Now",PPE_Join,"Nevermind",PPE_nvm;

PPE_Join:{

if (gethominfo(2) != "null"){

mes "No homunculus is allowed in this event! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (getpetinfo(2) != "null"){

mes "No pet is allowed in this event! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (checkcart()){

mes "[ Run For Your Life Event ]";

mes "No cart is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (checkfalcon()){

mes "No falcon is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (checkriding()){

mes "No riding is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

mes "[ Run For Your Life Event ]";

mes "Good luck "+strcharinfo(0)+".";

mes " ";

mes "Scripted by: ^777777FlareRO^000000";

close2;

warp "g_room1-1",230,368;

end;

}

PPE_nvm:

mes "[ Run For Your Life Event ]";

mes "Okay. Maybe next time.";

mes " ";

mes "Scripted by: ^777777FlareRO^000000";

close;

}

prontera,193,171,6 script RFYL npc 994,{

OnInit:

disablenpc "RFYL event";

disablenpc "RFYL npc";

end;

}

prontera,135,167,5 script RFYL Event 899,{

if(getgmlevel() < 60 ) end;

mes "Hello there GM " + strcharinfo(0) + " !";

next;

set .menu$, select(.gm_menu$);

switch( select ("Open RFYL Event:No Thanks")) {

case 1: // Run For Your Life

next;

mes "I will now create warps, announce, & warp you.";

close2;

warp "g_room1-1",230,368;

Announce "There will be a 'Run For Your Life' Event Held!",bc_all;

sleep2 2500;

enablenpc "RFYL event";

sleep2 2500;

Announce "If you want to join, the warp will be open in Prontera. It will be open for 2 minute!",bc_all;

sleep2 30000;

Announce "You have only 1 minute left to join the event!",bc_all;

sleep2 1000;

initnpctimer;

goto L_Timer;

end;

close;

case 2:

mes "[RFYL Event]";

mes "Come back if you change your mind, See Yah!";

close;

}

L_Timer:

OnTimer00000:

Announce "Timer has started!",bc_all;

end;

OnTimer30000:

Announce "Thirty Seconds Have Passed By!",bc_all;

sleep2 5000;

Announce "Hurry to Prontera if you want to join!",bc_all;

end;

OnTimer40000:

Announce "Twenty seconds left!",bc_all;

end;

OnTimer50000:

Announce "Ten seconds left!",bc_all;

end;

OnTimer55000:

Announce "5!",bc_all;

sleep2 1000;

Announce "4!",bc_all;

sleep2 1000;

Announce "3!",bc_all;

sleep2 1000;

Announce "2!",bc_all;

sleep2 1000;

Announce "1!",bc_all;

sleep2 1000;

Announce "The warp is now closed!",bc_all;

sleep2 1000;

disablenpc "RFYL event";

stopnpctimer;

end;

OnInit:

setarray .gmevents$,"RFYL?";

for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 )

set .gm_menu$, .gm_menu$ + (.gmevents$[.@i]) +":";

disablenpc "RFYL event";

end;

}

prontera,156,171,4 script RFYL event 811,{

mes "[ Run For Your Life Event ]";

mes "Hello, I'm the Run For Your Life Event Manager. My record says that the defending champion on this event was "+$PPEDefendingChampion$+". Anyways, what do you want to do?";

mes " ";

mes "Scripted by: ^777777FlareRO^000000";

next;

menu "Join Event Now",PPE_Join,"Nevermind",PPE_nvm;

PPE_Join:{

if (gethominfo(2) != "null"){

mes "No homunculus is allowed in this event! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (getpetinfo(2) != "null"){

mes "No pet is allowed in this event! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (checkcart()){

mes "[ Run For Your Life Event ]";

mes "No cart is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (checkfalcon()){

mes "No falcon is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

if (checkriding()){

mes "No riding is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";

close;

}

mes "[ Run For Your Life Event ]";

mes "Good luck "+strcharinfo(0)+".";

mes " ";

mes "Scripted by: ^777777FlareRO^000000";

close2;

warp "g_room1-1",230,368;

end;

}

PPE_nvm:

mes "[ Run For Your Life Event ]";

mes "Okay. Maybe next time.";

mes " ";

mes "Scripted by: ^777777FlareRO^000000";

close;

}

Edited by Capuche
Please use Code for long content
Posted

Try this;

OnInit:
disablenpc "RFYL Event";
end;
}
 
prontera,135,167,5    script    RFYL Event#GM    899,{
if(getgmlevel() < 60 ) end;
mes "Hello there GM " + strcharinfo(0) + " !";
next;
set .menu$, select(.gm_menu$);
switch( select ("Open RFYL Event:No Thanks")) {
        case 1: // Run For Your Life
                next;
                mes "I will now create warps, announce, & warp you.";
                close2;
                warp "g_room1-1",230,368;
                Announce "There will be a 'Run For Your Life' Event Held!",bc_all;
                sleep2 2500;
                enablenpc "RFYL Event";
                sleep2 2500;
                Announce "If you want to join, the warp will be open in Prontera. It will be open for 2 minute!",bc_all;
                sleep2 30000;
                Announce "You have only 1 minute left to join the event!",bc_all;
                sleep2 1000;
                initnpctimer;
                goto L_Timer;
                end;
                close;
 
        case 2:
                mes "[RFYL Event]";
                mes "Come back if you change your mind, See Yah!";
                close;
        }
L_Timer:
    OnTimer00000:
        Announce "Timer has started!",bc_all;
        end;
        
    OnTimer30000:
        Announce "Thirty Seconds Have Passed By!",bc_all;
        sleep2 5000;
        Announce "Hurry to Prontera if you want to join!",bc_all;
        end;
                            
    OnTimer40000:
        Announce "Twenty seconds left!",bc_all;
        end;
                            
    OnTimer50000:
        Announce "Ten seconds left!",bc_all;
        end;
                            
    OnTimer55000:
        Announce "5!",bc_all;
        sleep2 1000;
        Announce "4!",bc_all;
        sleep2 1000;
        Announce "3!",bc_all;
        sleep2 1000;
        Announce "2!",bc_all;
        sleep2 1000;
        Announce "1!",bc_all;
        sleep2 1000;
        Announce "The warp is now closed!",bc_all;
        sleep2 1000;
        disablenpc "RFYL Event";
        stopnpctimer;
        end;
        
OnInit:
    setarray .gmevents$,"RFYL?";
    for ( set .@i, 0; .@i < getarraysize(.gmevents$); set .@i, .@i +1 )
    set .gm_menu$, .gm_menu$ + (.gmevents$[.@i]) +":";
    disablenpc "RFYL Event";
    end;
}
 
prontera,156,171,4    script    RFYL Event    811,{
 
    mes "[ Run For Your Life Event ]";
    mes "Hello, I'm the Run For Your Life Event Manager. My record says that the defending champion on this event was "+$PPEDefendingChampion$+". Anyways, what do you want to do?";
    mes " ";
    mes "Scripted by: ^777777FlareRO^000000";
    next;
    menu "Join Event Now",PPE_Join,"Nevermind",PPE_nvm;
 
PPE_Join:{
            if (gethominfo(2) != "null"){
                mes "No homunculus is allowed in this event! Sorry "+strcharinfo(0)+" but you can't join this event!";
                close;
            }
            if (getpetinfo(2) != "null"){
                mes "No pet is allowed in this event! Sorry "+strcharinfo(0)+" but you can't join this event!";
                close;
            }
            if (checkcart()){
                mes "[ Run For Your Life Event ]";
                mes "No cart is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";
                close;
            }
            if (checkfalcon()){
                mes "No falcon is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";
                close;
            }
            if (checkriding()){
                mes "No riding is allowed! Sorry "+strcharinfo(0)+" but you can't join this event!";
                close;
            }
            mes "[ Run For Your Life Event ]";
            mes "Good luck "+strcharinfo(0)+".";
            mes " ";
            mes "Scripted by: ^777777FlareRO^000000";
            close2;
            warp "g_room1-1",230,368;
 
            end;
        }
 
    PPE_nvm:
        mes "[ Run For Your Life Event ]";
        mes "Okay. Maybe next time.";
        mes " ";
        mes "Scripted by: ^777777FlareRO^000000";
        close;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...