fiq5566 Posted June 4, 2017 Posted June 4, 2017 - script auto-drop-gold -1,{ OnNPCKillEvent: if ( strcharinfo( 3 ) != "guild_vs4" || rand( 100 ) > 5 ) end; getitem 909, 5; } end; } who can help me to fix this? Quote
1 Kinx Posted June 5, 2017 Posted June 5, 2017 - script Sample -1,{ OnInit: set .amount, 40; // amount of item to shower set .item_id, 7227; // item id to shower set .map$, "prontera"; // map to shower end; OnMinute00: while ( .count < .amount ) { do { .@x = rand(1,500); .@y = rand(1,500); } while (!checkcell(.map$,.@x,.@y,cell_chkpass)); makeitem .item_id,1,.map$,.@x,.@y; set .count, .count + 1; } set .count, 0; end; } 1 Quote
0 Valor Posted June 4, 2017 Posted June 4, 2017 - script auto-drop-gold -1,{ OnNPCKillEvent: if ( strcharinfo( 3 ) != "guild_vs4" || rand( 100 ) > 5 ) end; getitem 969,1; end; } Quote
0 Kinx Posted June 4, 2017 Posted June 4, 2017 like this? mapname,x,y,direction script NPCName id,{ for (set .@i, 0;.@i < getarraysize(.items);set .@i, .@i+1){ set .@itemid = .items[.@i]; for (set .@j, 0; .@j < .amount[.@i]; set .@j, .@j+1){ set .@x, rand(.upperleftx,.lowerrightx); set .@y, rand(.lowerrighty,.upperlefty); makeitem .@itemid,1,.map,.@x,.@y; } } end; OnInit: setarray .items[0],909; //add items that should be dropped here setarray .amount,5; //how many of each item should drop? set .map,"guild_vs4"; //map set .upperleftx,0; //items will be dropped in that area (see below) set .upperlefty,0; set .lowerrightx,0; set .lowerrighty,0; end; } 1 Quote
0 fiq5566 Posted June 4, 2017 Author Posted June 4, 2017 - script . -1,{ OnInit: for (set .@i, 0;.@i < getarraysize(.items);set .@i, .@i+1){ set .@itemid = .items[.@i]; for (set .@j, 0; .@j < .amount[.@i]; set .@j, .@j+1){ set .@x, rand(.upperleftx,.lowerrightx); set .@y, rand(.lowerrighty,.upperlefty); makeitem .@itemid,1,.map,.@x,.@y; } } end; OnInit: setarray .items[0],969; //add items that should be dropped here setarray .amount,5; //how many of each item should drop? set .map,"guild_vs4"; //map set .upperleftx,0; //items will be dropped in that area (see below) set .upperlefty,0; set .lowerrightx,0; set .lowerrighty,0; end; } can not drop gold auto in map Quote
0 Ninja Posted June 5, 2017 Posted June 5, 2017 22 hours ago, fiq5566 said: - script auto-drop-gold -1,{ OnNPCKillEvent: if ( strcharinfo( 3 ) != "guild_vs4" || rand( 100 ) > 5 ) end; getitem 909, 5; } end; } who can help me to fix this? Correct me if I'm wrong, your map is guild_vs4 and you want 5% chance to drop gold when some kills a monster in it? Or do you want a 5% chance to drop gold when someone kills a monster outside of guild_vs4? Quote
0 fiq5566 Posted June 5, 2017 Author Posted June 5, 2017 (edited) you can make this map guild_vs4 drop gold only... no monster.. only gold auto drop 100% like rain Edited June 5, 2017 by fiq5566 Quote
0 Ninja Posted June 5, 2017 Posted June 5, 2017 13 minutes ago, fiq5566 said: you can make this map guild_vs4 drop gold only... no monster.. only gold auto drop 100% like rain you mean even if there is no one there it will rain gold? no need to kill anything? Quote
Question
fiq5566
- script auto-drop-gold -1,{
OnNPCKillEvent:
if ( strcharinfo( 3 ) != "guild_vs4" || rand( 100 ) > 5 ) end;
getitem 909, 5;
}
end;
}
who can help me to fix this?
9 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.