Jump to content
  • 0
Snap

Automated Events

Question

Can someone share their compilation of Automated Events? ( every 30 mins or every 1 hour? )

Thanks!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

All you have to do is add

OnMinute30:

for example. So the event will run on every full 30 minutes.

Link to comment
Share on other sites

Can you try to make this automated?

gm_room_pl,192,325,4 script PoringInvasion 909,{
if (getgmlevel() >= 80) goto poringadmin;
end;

poringadmin:
 mes "[poringers]";
 mes "poring poring! ^FF0000~Hi GM " + strcharinfo(0) + ", Wanna play today?~^000000";
 mes "poring poring... poring! ^FF0000~Just tell me what to do!~^000000";
 switch(select("Start Event:Stop Event")) {
case 1:
next;
mes "[poringers]";
mes "poring! ^FF0000~Sure thing!~^000000";
emotion 33;
close2;
goto L_poringannounce;
case 2:
next;
mes "[poringers]";
mes "poring poring poring...";
close2;
goto endingevent;
end;
}
OnClock0900:
goto L_poringannounce;
L_poringannounce:
setmapflag "prontera",mf_nomobloot;
set [email protected],1;
set [email protected],[email protected]+1;
donpcevent "PoringInvasion#evnt3::OnEnable";
initnpctimer;
end;
OnTimer3600000:
set [email protected],0;
killmonster "prontera","All";
announce "Poring forces have been able to overcome. Poring Invasion Event Done!",0;
stopnpctimer;
removemapflag "prontera",mf_nomobloot;
set [email protected],0;
set [email protected],0;
end;

endingevent:
set [email protected],0;
killmonster "prontera","All";
announce "Poring forces have been able to overcome. Poring Invasion Event Done!",0;
stopnpctimer;
removemapflag "prontera",mf_nomobloot;
set [email protected],0;
set [email protected],0;
end;
}
//--------------------------------------------------
- script PoringInvasion#evnt3 -1,{
OnEnable:
announce "Poring family seems to have started angry because it continues to hurt ...",0;
sleep2 5000;
announce "It seems today they had planned to raid the city of Prontera massive!",0;
sleep2 5000;
announce "They've been not too fear from Prontera,",0;
sleep2 5000;
announce "Prepare yourself, Warrior of Rune Midgard!",0;
sleep2 5000;
announce "They have begun approaching ...",0;
sleep2 5000;
announce "and  The Prontera Guarder really not able to fight it.",0;
sleep2 5000;
announce "They are no longer as usual ...",0;
sleep2 5000;
announce "session "+ [email protected] +"Poring invasion begins!",0;
goto L_Start;
end;

L_Start:
areamonster "prontera",1,1,278,356,"Poring",1002,300,"";
areamonster "prontera",1,1,278,356,"Poring",1002,3,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Poporing",1031,300,"";
areamonster "prontera",1,1,278,356,"Poporing",1031,2,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Drops",1113,300,"";
areamonster "prontera",1,1,278,356,"Drops",1113,3,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Marin",1242,300,"";
areamonster "prontera",1,1,278,356,"Marin",1242,3,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Metaling",1613,300,"";
areamonster "prontera",1,1,278,356,"Metaling",1613,3,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Stapo",1784,300,"";
areamonster "prontera",1,1,278,356,"Stapo",1784,3,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Arc Angeling",1388,10,"";
areamonster "prontera",1,1,278,356,"Deviling",1582,40,"";
areamonster "prontera",1,1,278,356,"Deviling",1582,1,"PoringInvasionWin::OnMobKilled2";
areamonster "prontera",1,1,278,356,"Ghostring",1120,40,"";
areamonster "prontera",1,1,278,356,"Ghostring",1120,1,"PoringInvasionWin::OnMobKilled1";
areamonster "prontera",1,1,278,356,"Santa Poring",1062,300,"";
areamonster "prontera",1,1,278,356,"Santa Poring",1062,3,"PoringInvasionWin::OnMobKilled3";
areamonster "prontera",1,1,278,356,"Mastering",1090,40,"";
areamonster "prontera",1,1,278,356,"Angeling",1096,40,"";
areamonster "prontera",1,1,278,356,"Angeling",1096,1,"PoringInvasionWin::OnMobKilled1";
end;
}
- script PoringInvasionWin -1,{
OnMobKilled1:
if ([email protected] == 1) {
announce "Poring Coin won by "+ strcharinfo(0) + ".",bc_all | bc_blue;
set [email protected],[email protected]+1;
getitem 7539,1;
goto checkingend;
}
end;
OnMobKilled2:
if ([email protected] == 1) {
announce "Silver Coin won by "+ strcharinfo(0) + ".",bc_all | bc_blue;
set [email protected],[email protected]+1;
getitem 675,1;
goto checkingend;
}
end;
OnMobKilled3:
if ([email protected] == 1) {
announce "Bronze Coin won by "+ strcharinfo(0) + ".",bc_all | bc_blue;
set [email protected],[email protected]+1;
getitem 673,1;
goto checkingend;
}
end;
checkingend:
if ([email protected]=23) {
set [email protected],0;
killmonster "prontera","All";
announce "Poring forces have been able to overcome. Poring Invasion Event Done!",0;
stopnpctimer;
removemapflag "prontera",mf_nomobloot;
set [email protected],0;
set [email protected],0;
end;
}
end;
}

Link to comment
Share on other sites

Snap, go read Flaid's post and then continue, maybe test it, they're already spoon-feeding you with the answers, which you could technically all have gotten yourself if you had taken 5 minutes of you all so precious time to scourer the wiki and the forum via the search function.

  • Upvote 1
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.