Rhenze Tajan Posted October 14, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 10/14/19 Last Seen: August 29, 2024 Share Posted October 14, 2019 (edited) i saw this working script online that mvp drops tcg but i need to set a limit of tcg being drop by mvps per day and reset every 12:00 am server time here is the code hope you can help me - script MvP_Kill -1,{ end; OnNPCKillEvent: .@checkmvp = compare(.MvPID$,""+killedrid); if( .@checkmvp ) { if( !.Chance || (.Chance && .Chance > rand(10000)) ) getitem .Reward, 1; } end; OnInit: .Chance = 1000; // 1000 = 10%, 0 = turn off chance drop mode, 100% drop .MvPID$ = "1511,1734,1492,1647,1785,1630,1399,1039,1874,"+ "1251,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,"+ "1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,"+ "1190,1038,1157,1159,1502,1623,1650,1583,"+ "1708,1312,1751,1685,1648,1917,1658"; // MvP Ids .Reward = 7227; // Reward Item ID end; } Edited October 15, 2019 by Emistry codebox Quote Link to comment Share on other sites More sharing options...
1 sader1992 Posted October 14, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 40 minutes ago Share Posted October 14, 2019 (edited) - script MvP_Kill -1,{ OnNPCKillEvent: .@checkmvp = compare(.MvPID$,""+killedrid); if( .@checkmvp ) { if( !.Chance || (.Chance && .Chance > rand(10000)) ) if(.limit > .limit_drop){ getitem .Reward, 1; .limit_drop++; } } end; OnClock0000: .limit_drop = 0; end; OnInit: .limit = 100; //100 drop per day .Chance = 1000; // 1000 = 10%, 0 = turn off chance drop mode, 100% drop .MvPID$ = "1511,1734,1492,1647,1785,1630,1399,1039,1874,"+ "1251,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,"+ "1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,"+ "1190,1038,1157,1159,1502,1623,1650,1583,"+ "1708,1312,1751,1685,1648,1917,1658"; // MvP Ids .Reward = 7227; // Reward Item ID end; } Edited October 14, 2019 by sader1992 4 Quote Link to comment Share on other sites More sharing options...
0 Rhenze Tajan Posted October 14, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 10/14/19 Last Seen: August 29, 2024 Author Share Posted October 14, 2019 42 minutes ago, Tisuuu said: I know it has nothing to do with the topic but I hate to see that a person has given their time answering a topic and still creating / modifying a script and does not get a reputation or correct answer. sorry i am new here in this forum how can i declare her answer the correct one and how can i give her plus reputation Quote Link to comment Share on other sites More sharing options...
-1 Rhenze Tajan Posted October 14, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 10/14/19 Last Seen: August 29, 2024 Author Share Posted October 14, 2019 i see so thats how yoy do it thanks sorry new to scripting topic closed Quote Link to comment Share on other sites More sharing options...
-1 Tisuuu Posted October 14, 2019 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 37 Reputation: 3 Joined: 02/14/14 Last Seen: June 15, 2020 Share Posted October 14, 2019 10 minutes ago, Rhenze Tajan said: i see so thats how yoy do it thanks sorry new to scripting topic closed I know it has nothing to do with the topic but I hate to see that a person has given their time answering a topic and still creating / modifying a script and does not get a reputation or correct answer. Quote Link to comment Share on other sites More sharing options...
-1 LOOLP - OFF Posted October 15, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted October 15, 2019 That's why I stopped giving any and all support! People think that here just come, ask and leave .. They do not thank, nor repay with the least our time, knowledge or goodwill. My projects are just for me! End. Toxic Comunity. Quote Link to comment Share on other sites More sharing options...
Question
Rhenze Tajan
i saw this working script online that mvp drops tcg but i need to set a limit of tcg being drop by mvps per day and reset every 12:00 am server time
here is the code hope you can help me
- script MvP_Kill -1,{ end; OnNPCKillEvent: .@checkmvp = compare(.MvPID$,""+killedrid); if( .@checkmvp ) { if( !.Chance || (.Chance && .Chance > rand(10000)) ) getitem .Reward, 1; } end; OnInit: .Chance = 1000; // 1000 = 10%, 0 = turn off chance drop mode, 100% drop .MvPID$ = "1511,1734,1492,1647,1785,1630,1399,1039,1874,"+ "1251,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,"+ "1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,"+ "1190,1038,1157,1159,1502,1623,1650,1583,"+ "1708,1312,1751,1685,1648,1917,1658"; // MvP Ids .Reward = 7227; // Reward Item ID end; }
codebox
Link to comment
Share on other sites
5 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.