Jump to content
  • 0

disable pet when entering map


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Is there like a script like 'onpcloadmapevent' that summons the pet BACK to egg when the char enters a certain map?

and a script that avoid pet hatching when inside this map?

 

Can anyone help me with this? 

 

thanks in advance!

Edited by Lord Ganja
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

There are none command to force the pet to return into its eggs, but you can restrict the access to the map.

prontera,163,185,5	script	warp event	56,{
	if ( petstat(PET_CLASS) ) {
		mes "You can enter with your pet.";
		close;
	}
	warp "<event map>",0,0;
	end;
}

+ mapflag itemnoequip and restricted like Kido said.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

You mean : disabled pet on castle map during guild war ?

conf/battle/pet.conf#L77

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

You mean : disabled pet on castle map during guild war ?

conf/battle/pet.conf#L77

Something like that. But i'll use it in an event not woe.

That's why I needed a script similar to that, that functions

outside woe.

Do you have any idea about it? Anyway thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

why not delete them from your item_db ? i mean, if you don't want anyone to use pets, maybe deleting them would be a good opbtion

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

why not delete them from your item_db ? i mean, if you don't want anyone to use pets, maybe deleting them would be a good opbtion

I enable pet attack.. I also have custom pets that helps their masters to level up, kill mobs and monsters..

But I have this event wherein their master needs to attack a mob, but pet shouldn't help them.. That's why I need to

disable them when their master is inside or entered the event.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

why not delete them from your item_db ? i mean, if you don't want anyone to use pets, maybe deleting them would be a good opbtion

I enable pet attack.. I also have custom pets that helps their masters to level up, kill mobs and monsters..

But I have this event wherein their master needs to attack a mob, but pet shouldn't help them.. That's why I need to

disable them when their master is inside or entered the event.

 

Like Capuche said, you can disable the pets on a castle map, If you are going to make an event on a  certain map, why not to disable the pets for WoE and use a castle map for the event o:?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

 

why not delete them from your item_db ? i mean, if you don't want anyone to use pets, maybe deleting them would be a good opbtion

I enable pet attack.. I also have custom pets that helps their masters to level up, kill mobs and monsters..

But I have this event wherein their master needs to attack a mob, but pet shouldn't help them.. That's why I need to

disable them when their master is inside or entered the event.

 

Like Capuche said, you can disable the pets on a castle map, If you are going to make an event on a  certain map, why not to disable the pets for WoE and use a castle map for the event o:?

I was asking if there's a script to disable pet.. Plus, if I were to use a castle map, pets are not disabled if woe is not active...

Anyway, I don't want to use a castle map. It doesn't suit the event for it.. I only wanted the script that functions like disabling pet in woe.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

well, you will have to wait for someone to help you, all i can think is to restrict the pet incubator and the eggs on itemnoequip and restricted ): sorry i was not helpfull at all

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

well, you will have to wait for someone to help you, all i can think is to restrict the pet incubator and the eggs on itemnoequip and restricted ): sorry i was not helpfull at all

 

Oh. I didn't think of this at all, to disable pet hatching using itemnoequip :) This really helps me kido. Thank you! :)

 

 

There are none command to force the pet to return into its eggs, but you can restrict the access to the map.

prontera,163,185,5	script	warp event	56,{
	if ( petstat(PET_CLASS) ) {
		mes "You can enter with your pet.";
		close;
	}
	warp "<event map>",0,0;
	end;
}

+ mapflag itemnoequip and restricted like Kido said.

 

Thanks also for this Capuche..

 

This solves my problem. Thanks to both of you :)

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