Simple Varabile script please

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Been looking for some help with this for a long time its one of the biggest reasons i Carnot get ma server up for testing the Quest system is a big part of ma server & having these problems with Variable's is holding me up big time!

My Old Post
http://www.lomcn.co.uk/forum/showthread.php?t=64103

As you can see from that i havent got it working im only reposteing to try & get it working!


All i want to do is get a simple one done then i can get in to it without haveing these prob's.

e.g

(QUEST NPC)
Kill 5 Deer.

(CHAR)
Kill's 5 Deer

(MSG Appears)
Well done come & see me for your Gift.


DONE How is this not so easy

ME ---> :crying:




 

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Gezza have a prob every Oma i kill after 20 i get the MSG WellDone See the NPC do i nood to change something here...



[@onkillmob(Oma)]
#IF
CHECK [303] 1
#ACT
CalcVar Human omaKilled + 1
SaveVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
goto @oma1

[@oma1]
#IF
CheckVar Human omaKilled > 19
#ACT
sendmsg 6 Well done you have killed all 20 Oma come back for your reward!!!
 
Upvote 0

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
The NPC Resets it torw Script below...


[@main]
#IF
checknamelist Quests/CompleteomaQuest.txt
#SAY
You have already completed this quest
#ELSEACT
goto @main3
[@main3]
#IF
checknamelist Quests/omaquest.txt
#ACT
goto @quest1
#ELSESAY
Hello <$USERNAME> welcome to the beginners quest. \
To complete this quest you need to kill 20 Omas. \\
<Attempt the quest/@attempt> \
<Not now thanks/@exit>
[@attempt]
#IF
#ACT
addnamelist Quests/omaquest.txt
SET [303] 1
Var Integer Human omaKilled
#SAY
Good luck, come back to me to check \
how many Oma you have killed. \\
<Exit/@exit>
[@quest1]
#IF
CheckVar Human omaKilled > 19
#ACT
addnamelist Quests/CompleteomaQuest.txt
#SAY
Well done, you have killed enough Oma! \
Take this reward. \\
\
<Here/@male>
\
<Exit/@exit> \
#ELSESAY
Number of Omas killed : <$HUMAN(omaKilled)> \\
<Exit/@exit>
[@male]
#if
GENDER MAN
#act
Give LightArmour(M) 1
RESET [303] 0
#elseact
Give LightArmour(F) 1
RESET [303] 0
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
change that bit to this i think soz.

RESET [303] 1
#elseact
Give LightArmour(F) 1
RESET [303] 1
 
Upvote 0