HristDead Posted November 29, 2012 Posted November 29, 2012 I used a script in eAthena, it was as followed: -[TAB]script[TAB]-1,{ OnNPCKillEvent: set .@a,rand(1,100); if (.@a==1){set .@b,rand(1,2); if (.@b==1){getitem 677,1;}} end; } This is an universal item drop. Means that all monsters in the game is able to drop ID 677 at a 0.5% rate. weirdly enough it doesn't work in rAthena. Anybody know why? Quote
GmOcean Posted November 29, 2012 Posted November 29, 2012 Really? Because I recently used something like this and it worked for me. In fact it set 8 different variables until they didn't match each other. I know this sounds dumb, but you did replace [tab] with actual tabs right? Quote
Euphy Posted November 29, 2012 Posted November 29, 2012 It should work. o.o You could rewrite it as a single statement, if (!rand(200)) getitem 677,1; Quote
HristDead Posted November 29, 2012 Author Posted November 29, 2012 Really? Because I recently used something like this and it worked for me. In fact it set 8 different variables until they didn't match each other. I know this sounds dumb, but you did replace [tab] with actual tabs right? Yes, I did. And it really doesn't seem to work, I even copy/pasted it from one custom .txt script into another to make it was really reading it. Rebooted too. I'll try Euphy's solution and report back later. Quote
Question
HristDead
I used a script in eAthena, it was as followed:
This is an universal item drop. Means that all monsters in the game is able to drop ID 677 at a 0.5% rate.
weirdly enough it doesn't work in rAthena. Anybody know why?
3 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.