scripting error,

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
Hi, been having trouble with my pkpoint feature which gives items

this is what i have atm


[@wep1-1]
#IF
checkpkpoint 44999
#ACT
GIVE DemonSword 1
PKPOINT - 45000
GOTO @MAIN
#ELSESAY
Sorry <$username> you dont have the correct amount\
Of PK-Points. \ \

<Back/@main>\
 

lewis

LOMCN Veteran
Veteran
Jan 15, 2004
327
0
43
Southampton
"GOTO @MAIN"

do you have an [@main] section in your script? what is the exact problem your having with your script?
 
Last edited:
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
do you really think im gonna post the whole script? :P

yes it dose have a [@main]

the problem is, it's giving items even though you dont have the correct amount of pk-points
 
Upvote 0

Snowman

Golden Oldie
Golden Oldie
May 30, 2005
729
3
155
obviously u have the wrong command for checkin pk points then :P

try CHECKPKPOINT (in caps)
 
Upvote 0

Neptune

Golden Oldie
Golden Oldie
Nov 19, 2003
1,473
9
175
Chester :P
Hi, been having trouble with my pkpoint feature which gives items

this is what i have atm


[@wep1-1]
#IF
checkpkpoint > 44999
#ACT
GIVE DemonSword 1
TAKEPKPOINT - 45000
GOTO @MAIN
#ELSESAY
Sorry <$username> you dont have the correct amount\
Of PK-Points. \ \

<Back/@main>\

try that, all i did was add the more than sign (also try the takepkpoint that iv added in red aswell)

obviously u have the wrong command for checkin pk points then :P

try CHECKPKPOINT (in caps)

im sure that caps or not doesnt make a difference because its all in the same section, the caps it just so you know wot ur looking at (so its easyer to read)
 
Last edited:
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
okay, ive tryd what you said neptune takepkpoint was an incorrect command and pkpoint - works anyway, once i click on the weapon it gives me weapon and removes the pkpoints but when i click it with no pkpoints it gives me it anyway.

is there a way where wen you pk you get a token? automatticly? because this dosnt wanna work,

/ancient
 
Upvote 0

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
I'll check the source for you to see the actual commands as that should work fine might not be until later though as i have work in 20 minutes but by the looks of it your script is fine what files you using TDs?
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
I'll check the source for you to see the actual commands as that should work fine might not be until later though as i have work in 20 minutes but by the looks of it your script is fine what files you using TDs?
okay m8, yes i am currently using td's files m8, w8in for a better set tobe released :P

/ancient
 
Upvote 0

Neptune

Golden Oldie
Golden Oldie
Nov 19, 2003
1,473
9
175
Chester :P
i will also have a look thru the file but also im off to work soon, till 10 so if theres no post wen im bk i will have a look.

also look for the txt file in ur server that tells u all the commands and see if u can come across 1 via that way, but i did that and the CHECKITEMW command doesnt work for me, it also doesnt check if the item is beeing worn or not, so i think that these commands arent fully incorparated to the files
 
Upvote 0

Neptune

Golden Oldie
Golden Oldie
Nov 19, 2003
1,473
9
175
Chester :P
just so people using TD's files (and are viewing this) there is a txt file in the actual server files in folder "Update and Doc's" and has a list of the npc commands you can use, it also has a breif description as to what they mean so you know how to add them

i cnt find the command in any of these text files, im sure some 1 will be able to tell ill have another look thru see if i can find a npc that currently has 1 of these commands in for u

try this quick npc script i just though of

[@name]
#IF
CHECKPKPOINT < 5000
#SAY
Sorry you dont have the PKPoints Needed.\
<Ok Sorry/@exit>
#ELSEACT
goto @name1

[@name1]
#IF
CHECKPKPOINT > 4999
#ACT
PKPOINT - 5000
GIVE DemonSlayer 1
break
#SAY
Here Is Your Weapon Of Doom.\
ENJOY!.\ \
<Thank You/@exit>

obviously u will need to adjust the script to suit ur needs but try it and see if it works at all

also try

[@name]
#IF
CHECKPKPOINT 5000
#ACT
goto @name1
#ELSESAY
You dont have the PKPOINTS needed.\ \
<exit/@exit>

[@name1]
#ACT
PKPOINT - 5000
GIVE DemonSlayer 1
break
#SAY
Here is your Slayer Of Doom.\
ENJOY!\ \
<I will/@exit>
 
Last edited:
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
just gave it ago, and still didnt work, so ive decided to drop the PK-Point but go with PK-Token after each kill

thanks for the hlp

/ancient
 
Upvote 0

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
I can't see tds code since it's not been released so i'll have a word with him and see what's up but the code looks fine in DM2 so not sure what's going on.
 
Upvote 0