Hayato Posted November 16, 2017 Posted November 16, 2017 (edited) Hi guys.. Im pretty new to rAthena and could need a little help here. Im usingRagnarok Online complete offline pack 2017 | Make your RO server in less then 5 minutes In my Server i want ALL monsters to drop a poring coin (@item 7539) with a 90% chance. what i tried so far: 1. Create a txt in npc/custom called allmonstersdrop 2. edited the txt with OnNPCKillEvent: if( rand(100) < 10 ) // <---- tried 90 here instead of 10 aswell.. still no drops getitem 671,1; end; 3. saved 4. opened \rathena\npc\scripts_custom.conf and added the line npc: npc/custom/allmonstersdrop.txt 5. went ingame and typed @loadnpc npc/custom/allmonstersdrop.txt 6. typed @reload script ingame 7. killed monsters but no poring coin drops 8. restarted server 9. killed monsters again and again no drop... please help me out im kinda desperate thanks a lot for your time! Edited November 16, 2017 by rye305 Quote
0 Scanty Posted November 17, 2017 Posted November 17, 2017 (edited) @Emistry Code: OnNPCKillEvent: if ( rand( 2 ) ) { .@item_id = F_Rand( 501,502,503,504,505 ); getitem .@item_id,1; } end; Just change: - script Poring_Coin -1,{ OnNPCKillEvent: if ( rand( 100 ) <= 90 ) { .@item_id = F_Rand( 7539 ); getitem .@item_id,1; } end; } Steps: 1) Create a txt in npc/custom/allmonstersdrop.txt 2) Put the code. 3) Save the file. 4) open ...\rathena\npc\scripts_custom.conf 5) add npc: npc/custom/allmonstersdrop.txt 6) type @reload script ingame 7). kill monsters. Edited November 17, 2017 by Scanty 1 Quote
0 Hayato Posted November 17, 2017 Author Posted November 17, 2017 (edited) On 17.11.2017 at 2:00 AM, Scanty said: @Emistry Code: OnNPCKillEvent: if ( rand( 2 ) ) { .@item_id = F_Rand( 501,502,503,504,505 ); getitem .@item_id,1; } end; Just change: - script Poring_Coin -1,{ OnNPCKillEvent: if ( rand( 100 ) <= 90 ) { .@item_id = F_Rand( 7539 ); getitem .@item_id,1; } end; } Steps: 1) Create a txt in npc/custom/allmonstersdrop.txt 2) Put the code. 3) Save the file. 4) open ...\rathena\npc\scripts_custom.conf 5) add npc: npc/custom/allmonstersdrop.txt 6) type @reload script ingame 7). kill monsters. best man Edited November 25, 2017 by rye305 Quote
0 Deleted User Posted November 17, 2017 Posted November 17, 2017 4 hours ago, rye305 said: YOU ARE THE BEEEEEEEEEEEEEEEEEEEEEEEEEEST THANK YOUUUUUUUUUUU <3 Edit: Could you tell me how Mvps drop 5 poring coins instead of 1 ^^? PLEASE <3 If you want that every MvP get killed and obtain 5 x Poring Coin. Here's the simple script: - script F_TriggerMVVP -1,{ OnNPCKillEvent: if( getmonsterinfo(killedrid,22) ) announce "Congratulations! Player, "+ strcharinfo(0) +" has killed MVP "+ getmonsterinfo( killedrid, MOB_NAME ) +" and obtained 'Poring Coin' at "+ strcharinfo(3),0,0x00FF00; getitem 7539,5; end; } Quote
0 Kaleidoscope Posted October 7, 2018 Posted October 7, 2018 A little late here, but Can you explain the rand ( 100 ) <=90? Lets say i wanted it to be 5%, what would the number have to changed to, <=5? @Royr I figured it out in like 2 secs but thanks anyway! Quote
0 Royr Posted October 7, 2018 Posted October 7, 2018 55 minutes ago, Kaleidoscope said: A little late here, but Can you explain the rand ( 100 ) <=90? Lets say i wanted it to be 5%, what would the number have to changed to, <=5? if( rand( 100 ) < 5 ) { // 5% Quote
0 JoseRicart Posted April 7, 2022 Posted April 7, 2022 On 11/17/2017 at 11:13 AM, Deleted User said: If you want that every MvP get killed and obtain 5 x Poring Coin. Here's the simple script: - script F_TriggerMVVP -1,{ OnNPCKillEvent: if( getmonsterinfo(killedrid,22) ) announce "Congratulations! Player, "+ strcharinfo(0) +" has killed MVP "+ getmonsterinfo( killedrid, MOB_NAME ) +" and obtained 'Poring Coin' at "+ strcharinfo(3),0,0x00FF00; getitem 7539,5; end; } I tried this script but let's say it barely works for me, I would like it to drop the poring coin only when I kill an MvP, but it turns out that when I kill an MvP, when I kill a skeleton, a poring, whatever it is, it drops the coin here an imagen Quote
0 Emistry Posted May 1, 2022 Posted May 1, 2022 OnNPCKillEvent: if (getmonsterinfo(killedrid,22)) { announce "Congratulations! Player, "+ strcharinfo(0) +" has killed MVP "+ getmonsterinfo( killedrid, MOB_NAME ) +" and obtained 'Poring Coin' at "+ strcharinfo(3), 0, 0x00FF00; getitem 7539, 5; } end; Quote
0 BugSICK Posted May 23, 2022 Posted May 23, 2022 On 11/17/2017 at 9:00 AM, Scanty said: @Emistry Code: OnNPCKillEvent: if ( rand( 2 ) ) { .@item_id = F_Rand( 501,502,503,504,505 ); getitem .@item_id,1; } end; Just change: - script Poring_Coin -1,{ OnNPCKillEvent: if ( rand( 100 ) <= 90 ) { .@item_id = F_Rand( 7539 ); getitem .@item_id,1; } end; } how to add only monster above 50 will drop thanks Quote
Question
Hayato
Hi guys.. Im pretty new to rAthena and could need a little help here.
Im usingRagnarok Online complete offline pack 2017 | Make your RO server in less then 5 minutes
In my Server i want ALL monsters to drop a poring coin (@item 7539) with a 90% chance.
what i tried so far:
1. Create a txt in npc/custom called allmonstersdrop
2. edited the txt with
OnNPCKillEvent:
if( rand(100) < 10 ) // <---- tried 90 here instead of 10 aswell.. still no drops
getitem 671,1;
end;
3. saved
4. opened \rathena\npc\scripts_custom.conf
and added the line
npc: npc/custom/allmonstersdrop.txt
5. went ingame and typed @loadnpc npc/custom/allmonstersdrop.txt
6. typed @reload script ingame
7. killed monsters but no poring coin drops
8. restarted server
9. killed monsters again and again no drop...
please help me out im kinda desperate
thanks a lot for your time!
Edited by rye3058 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.