//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ra_temple,75,145,4 script Token Loot 444,{
if (getgmlevel() >= 99) { // Edit to your desired GM Level
mes "[ Event Manager ]";
mes "What do you want to do?";
menu "Start the Event",start,"Stop the Event",stop,"Nothing",-;
close;
start:
donpcevent "Portal::onstart";
close;
stop:
donpcevent "Portal::OnDisable"; // Disable Event
close;
}
end; // The NPC cannot be clicked by normal players.
}
ra_temple,73,137,4 script Portal 45,2,2,{
OnInit:
donpcevent "Portal::OnDisable"; //So the event wont start without GM's access
end;
OnTouch:
if( .Event ) sc_start SC_DECREASEAGI,1200000,10;
percentheal 100,100;
warp "schg_dun01",136,142;
end;
OnDisable: // The NPC do Nothing without GM's Access
disablenpc "Portal";
set .DoEvent,0;
set .Event,0;
end;
OnEnable: // Just allow the event to be started automatic
enablenpc "Portal";
set .DoEvent,1;
end;
onstart: // Activate the event and start it immediatly.
enablenpc "Portal";
set .DoEvent,1;
if(!.DoEvent) end;
OnMinute110:
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal at Events Area.",0;
enablenpc "Portal";
sleep ( 40 * 1000 ); // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "schg_dun01",0,0,"Special Poring",2502,150,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "schg_dun01","All";
mapwarp "schg_dun01","ra_temple",119,149;
disablenpc "Portal";
end;
OnMobKilled:
monster "schg_dun01",0,0,"Special Poring",2502,50,strnpcinfo(0)+"::OnMobKilled";
end;
}
schg_dun01 mapflag nowarpto
schg_dun01 mapflag noskill
schg_dun01 mapflag nowarp
schg_dun01 mapflag noteleport
schg_dun01 mapflag nomemo
schg_dun01 mapflag nosave
schg_dun01 mapflag nobranch
schg_dun01 mapflag noicewall
schg_dun01 mapflag nopenalty
schg_dun01 mapflag nobranch
schg_dun01 mapflag noexp
schg_dun01 mapflag noreturn
schg_dun01 mapflag pvp_noparty
Guys . Someone please help me check on this script . seems like its wont auto start . i place
OnMinute110:
even i tried OnClock but i dun know whether i place those code on the right place .
Helps would be appreciated .