leertaste Posted March 4, 2013 Group: Members Topic Count: 41 Topics Per Day: 0.01 Content Count: 137 Reputation: 1 Joined: 02/02/13 Last Seen: July 18, 2019 Share Posted March 4, 2013 Hey guys^^ like the title says:Im looking for an scipt that gives an announce to the server when a card was dropped thank you <3 Quote Link to comment Share on other sites More sharing options...
0 skymia Posted May 16, 2020 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 02/19/17 Last Seen: May 26, 2024 Share Posted May 16, 2020 How to recreate this for only common cards to be announce? - script MVP_CARD_ANNOUNCER -1,{ OnInit: setarray( .@mvpIdList, 1871, 1874, 1719, 1492, 1147, 1688, 1583, 1623, 1389, 1046, 1087, 1190, 1272, 1115, 1418, 1779, 1157, 1685, 1734, 1658, 1647, 1649, 1651, 1646, 1650, 1648, 1630, 1059, 1159, 1038, 1511, 1373, 1751, 1150, 1039, 1086, 1785, 1768, 1832, 1112, 1312, 1251, 1252 ); setarray( .mvpCardIds, 4441, 4145, 4386, 4263, 4146, 4376, 4302, 4342, 4134, 4142, 4143, 4135, 4168, 4123, 4330, 4419, 4148, 4374, 4403, 4352, 4359, 4363, 4365, 4357, 4367, 4361, 4372, 4132, 4121, 4144, 4236, 4276, 4407, 4131, 4147, 4128, 4425, 4408, 4430, 4137, 4305, 4318, 4324 ); // Rate : 1 = 0.01% / 1000 = 10% / 10000 = 100% setarray( .mvpCardRates, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300 ); for(.@i = 0; .@i < getarraysize( .@mobIdList ); .@i++ ) { .mvpIds[ .@mvpIdList[ .@i ] ] = .@i; delmonsterdrop( .@mvpIdList[ .@i ], .mvpCardIds[ .@i ] ); } end; OnNPCKillEvent: .@mvpIndex = .mvpIds[ killedrid ]; if( !.@mvpIndex ) end; if( rand( 10000 ) <= .mvpCardRates[ .@mvpIndex ] ){ getitem( .mvpCardIds[ .@mvpIndex ], 1 ); announce( "[ " + strcharinfo(PC_NAME) + " ] just got a " + getitemname( .mvpCardIds[.@mvpIndex] ), bc_all ); } end; } Quote Link to comment Share on other sites More sharing options...
Cyrix Posted March 4, 2013 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 150 Reputation: 13 Joined: 02/16/12 Last Seen: April 10, 2023 Share Posted March 4, 2013 try: http://www.eathena.ws/board/lofiversion/index.php/t272695.html Quote Link to comment Share on other sites More sharing options...
leertaste Posted March 4, 2013 Group: Members Topic Count: 41 Topics Per Day: 0.01 Content Count: 137 Reputation: 1 Joined: 02/02/13 Last Seen: July 18, 2019 Author Share Posted March 4, 2013 seems not working for me^^ Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 4, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 4, 2013 // Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) *** // This can be set to any value between 0~10000. // Note: It also announces STEAL skill usage with rare items // 0 = don't show announces at all // 1 = show announces for 0.01% drop chance items // 333 = show announces for 3.33% or lower drop chance items // 10000 = show announces for all items rare_drop_announce: 0 settle this in your conf/battle/drops.conf Quote Link to comment Share on other sites More sharing options...
leertaste Posted March 4, 2013 Group: Members Topic Count: 41 Topics Per Day: 0.01 Content Count: 137 Reputation: 1 Joined: 02/02/13 Last Seen: July 18, 2019 Author Share Posted March 4, 2013 but other items will announced too, doesnt they? Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 4, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 4, 2013 Yes in that way others items will display an announce too Quote Link to comment Share on other sites More sharing options...
leertaste Posted March 4, 2013 Group: Members Topic Count: 41 Topics Per Day: 0.01 Content Count: 137 Reputation: 1 Joined: 02/02/13 Last Seen: July 18, 2019 Author Share Posted March 4, 2013 do u know, where the script for this is defined? // Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) ***// This can be set to any value between 0~10000.// Note: It also announces STEAL skill usage with rare items// 0 = don't show announces at all// 1 = show announces for 0.01% drop chance items// 333 = show announces for 3.33% or lower drop chance items// 10000 = show announces for all itemsrare_drop_announce: 0 maybe i can edit that O.Obecause i don't want a chance of 0,01 i want a chance of 0,1you know? Quote Link to comment Share on other sites More sharing options...
michaelsoftman Posted March 4, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 410 Reputation: 29 Joined: 04/04/12 Last Seen: November 28, 2024 Share Posted March 4, 2013 rare_drop_announce: 10 Would be 0.1% Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 4, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 4, 2013 // Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) *** // This can be set to any value between 0~10000. // Note: It also announces STEAL skill usage with rare items // 0 = don't show announces at all // 10 = show announces for 0.10% drop chance items // 333 = show announces for 3.33% or lower drop chance items // 10000 = show announces for all items rare_drop_announce: 0 Search in conf/battle/drops.conf If you want an announce only for card, you must to work in source files (pc.c for steal and mob.c for drop) But if you don't have item drop rate below your card drop rate, you just have to adjust rare_drop_announce Quote Link to comment Share on other sites More sharing options...
Question
leertaste
Hey guys^^
like the title says:

Im looking for an scipt that gives an announce to the server when a card was dropped
thank you <3
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.