Eross Posted December 16, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted January 10 Share Posted January 10 try this - script Sample -1,{ end; OnTouchNPC: [email protected] = getattachedrid(); if ([email protected]) { getunitdata [email protected], [email protected]; if (getmonsterinfo([email protected][UMOB_CLASS], MOB_MVPEXP)) unitwarp 0,"this", -1, -1; } end; } Quote Link to comment Share on other sites More sharing options...
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; }Link to comment
Share on other sites