I think im going blind - Script Should Work.

smoochy boys on tour

Lone

LOMCN Veteran
Veteran
Mar 15, 2007
278
12
64
Well i seem to have an issue with a script - i thnk i have been looking at scripts to for too long and its made me blind to my errors :(


could anyone tell me why this script wont actually work?

the idea is if you have PK points you shouldn't get the option to teleport into the map but whether you have points or not it allows you to tele :( its driving me nuts lol im sure its a simply **** up on my part ;) )


Code:
[@Main]
#SAY
<Teleport me to PK Vill Please/@pkvill> \
<close/@exit>  
 
[@pkvill]
#IF
CHECKPKPOINT 0
#SAY
PK Vill is a dangerous place to be, are you sure you\
want me to teleport you in?\
<Teleport me in please/@pkvillteleport> \
<close/@exit>
#ELSESAY
Sorry but i dont talk to pkers come back to me when you\
have 0 PK points.\
<Close/@exit>

[@pkvillteleport]
#act
give PKCHIP 1
mapmove pkvill 264 257
Break
 
[@exit]
#act
break
 

TheMightyOne

Golden Oldie
Golden Oldie
Jun 14, 2004
722
3
124
UnitedKingdom
Think you need checkpkpoint < 1 which means it check whether your pk point is lower than 1.

Probably wrong but worth a try.

by the way, what doesnt work about it?
 
Last edited:
Upvote 0

Lone

LOMCN Veteran
Veteran
Mar 15, 2007
278
12
64
ill give it a try - i didnt think the < worked for pkpoints but i could be wrong also lol ;)

the error is that i want to Stop people from using the Teleport if they have PKpoints. they should only be able to use it if they have 0 pk points but for some reason it offers them the teleport choice if you have points or not.
 
Upvote 0

Lone

LOMCN Veteran
Veteran
Mar 15, 2007
278
12
64
^^ with the < 1 it seems to stop everything lol so we can go from allowing 100% of people to go in all the way to allowing 0% of people lol ^.^ if i work it out ill let you know for future reference ;)

if anyone else has any ideas please give us a shout :)

thanks ^.^
 
Upvote 0

TheMightyOne

Golden Oldie
Golden Oldie
Jun 14, 2004
722
3
124
UnitedKingdom
Well this is a script that uses the checkpkpoint

[@main]
#IF
checkpkpoint 2
#SAY
I will not help an evil person like you..\ \
<Ok/@exit>

#ELSEACT
goto @main-1


[@main-1]
PK Vill is a dangerous place to be, are you sure you\
want me to teleport you in?\
<Teleport me in please/@pkvillteleport> \
<close/@exit>

[@pkvillteleport]
#act
give PKCHIP 1
mapmove pkvill 264 257
Break

try that.
 
Upvote 0

Lone

LOMCN Veteran
Veteran
Mar 15, 2007
278
12
64
ill give that a try now ;) (im wondering is the checkpkpoint is a bit weird and treats 2 as no points and 1 and some points or something silly like that)

ill let you know how i get on :) tyty
 
Upvote 0

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
125
Try it like Mighty said, use the scripts you already have, so try:

Code:
[@main]
#IF
checkpkpoint 2
#SAY
You can't enter this with a red name\\
#ELSEACT
goto @main-1
<Ok/@exit>

[@main-1]
#IF
checkpkpoint 1
#SAY
You can't enter this with a yellow name\\
#ELSEACT
goto @main-2

[@main-2]
#ACT
ENTER BLAH BLAH
 
Upvote 0

Lone

LOMCN Veteran
Veteran
Mar 15, 2007
278
12
64
Try it like Mighty said, use the scripts you already have, so try:

Code:
[@main]
#IF
checkpkpoint 2
#SAY
You can't enter this with a red name\\
#ELSEACT
goto @main-1
<Ok/@exit>
 
[@main-1]
#IF
checkpkpoint 1
#SAY
You can't enter this with a yellow name\\
#ELSEACT
goto @main-2
 
[@main-2]
#ACT
ENTER BLAH BLAH

awwww! i think you just made it make sense for me.


would i be right in thinking

0=white name
1=yellow name
2=red name

if thats the case it would explain everything lol (my gm was testing with only 50 pk points!) lol ill give you feed back asap :)

tyty for the help
 
Upvote 0

Lone

LOMCN Veteran
Veteran
Mar 15, 2007
278
12
64
Thanks guy its working now :)

just for reference for anyone else struggling with the CHECKPKPOINT command.

the settings are

0 = White Name
1 = Yellow Name
2 = Red Name


thanks alot for the help :):)
 
Upvote 0

solvent

LOMCN Veteran
Veteran
Jul 24, 2006
457
0
63
On The Sun
how do u make npc so only RED people can use it then ? just use the checkcommand and = 2 ? or will that let white / yellow use it aswell ?
 
Upvote 0

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
125
Just use as you say, should work fine

Code:
[@main]
#IF
checkpkpoint 2
#ACT
 
Upvote 0