cmsm94 Posted September 9, 2016 Share Posted September 9, 2016 Hello asgardians, As my title requested, if someone has time to do it. Click the npc chats like normal then he gives you option 1:teleport 2:cancel . 1. If you choose teleport he will check if you are using your pet or not. If you are using then you may teleport; 2. Where,else if you don't use he wont allow you to teleport. Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted September 9, 2016 Share Posted September 9, 2016 I hope I`ve understand you correctly. If you are using a pet your not allowed to enter the map or else if you are not using a pet you are allowed to enter the map. map,x,y,4 script NoPetTeleport 411,{ set [email protected]$,"[^777777No Pet Teleport^000000]"; mes [email protected]$; mes "Do you want to enter the map?"; if (select("Yes:No")==1){ if(getpetinfo(1)){ next; mes [email protected]$; mes "You are no allowed to enter the map because you are using a pet."; close; } else { next; mes [email protected]$; mes "Have a nice day!"; close2; warp "map",x,y; end; } } close; } I hope it can help you a lot. Rynbef~ 1 Quote Link to comment Share on other sites More sharing options...
0 cmsm94 Posted September 9, 2016 Author Share Posted September 9, 2016 I hope I`ve understand you correctly. If you are using a pet your not allowed to enter the map or else if you are not using a pet you are allowed to enter the map. map,x,y,4 script NoPetTeleport 411,{ set [email protected]$,"[^777777No Pet Teleport^000000]"; mes [email protected]$; mes "Do you want to enter the map?"; if (select("Yes:No")==1){ if(getpetinfo(1)){ next; mes [email protected]$; mes "You are no allowed to enter the map because you are using a pet."; close; } else { next; mes [email protected]$; mes "Have a nice day!"; close2; warp "map",x,y; end; } } close; } I hope it can help you a lot. Rynbef~ Thanks for the reply it work great. Quote Link to comment Share on other sites More sharing options...
Hello asgardians,
As my title requested, if someone has time to do it.
Click the npc chats like normal then he gives you option 1:teleport 2:cancel .
1. If you choose teleport he will check if you are using your pet or not. If you are using then you may teleport;
2. Where,else if you don't use he wont allow you to teleport.
Link to comment
Share on other sites