Not Working

dscottys

Dedicated Member
Dedicated Member
Nov 26, 2005
164
1
65
Liverpool
#IF
CHECKITEM Key
#ACT
TAKE Key
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>

whats up with this please?

why can i still teleport to the place i have put in and not need the key?

i have also tried

#IF
!CHECKITEM Key
#ACT
TAKE Key
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>

Cheers
 

MasterQ

LOMCN Veteran
Veteran
Loyal Member
Aug 6, 2006
462
0
62
London
#IF
CHECKITEM Key 1
#ACT
TAKE Key 1
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>

whats up with this please?

why can i still teleport to the place i have put in and not need the key?

i have also tried

#IF
!CHECKITEM Key
#ACT
TAKE Key
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>

Cheers
Gota add the number of keys
 
Upvote 0

Falador

Dedicated Member
Dedicated Member
May 13, 2007
221
1
64
Example


[Main]
#IF
CHECKITEM Key 1
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>
#elsesay
you havent Key,go away !\\

[@Tele]
#IF
CHECKITEM Key 1
#ACT
TAKE Key 1
@goto map
#elsesay
....fe.f.f.waf.a etc.

[@Map]
#IF
#say
good Luck m8 in Temple\\
#ACT
MAPMOVE 0 390 440 ( 0=Map 390 440= Cord)
 
Upvote 0

CrusaderIssy

Dedicated Member
Dedicated Member
Jun 19, 2007
31
0
52
#IF
CHECKITEM Key
#ACT
TAKE Key
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>

whats up with this please?

why can i still teleport to the place i have put in and not need the key?

i have also tried

#IF
!CHECKITEM Key
#ACT
TAKE Key
#SAY
You can now teleport to Temple.\\
<Teleport/@Tele>

Cheers

Although Faladors already told you a fix for this I'd personally use something more like:

[@main]
#IF
checkitem Key
#SAY
You've got the Key, Would you like to move to\
the Temple?\\
<Teleport/@teleport1>\
<No Thanks/@exit>
#ELSESAY
You don't have the key. Come back when you do!\
break
Adding the #ELSESAY will stop the rest of the script if the item isn't in the users bag. This should stop you being able to teleport if you don't have the key but it will run through the next section (@teleport1) if you have the key and click the Teleport button. Don't forget to include an @exit though incase the player isn't ready to move.

[@teleport1]
#IF
checkitem Key
#ACT
takeitem Key 1
mapmove 0 390 440
break
Here I've added the #IF command to check the item is still in the bag. This will stop people being able to drop the item on the ground after they start the script and will prevent abuse of the item/npc. Don't forget to add the number of items to take or you could end up taking them all from the bag instead of the one.

Hope this helps and if there's anything else you need help with let me know and I'll try my best.

Issy :D
 
Upvote 0