Hayato Posted November 16, 2017 Share 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 Link to comment Share on other sites More sharing options...
0 Scanty Posted November 17, 2017 Share Posted November 17, 2017 (edited) @Emistry Code: OnNPCKillEvent: if ( rand( 2 ) ) { [email protected]_id = F_Rand( 501,502,503,504,505 ); getitem [email protected]_id,1; } end; Just change: - script Poring_Coin -1,{ OnNPCKillEvent: if ( rand( 100 ) <= 90 ) { [email protected]_id = F_Rand( 7539 ); getitem [email protected]_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 Link to comment Share on other sites More sharing options...
0 Hayato Posted November 17, 2017 Author Share Posted November 17, 2017 (edited) On 17.11.2017 at 2:00 AM, Scanty said: @Emistry Code: OnNPCKillEvent: if ( rand( 2 ) ) { [email protected]_id = F_Rand( 501,502,503,504,505 ); getitem [email protected]_id,1; } end; Just change: - script Poring_Coin -1,{ OnNPCKillEvent: if ( rand( 100 ) <= 90 ) { [email protected]_id = F_Rand( 7539 ); getitem [email protected]_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 Link to comment Share on other sites More sharing options...
0 Deleted User Posted November 17, 2017 Share 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 Link to comment Share on other sites More sharing options...
0 Kaleidoscope Posted October 7, 2018 Share 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 Link to comment Share on other sites More sharing options...
0 Royr Posted October 7, 2018 Share 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 Link to comment Share on other sites More sharing options...
0 JoseRicart Posted April 7 Share Posted April 7 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted May 1 Share Posted May 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 Link to comment Share on other sites More sharing options...
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 rye305Link to comment
Share on other sites