ooGubAoo Posted June 26, 2023 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
1 Winterfox Posted June 26, 2023 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
0 ooGubAoo Posted June 27, 2023 Author 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
0 Poring King Posted June 27, 2023 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
0 ooGubAoo Posted June 29, 2023 Author 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
0 Poring King Posted June 29, 2023 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
Question
ooGubAoo
This Script When kill monter then get item in inventory.
I need to drop item on then groud.
Thank you.
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.