ooGubAoo Posted June 26, 2023 Group: Members Topic Count: 22 Topics Per Day: 0.03 Content Count: 55 Reputation: 1 Joined: 06/08/23 Last Seen: April 7 Share Posted June 26, 2023 Quote - script GetRed -1,{ OnNPCKillEvent: if (killedrid) > 0 { set #KILLED_MONSTERS, #KILLED_MONSTERS + 1; if (#KILLED_MONSTERS % 100 == 0) { getitem 501, 1; dispbottom "[ระบบ] : ยินดีด้วย คุณได้รับดรอปไอเทม Red Potion จากการกำจัดมอนเตอร์"; } } end; } This Script When kill monter then get item in inventory. I need to drop item on then groud. Thank you. Quote Link to comment Share on other sites More sharing options...
1 Winterfox Posted June 26, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted June 26, 2023 (edited) - script GetRed FAKE_NPC,{ OnNPCKillEvent: #KILLED_MONSTERS += 1; if (#KILLED_MONSTERS % .mobsPerDrop != 0) end; getunitdata(killedgid, .@mobData); makeitem(.itemDropId, .itemDropAmt, mapid2name(.@mobData[UMOB_MAPID]), .@mobData[UMOB_X], .@mobData[UMOB_Y]); dispbottom "[ระบบ] : ยินดีด้วย คุณได้รับดรอปไอเทม " + getitemname(.itemDropId) + " จากการกำจัดมอนเตอร์"; end; OnInit: .itemDropId = 501; .itemDropAmt = 1; .mobsPerDrop = 100; } Edited June 26, 2023 by Winterfox Quote Link to comment Share on other sites More sharing options...
0 ooGubAoo Posted June 27, 2023 Group: Members Topic Count: 22 Topics Per Day: 0.03 Content Count: 55 Reputation: 1 Joined: 06/08/23 Last Seen: April 7 Author Share Posted June 27, 2023 7 hours ago, Winterfox said: - script GetRed FAKE_NPC,{ OnNPCKillEvent: #KILLED_MONSTERS += 1; if (#KILLED_MONSTERS % .mobsPerDrop != 0) end; getunitdata(killedgid, .@mobData); makeitem(.itemDropId, .itemDropAmt, mapid2name(.@mobData[UMOB_MAPID]), .@mobData[UMOB_X], .@mobData[UMOB_Y]); dispbottom "[ระบบ] : ยินดีด้วย คุณได้รับดรอปไอเทม " + getitemname(.itemDropId) + " จากการกำจัดมอนเตอร์"; end; OnInit: .itemDropId = 501; .itemDropAmt = 1; .mobsPerDrop = 100; } Thank you very much.It work. Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted June 27, 2023 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted June 27, 2023 20 hours ago, ooGubAoo said: Thank you very much.It work. Please put some vote if someone help and it works like what you ask so they will also appreciate and keep helping other Quote Link to comment Share on other sites More sharing options...
0 ooGubAoo Posted June 29, 2023 Group: Members Topic Count: 22 Topics Per Day: 0.03 Content Count: 55 Reputation: 1 Joined: 06/08/23 Last Seen: April 7 Author Share Posted June 29, 2023 On 6/28/2023 at 5:53 AM, Poring King said: Please put some vote if someone help and it works like what you ask so they will also appreciate and keep helping other How to vote? Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted June 29, 2023 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted June 29, 2023 2 hours ago, ooGubAoo said: How to vote? Beside of your profile when you reply or someone reply to your post there is Arrow up and down Quote Link to comment Share on other sites More sharing options...
Question
ooGubAoo
This Script When kill monter then get item in inventory.
I need to drop item on then groud.
Thank you.
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.