badneko Posted October 11, 2015 Posted October 11, 2015 im done i can make this work. Someone Die, then drop some item, but first check if the item can be droped. And im still missing something here. OnPCDieEvent: getmapxy(@m$,@x,@y,0); set .@x,@x +rand(-3,3); set .@y,@y +rand(-3,3); while (!checkcell(@m$,.@x,.@y,cell_chkpass)); makeitem 7793,1,@m$,.@x,.@y; end; Quote
0 Stolao Posted November 2, 2015 Posted November 2, 2015 OnPCDieEvent: getmapxy(.@m$,.@x,.@y,0); while (!checkcell(.@m$,.@x,.@y,cell_chkpass)){ set .@x += rand(-3,3); set .@y += rand(-3,3); } makeitem 7793,1,.@m$,.@x,.@y; end; thats what your looking for i think, 1 Quote
0 jogz Posted December 4, 2015 Posted December 4, 2015 is there a way to set an area where the items are dropped? like if i want a square area where the items will be found after the npc makes them, is that possible? Quote
0 badneko Posted December 14, 2015 Author Posted December 14, 2015 is there a way to set an area where the items are dropped? like if i want a square area where the items will be found after the npc makes them, is that possible? Actually i did that in other script. first get the map where is your npc. with getmapxy or setupd yourself. makeitem 547,1,"yourmap",49+rand(-7,7),49+rand(-7,7); so, the item will be created in a square 14x14 around that point. 1 Quote
Question
badneko
im done i can make this work.
Someone Die, then drop some item, but first check if the item can be droped.
And im still missing something here.
OnPCDieEvent:
end;
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.