It still doesn't drop
Here's the whole script. Does it matter if I'm testing using an Admin account?
new_pront,119,159,4 script Premium Account::premiummap 422,{
if( isPremium() == 0 ) goto NotPremium;
mes "[Gatekeeper]";
mes "Where do you want to go?";
switch(select("Private Drop Event"))
{
case 1:
if( #Daily == gettime(5) ) {
mes "You can only enter once a day";
close;
}
set #Daily,gettime(5);
addtimer 300000,strnpcinfo(3)+"::OnTimeLimit";
warp "new_zone04",60,179;
close;
}
OnTimeLimit:
message strcharinfo(0),"Time's Up.";
sleep2 3000;
warp "SavePoint",0,0;
end;
NotPremium:
mes "[Gatekeeper]";
mes "You are not a Premium Account Holder!";
close;
OnInit:
while (1) {
if ( getmapusers("new_zone04") ) {
while ( checkcell( "new_zone04", set( .@x, rand(8,31) ), set( .@y, rand(168,191) ), cell_chknopass ) );
makeitem 501, 1, "new_zone04", .@x, .@y;
}
sleep 100;
}
end;
}
new_zone04 mapflag noskill
new_zone04 mapflag nowarp
new_zone04 mapflag nowarpto
new_zone04 mapflag noreturn
new_zone04 mapflag nobranch
I replaced that part with yours so I'm using the guild_vs2, and it worked.
I guess I have a problem with this part
while ( checkcell( "new_zone04", set( .@x, rand(8,31) ), set( .@y, rand(168,191) ), cell_chknopass ) );
I don't know how to properly check the x and y coords for a map