npc help, (quest)

Desolation Mir2 (Med Rate Server)

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
hiya peeps,

ok iam doing a new quest script and the first section is nearly complete,

basicly you get teleported to map to do a task, i have got all the bits done i need bar this one, i want the npc to check if the player doing the quest has pets, and if they do the npc wont let them in, i cant figure it out lol, any help would be really appreciated.

i cant post the script i have done as i dont want the players of bandet to get an unfair advantage

thanks in advance
 

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
i think the only way of doing ti is geting the npc to check the map for mobs but if the player has the pet outside & telly's it in you carnt do anything about it.

might be wroung
 
Upvote 0

jasper

Golden Oldie
Golden Oldie
Sep 10, 2005
890
3
105
put this somewhere in the script, with a warning perhaps

#act
killslave

but if ur using @ commands for peeps to get pets, then dont think that u can stop them calling pets once on map
 
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
put this somewhere in the script, with a warning perhaps

#act
killslave

but if ur using @ commands for peeps to get pets, then dont think that u can stop them calling pets once on map

k ile try this out on test server, i dont mind the @ command being used, its just i dont want ownage slaves in there lol

cheers
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
Code:
#IF
CHECKSLAVECOUNT > 0
#SAY
Sorry i cannot teleport you if you have pets.
#ELSEACT
move

That should work, if the "> 0" doesn't work use "= 1" or just "1".

-Dookie
 
Upvote 0