Interesting request and thanks to @Euphy for the script .
But I need some help..
No errors on map-server.. But the announcer is wrong.. I need the script announce any items below 50% chance..
set .@i, rand(1,.Total);
if (rand(1,100) > getd(".P"+.@i+"[0]")) {
for(set .@j,0; .@j<getarraysize(.Default); set .@j,.@j+2) {
getitem .Default[.@j], .Default[.@j+1];
if (!.@k[0]) setarray .@k[0], .Default[.@j], .Default[.@j+1]; } }
else {
for(set .@j,1; .@j<getarraysize(getd(".P"+.@i)); set .@j,.@j+2) {
getitem getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]");
if (!.@k[0]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } }
if (getd(".P"+.@i+"[0]")<=50 && .@k[0]!=.Default[0]) announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0;
and @Euphy, can you add 1 more function for viewing who did got items below 10%? Something like PVP Ladder maybe?
Let say the list will show 20 players who did get the items on what day and time and the list will automatically update from time to time. So, it will overwrite previous winner.. (I hope you understand my cheap explanations)
Question
uDe
Interesting request and thanks to @Euphy for the script .
But I need some help..
No errors on map-server.. But the announcer is wrong.. I need the script announce any items below 50% chance..
and @Euphy, can you add 1 more function for viewing who did got items below 10%? Something like PVP Ladder maybe?
Let say the list will show 20 players who did get the items on what day and time and the list will automatically update from time to time. So, it will overwrite previous winner.. (I hope you understand my cheap explanations)
original topic
Edited by AnnieRurusplit topic from http://rathena.org/board/topic/65196-tcg-drainer-very-useful-to-most-of-the-servers-just-like-lotti-girl-in-pro/
Link to comment
Share on other sites
8 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.