- script SupplyTrigger -1,{
OnInit:
disablenpc "Woe Supply";
OnWed1700:
OnSun1600:
enablenpc "WoE Supply";
end;
OnAgitEnd:
OnAgitEnd2:
disablenpc "WoE Supply";
end;
}
prontera,100,200,3 script WoE Supply 78,{
mes .@Npc_Name$;
mes "I'm here to give you supplies for WoE!";
next;
mes .@Npc_Name$;
for(set .@i,0; .@i <= getarraysize(.@App_Guild); set .@i, .@i+1) {
if(getcharid(2) == .@App_Guild[.@i])
set .@Guild_Check,.@Guild_Check+1;
}
if(.@Guild_Check < 1) {
mes "Your guild has not yet been approved, please contact the GMs";
close;
}
if(BaseLevel < 99 || Class > 4022) {
mes "Sorry this is for Lvl 99 Trans Class only";
close;
}
if(gettimetick(2) < .@Delay) {
mes "Sorry, you can only claim this once every WoE";
close;
}
switch(Class) {
case 4012: //Sniper class
getitem 1065,10; //10 Traps
getitem 504,20; //20 White potions
break;
case 4019: //Creator class
getitem 7136,10; //10 Acid Bottles
getitem 504,20; //20 White potions
break;
//Add more cases for all classes
default: break;
}
.@Delay = gettimetick(2)+10800;
mes "Here you go, goodluck!";
close;
OnInit:
setarray .@App_Guild[0],1001,1002,1003; //Edit content to Guild IDs of approved guilds.
set .@Npc_Name$,"[^0000FF WoE Supply ^000000]";
end;
}
Here is the script. Ty