AirVine-X Poring
Posts : 62 Join date : 25/02/2013
| Subject: Jatuhkan barang jika mati di PVP, by godammeit Sat Mar 30, 2013 11:15 pm | |
| PVPdropitem -- by godammeit (eathena.ws) - Quote :
- - script PVPdropitem -1,{
OnPCDieEvent:
set .@oneorall,0; // 0 = this script will run if you die in @PVPdropitem$ // 1 = this script will not run if you die in @PVPdropitem$
set .@rand100,10000;
setarray @PVPdropitem$[0],"prontera";
setarray @dropitem[0],607;
set .@rand1,rand(1,10000); if( .@rand100 < .@rand1 ){ end; }
getmapxy(.@mapname$,.@mapx,.@mapy,0,strcharinfo(0));
for(set .@p,0; .@p if(.@mapname$!=@PVPdropitem$[.@p])&&( .@oneorall ){
makeitem @dropitem[rand(getarraysize(@dropitem))],1,.@mapname$,.@mapx,.@mapy; goto QWend; }
if(.@mapname$==@PVPdropitem$[.@p])&&( !.@oneorall ){
makeitem @dropitem[rand(getarraysize(@dropitem))],1,.@mapname$,.@mapx,.@mapy; } }
QWend: end; } | |
|