Jump to content
  • 0

Request simple script for using a pet


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

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

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   120
  • Joined:  05/23/12
  • Last Seen:  

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~

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

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. /no1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...