prontera,124,201,1 script trialNPC 4_F_JOB_BLACKSMITH,{.@item=7179;//Set Item Here.@item_amount=1;//Set Item Amount Here.@loop=20;//Set How Many Times it will drop
getmapxy .@map$,.@x,.@y,1;// XY npc samplefor(.@i=-10;.@i<=10;.@i++)// xfor(.@j=-10;.@j<=10;.@j++)// yif( checkcell(.@map$,(.@x+.@i),(.@y+.@j), cell_chkpass )){// can pass.@cell_x[.@size]=.@x+.@i;.@cell_y[.@size]=.@y+.@j;.@size++;}for(.@i=0;.@i<=.@loop;.@i++){
sleep 500;.@r= rand(.@size);// random index
makeitem .@item,.@item_amount,.@map$,.@cell_x[.@r],.@cell_y[.@r];}}
just like this from herc.
prontera,124,201,1 script trialNPC 4_F_JOB_BLACKSMITH,{.@item=501;//Set Item Here.@itemeffect=3;//Set Drop Effect Here (1-5).@item_amount=1;//Set Item Amount Here.@loop=100;//Set How Many Times it will drop
getmapxy(.@mapname$,.@mapx,.@mapy, UNITTYPE_PC, strcharinfo(0));
setiteminfo(.@item, ITEMINFO_FLAG_SHOWDROPEFFECT,1);//Set shadow effect on for the said item
setiteminfo(.@item, ITEMINFO_DROPEFFECT_MODE,.@itemeffect);//Set the drop effect based on the configfor(.@i=0;.@i<=.@loop;.@i++){
makeitem(.@item,.@item_amount,.@mapname$,.@mapx+1,.@mapy+1);}
setiteminfo(.@item, ITEMINFO_FLAG_SHOWDROPEFFECT,0);//Set shadow effect off for the said item (to bring it back again to normal)
setiteminfo(.@item, ITEMINFO_DROPEFFECT_MODE,0);//Set drop effect off for the said item (to bring it back again to normal)
close;}
Question
qtdan
just like this from herc.
Link to comment
Share on other sites
2 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.