fiq5566 Posted June 4, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/04/17 Last Seen: July 8, 2020 Share 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 Link to comment Share on other sites More sharing options...
1 Kinx Posted June 5, 2017 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 106 Reputation: 30 Joined: 04/03/17 Last Seen: October 10, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 Valor Posted June 4, 2017 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 72 Reputation: 29 Joined: 12/21/16 Last Seen: January 5, 2024 Share Posted June 4, 2017 - script auto-drop-gold -1,{ OnNPCKillEvent: if ( strcharinfo( 3 ) != "guild_vs4" || rand( 100 ) > 5 ) end; getitem 969,1; end; } Quote Link to comment Share on other sites More sharing options...
0 Kinx Posted June 4, 2017 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 106 Reputation: 30 Joined: 04/03/17 Last Seen: October 10, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 fiq5566 Posted June 4, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/04/17 Last Seen: July 8, 2020 Author Share Posted June 4, 2017 sir i test can not.. Quote Link to comment Share on other sites More sharing options...
0 fiq5566 Posted June 4, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/04/17 Last Seen: July 8, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
0 Ninja Posted June 5, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 fiq5566 Posted June 5, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/04/17 Last Seen: July 8, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
0 Ninja Posted June 5, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 fiq5566 Posted June 5, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 06/04/17 Last Seen: July 8, 2020 Author Share Posted June 5, 2017 ya.. you can make? Quote Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.