Eross Posted December 16, 2021 Posted December 16, 2021 Hi ! Lately I created an NPC that will teleport mvp whenever it gets near the portal .. But the problem is it also teleport the near mobs .. How to make it trigger only by MVP monster ?? Thankyou ! - script AntiMVPLure -1,{ OnTouch: end; OnTouchNPC: unitwarp 0,"this", -1, -1; end; } Quote
0 Emistry Posted January 10, 2022 Posted January 10, 2022 try this - script Sample -1,{ end; OnTouchNPC: .@gid = getattachedrid(); if (.@gid) { getunitdata .@gid, .@array; if (getmonsterinfo(.@array[UMOB_CLASS], MOB_MVPEXP)) unitwarp 0,"this", -1, -1; } end; } Quote
0 Sallycantdance Posted November 19, 2023 Posted November 19, 2023 hello how to add mvp id here Quote
0 Emistry Posted November 20, 2023 Posted November 20, 2023 On 11/19/2023 at 10:04 AM, GM Winter said: hello how to add mvp id here from the sample code above .@array[UMOB_CLASS] is your monster id 1 Quote
Question
Eross
Hi ! Lately I created an NPC that will teleport mvp whenever it gets near the portal .. But the problem is it also teleport the near mobs .. How to make it trigger only by MVP monster ?? Thankyou !
- script AntiMVPLure -1,{ OnTouch: end; OnTouchNPC: unitwarp 0,"this", -1, -1; end; }
4 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.