cmsm94 Posted September 9, 2016 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 170 Reputation: 5 Joined: 08/11/13 Last Seen: October 18, 2024 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 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: Yesterday at 04:54 PM 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 .@n$,"[^777777No Pet Teleport^000000]"; mes .@n$; mes "Do you want to enter the map?"; if (select("Yes:No")==1){ if(getpetinfo(1)){ next; mes .@n$; mes "You are no allowed to enter the map because you are using a pet."; close; } else { next; mes .@n$; 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 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 170 Reputation: 5 Joined: 08/11/13 Last Seen: October 18, 2024 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 .@n$,"[^777777No Pet Teleport^000000]"; mes .@n$; mes "Do you want to enter the map?"; if (select("Yes:No")==1){ if(getpetinfo(1)){ next; mes .@n$; mes "You are no allowed to enter the map because you are using a pet."; close; } else { next; mes .@n$; 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...
Question
cmsm94
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
2 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.