NPC script problem.

Play Now

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
This is a script in Useing in HeavenSent & its not working right when i dont have the QueensKey im my bag it still tellys me to the zumaqueens layar can u take a look & tell me what you think iv done wroung.


[@main]
Hello im ken, im guarding the door to the ZumaQueen's Layer,\
not for my benefit but to keep you safe. If you want to \
get in you must prove yourself, the ZumaTarus is not as\
hard as the Queen but he's a worthy opponant if you\
Slay him he might give you a key for me then ill let you pass!\

Send Me to the <Zuma Queens layer/@zumaq>\
<Exit/@exit>\

[@zumaq]
#IF
checkItem QueensKey
#ACT
take Item QueensKey
mapmove 0 333 268
break
#ELSESAY
You don't have the key begone!\\
<Exit/@exit>

---------------------------------------------
/HS
 

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
105
~HeavenSent~ said:
This is a script in Useing in HeavenSent & its not working right when i dont have the QueensKey im my bag it still tellys me to the zumaqueens layar can u take a look & tell me what you think iv done wroung.


[@main]
Hello im ken, im guarding the door to the ZumaQueen's Layer,\
not for my benefit but to keep you safe. If you want to \
get in you must prove yourself, the ZumaTarus is not as\
hard as the Queen but he's a worthy opponant if you\
Slay him he might give you a key for me then ill let you pass!\

Send Me to the <Zuma Queens layer/@zumaq>\
<Exit/@exit>\

[@zumaq]
#IF
checkItem QueensKey 1
#ACT
take QueensKey 1
mapmove 0 333 268
break
#ELSESAY
You don't have the key begone!\\
<Exit/@exit>

---------------------------------------------
/HS

^ I think that should do it
 
Last edited:
Upvote 0

spunky05

LOMCN Veteran
Veteran
Loyal Member
Oct 7, 2003
271
1
95
Smallville
[@main]
Hello im ken, im guarding the door to the ZumaQueen's Layer,\
not for my benefit but to keep you safe. If you want to \
get in you must prove yourself, the ZumaTarus is not as\
hard as the Queen but he's a worthy opponant if you\
Slay him he might give you a key for me then ill let you pass!\

Send Me to the <Zuma Queens layer/@zumaq>\
<Exit/@exit>\

[@zumaq]
#IF
checkitem QueensKey 1
#ACT
take QueensKey 1
mapmove 0 333 268
break
#ELSESAY
You don't have the key begone!\\
<Exit/@exit>
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
~HeavenSent~ said:
This is a script in Useing in HeavenSent & its not working right when i dont have the QueensKey im my bag it still tellys me to the zumaqueens layar can u take a look & tell me what you think iv done wroung.


[@main]
Hello im ken, im guarding the door to the ZumaQueen's Layer,\
not for my benefit but to keep you safe. If you want to \
get in you must prove yourself, the ZumaTarus is not as\
hard as the Queen but he's a worthy opponant if you\
Slay him he might give you a key for me then ill let you pass!\

Send Me to the <Zuma Queens layer/@zumaq>\
<Exit/@exit>\

[@zumaq]
#IF
checkItem QueensKey
#ACT
take Item QueensKey
mapmove 0 333 268
break
#ELSESAY
You don't have the key begone!\\
<Exit/@exit>

---------------------------------------------
/HS

that is all correct thats how ive done the script's like on my server and they work but try this
[@zumaq]
#IF
checkItem QueensKey
#ACT
take Item QueensKey
goto @zumaq2
break
#ELSEACT
goto @zumaq3
break

[@zumaq3]
You don't have the key begone!\\
<Exit/@exit>

[@zumaq2]
#ACT
mapmove 0 333 268
break

that might work but it's worth a try..
 
Last edited:
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
you need to have

CHECKITEM <itemname> <number>
TAKE <Itemname> <Number>
GIVE <Itemname> <Number>
 
Upvote 0

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
103
Middlesbrough ! Smoggy!
IF
checkitem queenskey 1
act
goto @queentele
elseact
goto @nokey

[@nokey]
say
you dont have the queenskey.\

[@queentele]
act
mapmove xxx xxx xxx
take queenskey 1
say
there you go , now be carefull.\

/Stan
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
ok here you go,

Code:
[@main]
Hello im ken, im guarding the door to the ZumaQueen's Layer,\
not for my benefit but to keep you safe. If you want to \
get in you must prove yourself, the ZumaTarus is not as\
hard as the Queen but he's a worthy opponant if you\
Slay him he might give you a key for me then ill let you pass!\

Send Me to the <Zuma Queens layer/@zumaq>\
<Exit/@exit>\

[@zumaq]
#IF
checkItem QueensKey 1
#ACT
take QueensKey 1
mapmove 0 333 268
#ELSESAY
You don't have the key begone!\\
<Exit/@exit>
 
Upvote 0