- script Poring Summoner -1,{
OnInit:
//---- NPC Config -----
set .##PoringPoints, 1;
set .SpecialPorings, 250;
set .NormalPorings, 250;
setarray .Map$[0], "lighthalzen","louyang","comodo","xmas","aldebaran","izlude","payon","geffen","morocc","prontera";
//---------------------
end;
OnMinute00: //means the event starts every hour
killmonsterall .Map$[.loc]; //Kills monsters in case the even doesn't end in time for the next one.
set .loc, rand(getarraysize(.Map$)); //Getting a random location (index of map array listed above)
setmapflag .Map$[.loc], mf_noskill;
monster .Map$[.loc], 0, 0, "Poring", 1002, .SpecialPorings, "Poring Summoner::OnSpecialKill";
monster .Map$[.loc], 0, 0, "Poring", 1002, .NormalPorings, "Poring Summoner::OnNormalKill";
announce "The Poring Event has begun!", 0;
sleep 1000;
announce "Location: " + .Map$[.loc], 0;
sleep 1000;
announce "Special Poring: " + .SpecialPorings, 0;
sleep 1000;
announce "Normal Poring: " + .NormalPorings, 0;
end;
OnSpecialKill:
set .SpecialPorings, .SpecialPorings - 1;
mapannounce .Map$[.loc], strcharinfo(0) + " got a " + @PoringPoints(.PoringPoints+1) + "!", bc_blue;
set.##PoringPoints,##PoringPoints+1;
goto PoringCount;
OnNormalKill:
set .NormalPorings, .NormalPorings - 1;
goto PoringCount;
PoringCount:
if( .SpecialPorings || .NormalPorings )
mapannounce .Map$[.loc], "Special Poring: " + .SpecialPorings + " || Normal Poring: " + .NormalPorings, bc_blue;
else {
announce "The Poring Event has ended.", 0;
removemapflag .Map$[.loc], mf_noskill;
deletearray .Map$[0], getarraysize(.Map$); //Reset the map array before creating it back, just to avoid bugs.
goto OnInit;
}
end;
}
become like this?
im having error while editing them o.o would you tell me where should apply
PoringPoints
#PoringPoints
##PoringPoints