Variable help

smoochy boys on tour

Shank

The_Mafia
VIP
Dec 4, 2008
2,082
17
165
[03/08/2010 10:07:47] [Npc Condition Error] Cmd:CHECKVAR NPC:Kore Map:GMHQ (12:10) Param1:Human Param2:ECKilled Param3:> Param4:19 Param5:


thats the error

and when i relog it says when i click npc Variable not found

i'll show u bits out of both npc's


1st quest works perfect but has relog proble, heres snip of npc;

[@attempt]
#IF
#ACT
addnamelist SCquest.txt
SET [300] 1
Var Integer Human SCKilled
#SAY
Good luck, come back to me to check \
how many scarecrows you have killed. \\
<Exit/@exit>

then when i edit flag+ "SCKilled" to "ECKilled" it doesnt work? does flag need changing every quest i add? or can i leave it as 300? and am i doin the SCKilled ECKilled bit right can u just change name and it'll work or do u need to do something else?


this is 1 that doesnt work

[@attempt]
#IF
#ACT
addnamelist ECquest.txt
SET [350] 1
Var Integer Human ECKilled
#SAY
Good luck, come back to me to check \
how many EvilCents you have killed. \\
<Exit/@exit>
 
Last edited:

Shank

The_Mafia
VIP
Dec 4, 2008
2,082
17
165
[@main]
#IF
checknamelist CompleteECQuest.txt
#SAY
You have already completed this quest
#ELSEACT
goto @main1

[@main1]
#IF
checknamelist ECquest.txt
#ACT
goto @quest1
#ELSESAY
Hello <$USERNAME> welcome to the beginners quest. \
To complete this quest you need to kill 20 EvilCents. \\
<Attempt the quest/@attempt> \
<Not now thanks/@exit>

[@attempt]
#IF
#ACT
addnamelist ECquest.txt
SET [350] 1
Var Integer Human ECKilled
#SAY
Good luck, come back to me to check \
how many EvilCents you have killed. \\
<Exit/@exit>

[@quest1]
#IF
CheckVar Human ECKilled > 19
#ACT
give TwinRing 1
addnamelist CompleteECQuest.txt
#SAY
Well done, you have killed enough EvilCents! \
Take this reward. \\
<Exit/@exit> \
#ELSESAY
Number of EvilCents killed : <$HUMAN(ECKilled)> \\
<Exit/@exit>
 
Upvote 0

Shank

The_Mafia
VIP
Dec 4, 2008
2,082
17
165
thats already done, i was postin the bits of npc i had changed, think i sorted it now ne ways
 
Upvote 0