Yukaiii Posted December 11, 2024 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 170 Reputation: 9 Joined: 11/20/13 Last Seen: 1 hour ago Share Posted December 11, 2024 Good morning guys! Could anyone help me with this script? I wanted it to announce when the player opened the box and the item was won I even tried a few ways here but without success. I am using eAthena emulator. Quote function script dominatebox { switch( rand(60) ) { case 0: getitem2 5100,1,1,0,0,0,0,0,0; break; case 1: getitem2 5100,1,1,10,0,0,0,0,0; break; case 2: getitem2 2265,1,1,0,0,0,0,0,0; break; case 3: getitem2 2265,1,1,10,0,0,0,0,0; break; case 4: getitem2 20001,1,1,0,0,0,0,0,0; break; case 5: getitem2 20000,1,1,0,0,0,0,0,0; break; case 6: getitem2 20003,1,1,0,0,0,0,0,0; break; case 7: getitem2 20008,1,1,0,0,0,0,0,0; break; case 8: getitem2 13517,5,1,0,0,0,0,0,0; break; case 9: getitem2 13517,5,1,0,0,0,0,0,0; break; case 10: getitem2 13517,5,1,0,0,0,0,0,0; break; case 11: getitem2 13517,1,1,0,0,0,0,0,0; break; case 12: getitem2 25532,1,1,0,0,0,0,0,0; break; case 13: getitem2 13517,3,1,0,0,0,0,0,0; break; case 14: getitem2 20008,2,1,0,0,0,0,0,0; break; case 15: getitem2 13517,4,1,0,0,0,0,0,0; break; case 16: getitem2 13517,5,1,0,0,0,0,0,0; break; case 17: getitem2 13517,6,1,0,0,0,0,0,0; break; case 18: getitem2 13517,7,1,0,0,0,0,0,0; break; case 19: getitem2 13517,8,1,0,0,0,0,0,0; break; case 20: getitem2 13517,9,1,0,0,0,0,0,0; break; case 21: getitem2 13517,10,1,0,0,0,0,0,0; break; case 22: getitem2 13517,1,1,0,0,0,0,0,0; break; case 23: getitem2 20008,5,1,0,0,0,0,0,0; break; case 24: getitem2 13517,2,1,0,0,0,0,0,0; break; case 25: getitem2 13517,3,1,0,0,0,0,0,0; break; case 26: getitem2 13517,4,1,0,0,0,0,0,0; break; case 27: getitem2 13517,5,1,0,0,0,0,0,0; break; case 28: getitem2 13517,6,1,0,0,0,0,0,0; break; case 29: getitem2 13517,7,1,0,0,0,0,0,0; break; case 30: getitem2 20008,10,1,0,0,0,0,0,0; break; case 31: getitem2 3348,1,1,0,0,0,0,0,0; break; case 32: getitem2 3368,1,1,0,0,0,0,0,0; break; case 33: getitem2 3357,1,1,0,0,0,0,0,0; break; case 34: getitem2 22564,1,1,0,0,0,0,0,0; break; case 35: getitem2 22565,1,1,0,0,0,0,0,0; break; case 36: getitem2 22566,1,1,0,0,0,0,0,0; break; case 37: getitem2 22567,1,1,0,0,0,0,0,0; break; case 38: getitem2 22568,1,1,0,0,0,0,0,0; break; case 39: getitem2 22569,5,1,0,0,0,0,0,0; break; case 40: getitem2 22570,1,1,0,0,0,0,0,0; break; case 41: getitem2 22580,1,1,0,0,0,0,0,0; break; case 42: getitem2 22581,1,1,0,0,0,0,0,0; break; case 43: getitem2 22589,1,1,0,0,0,0,0,0; break; case 44: getitem2 13517,1,1,0,0,0,0,0,0; break; case 45: getitem2 20008,2,1,0,0,0,0,0,0; break; case 46: getitem2 22592,1,1,0,0,0,0,0,0; break; case 47: getitem2 22593,5,1,0,0,0,0,0,0; break; case 48: getitem2 22606,6,1,0,0,0,0,0,0; break; case 49: getitem2 22610,7,1,0,0,0,0,0,0; break; case 50: getitem2 22622,1,1,0,0,0,0,0,0; break; case 51: getitem2 22625,1,1,0,0,0,0,0,0; break; case 52: getitem2 13517,10,1,0,0,0,0,0,0; break; case 53: getitem2 13517,1,1,0,0,0,0,0,0; break; case 54: getitem2 20008,5,1,0,0,0,0,0,0; break; case 55: getitem2 3435,1,1,0,0,0,0,0,0; break; case 56: getitem2 3440,1,1,0,0,0,0,0,0; break; case 57: getitem2 25227,1,1,0,0,0,0,0,0; break; case 58: getitem2 25270,1,1,0,0,0,0,0,0; break; case 59: getitem2 25418,1,1,0,0,0,0,0,0; break; case 60: getitem2 25481,1,1,0,0,0,0,0,0; break; end; } } Quote Link to comment Share on other sites More sharing options...
0 Mice Posted December 11, 2024 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 78 Reputation: 19 Joined: 12/24/18 Last Seen: 3 hours ago Share Posted December 11, 2024 6 hours ago, Yukaiii said: Good morning guys! Could anyone help me with this script? I wanted it to announce when the player opened the box and the item was won I even tried a few ways here but without success. I am using eAthena emulator. Try it like this case 0: getitem2 5100,1,1,0,0,0,0,0,0; announce "Player has received a reward!",0; break; Quote Link to comment Share on other sites More sharing options...
0 Yukaiii Posted December 12, 2024 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 170 Reputation: 9 Joined: 11/20/13 Last Seen: 1 hour ago Author Share Posted December 12, 2024 17 hours ago, Mice said: Try it like this case 0: getitem2 5100,1,1,0,0,0,0,0,0; announce "Player has received a reward!",0; break; It didn't work my friend... but it also didn't point out any errors in the emulator Quote Link to comment Share on other sites More sharing options...
0 rokimoki Posted January 25 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 75 Reputation: 11 Joined: 12/16/11 Last Seen: 3 hours ago Share Posted January 25 (edited) (Null means I don't have that item in my db, don't worry, and also don't show how many of the item but we can adding a param to the function) I can't attach charid to item script, so always will say Some Player, set this to 0 always till we find a solution: (btw I don't really know if you really wanted to show player name or not, or just that some one received something). set .@enablePlayerName, 0; And put this as Item Script for your dominate box: DominateBox(); item_functions.txt Edited January 25 by rokimoki Quote Link to comment Share on other sites More sharing options...
Question
Yukaiii
Good morning guys!
Could anyone help me with this script?
I wanted it to announce when the player opened the box and the item was won
I even tried a few ways here but without success.
I am using eAthena emulator.
Link to comment
Share on other sites
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.