Jump to content
  • 0

Request simple script for using a pet


Question

Posted

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.

 

 

2 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...