Script Error.

Play Now

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
Got a problem with this Script to my knolage this is correct but it aint ingame >.<

Code:
[@main]
#IF
CHECK [2121] 1
#ACT
GOTO @q2
#ELSEACT
GOTO @main-1

[Q2]
#IF
CHECK [2122] 1
#ACT
GOTO @Q3
#ELSEACT
GOTO @MAIN-2

[@Q3]
#IF
CHECK [2123] 1
#ACT
GOTO @Q4
#ELSEACT
GOTO @MAIN-3

[@Q4]
#IF
CHECK [2124] 1
#ACT
GOTO @Q5
#ELSEACT
GOTO @MAIN-4

[@Q5]
#IF
CHECK [2125] 1
#ACT
GOTO @FINISH
#ELSEACT
GOTO @MAIN-5

[@MAIN-1]
#SAY
Hello <$USERNAME> Please Collect me 10 Meat.\
You will find a Monster Called Deer outside the Town.\
Be Carefull,\ 
<I Shall Collect/@exit>\
<I Have Your Meat/@Q1F>\ \
<Close/@exit>\

[@Q1F]
#IF
CHECK Meat 10
#ACT
GOTO @Q1F1
#ELSESAY
You dont have enough Meat.

[@Q1F1]
#ACT
Take Meat 10
SET [2121] 1
Give EbonyStick 1
Give Gold 1500
break

[@MAIN-2]
#SAY
Hello <$USERNAME> Please Collect me 2 Spider Teeth.\
You will find these by killing SpittingSpiders.\
Be Carefull.\ 
<I Shall Collect/@exit>\
<I Have Your Teeth/@QF2>\ \
<Close/@Exit>\

[@QF2]
#IF
CHECK SpiderTeeth 2
#ACT
goto @QF2F
#ELSESAY
You dont have enough Teeth.

[@QF2F]
#IF
GENDER MAN
#ACT
Take SpiderTeeth 2
SET [2122] 1
Give EbonyArmour(M) 1
Give Gold 1500
break
#ELSEACT
Take SpiderTeeth 2
SET [2122] 1
Give EbonyArmour(F) 1
Give Gold 1500
break

[@MAIN-3]
#SAY
Hello <$USERNAME> Please Collect me a OmaHeart.\
You will find this by killing a Oma.\
<I shall Collect/@exit>\
<I Have Your Heart/@Q3F>\ \
<Close/@exit>\

[@Q3F]
#IF
CHECK OmaHeart 1
#ACT
goto @QF3F
#ELSESAY
Please Collect the Heart.

[@QF3F]
#ACT
Take OmaHeart 1
SET [2123] 1
Give EbonySword 1
BREAK

[@MAIN-4]
#SAY
Hello <$USERNAME> Please Collect me 2 GiantKeratoid Spikes.\
Careful these are very Nasty Creatures.\
<I Shall Collect/@exit>\
<I Have Your Spikes/@QF4F>\ \
<Close/@exit>\

[@QF4F]
#IF
CHECK GKSpikes 2
#ACT
GOTO @QF4FF
#ELSESAY
Sorry You dont have enough spikes\

[@QF4FF]
#ACT
TAKE GKSpikes 2
SET [2124] 1
GIVE ForestRing 2
break


[@MAIN-5]
#SAY
Hello <$USERNAME> Please Collect me Which only
OmaWarrior Uses.
<I Shall Collect/@exit>
<I Have The OmaWarrior Axe/@Q5F>\ \
<Close/@exit>\

[@Q5F]
#IF
Check OmaWarriorAxe 1
#ACT
GOTO @QF5F
#ELSESAY
You dont have the Axe which i want Please Collect.\

[@QF5F]
#ACT
Take OmaWarriorAxe 1
Give ForestBracelet 2
SET [2125] 1
BREAk
 
Last edited:

iJam

To the rhythm
VIP
Oct 8, 2007
1,526
105
240
London
if no1 helped by time i get up ill sort it for ya off bed now m8

its abit messed up i think the top part ill chek tomoz
 
Upvote 0

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
Code:
[@main]
#IF
CHECK [2121] 1
#ACT
GOTO @q2
#ELSEACT
GOTO @main-1

[Q2]
#IF
CHECK [2122] 1
#ACT
GOTO @Q3
#ELSEACT
GOTO @MAIN-2

[@Q3]
#IF
CHECK [2123] 1
#ACT
GOTO @Q4
#ELSEACT
GOTO @MAIN-3

[@Q4]
#IF
CHECK [2124] 1
#ACT
GOTO @Q5
#ELSEACT
GOTO @MAIN-4

[@Q5]
#IF
CHECK [2125] 1
#ACT
GOTO @FINISH
#ELSEACT
GOTO @MAIN-5

[@MAIN-1]
#SAY
Hello <$USERNAME> Please Collect me 10 Meat.\
You will find a Monster Called Deer outside the Town.\
Be Carefull,\ 
<I Shall Collect/@exit>\
<I Have Your Meat/@Q1F>\ \
<Close/@exit>\

[@Q1F]
#IF
CHECK Meat 10
#ACT
Take Meat 10
Give EbonyStick 1
Give Gold 1500
SET [2121] 1
close
#ELSESAY
You dont have enough Meat.


[@MAIN-2]
#SAY
Hello <$USERNAME> Please Collect me 2 Spider Teeth.\
You will find these by killing SpittingSpiders.\
Be Carefull.\ 
<I Shall Collect/@exit>\
<I Have Your Teeth/@QF2>\ \
<Close/@Exit>\

[@QF2]
#IF
CHECK SpiderTeeth 2
#ACT
TAKE SPIDERTEETH 2
goto @spider

[@spider]
#SAY
What Gender are you?\ \

<Male/@male>\
<Female/@female>
#ELSESAY
You dont have enough Teeth.

[@male]
#IF
GENDER MAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(M) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a male go back and rechose.\ \

<Back/@spider>\

[@female]
#IF
GENDER WOMAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(F) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a female go back and rechose.\ \

<Back/@spider>\

[@MAIN-3]
#SAY
Hello <$USERNAME> Please Collect me a OmaHeart.\
You will find this by killing a Oma.\
<I shall Collect/@exit>\
<I Have Your Heart/@Q3F>\ \
<Close/@exit>\

[@Q3F]
#IF
CHECK OmaHeart 1
#ACT
Take OmaHeart 1
Give EbonySword 1
SET [2123] 1
close
#ELSESAY
Please Collect the Heart.

[@MAIN-4]
#SAY
Hello <$USERNAME> Please Collect me 2 GiantKeratoid Spikes.\
Careful these are very Nasty Creatures.\
<I Shall Collect/@exit>\
<I Have Your Spikes/@QF4F>\ \
<Close/@exit>\

[@QF4F]
#IF
CHECK GKSpikes 2
#ACT
TAKE GKSpikes 2
GIVE ForestRing 2
SET [2124] 1
close
#ELSESAY
Sorry You dont have enough spikes\


[@MAIN-5]
#SAY
Hello <$USERNAME> Please Collect me Which only
OmaWarrior Uses.
<I Shall Collect/@exit>
<I Have The OmaWarrior Axe/@Q5F>\ \
<Close/@exit>\

[@Q5F]
#IF
Check OmaWarriorAxe 1
#ACT
Take OmaWarriorAxe 1
Give ForestBracelet 2
SET [2125] 1
close
#ELSESAY
You dont have the Axe which i want Please Collect.\

Should work, also a tip stop trying to make the npc difficult i've made it easyer for it to read. No need for all the scripting you did.
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
Use section names you remember aswell instead of QFQF1 QQFW2 and all that ****
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
thx SS ill check it out now. well ive only jsut came back makin servers so.. first script ive wrote from scratch in some time.

EDIT: when i have 10meat. it keep saying i dont have any.. would it be different because of the 2.6 files?
 
Last edited:
Upvote 0

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
Code:
[@main]
#IF
CHECK [2121] 1
#ACT
GOTO @q2
#ELSEACT
GOTO @main-1

[Q2]
#IF
CHECK [2122] 1
#ACT
GOTO @Q3
#ELSEACT
GOTO @MAIN-2

[@Q3]
#IF
CHECK [2123] 1
#ACT
GOTO @Q4
#ELSEACT
GOTO @MAIN-3

[@Q4]
#IF
CHECK [2124] 1
#ACT
GOTO @Q5
#ELSEACT
GOTO @MAIN-4

[@Q5]
#IF
CHECK [2125] 1
#ACT
GOTO @FINISH
#ELSEACT
GOTO @MAIN-5

[@MAIN-1]
#SAY
Hello <$USERNAME> Please Collect me 10 Meat.\
You will find a Monster Called Deer outside the Town.\
Be Carefull,\ 
<I Shall Collect/@exit>\
<I Have Your Meat/@Q1F>\ \
<Close/@exit>\

[@Q1F]
#IF
CHECKITEM Meat 10
#ACT
Take Meat 10
Give EbonyStick 1
Give Gold 1500
SET [2121] 1
close
#ELSESAY
You dont have enough Meat.


[@MAIN-2]
#SAY
Hello <$USERNAME> Please Collect me 2 Spider Teeth.\
You will find these by killing SpittingSpiders.\
Be Carefull.\ 
<I Shall Collect/@exit>\
<I Have Your Teeth/@QF2>\ \
<Close/@Exit>\

[@QF2]
#IF
CHECKITEM SpiderTeeth 2
#ACT
TAKE SPIDERTEETH 2
goto @spider

[@spider]
#SAY
What Gender are you?\ \

<Male/@male>\
<Female/@female>
#ELSESAY
You dont have enough Teeth.

[@male]
#IF
GENDER MAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(M) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a male go back and rechose.\ \

<Back/@spider>\

[@female]
#IF
GENDER WOMAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(F) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a female go back and rechose.\ \

<Back/@spider>\

[@MAIN-3]
#SAY
Hello <$USERNAME> Please Collect me a OmaHeart.\
You will find this by killing a Oma.\
<I shall Collect/@exit>\
<I Have Your Heart/@Q3F>\ \
<Close/@exit>\

[@Q3F]
#IF
CHECKITEM OmaHeart 1
#ACT
Take OmaHeart 1
Give EbonySword 1
SET [2123] 1
close
#ELSESAY
Please Collect the Heart.

[@MAIN-4]
#SAY
Hello <$USERNAME> Please Collect me 2 GiantKeratoid Spikes.\
Careful these are very Nasty Creatures.\
<I Shall Collect/@exit>\
<I Have Your Spikes/@QF4F>\ \
<Close/@exit>\

[@QF4F]
#IF
CHECKITEM GKSpikes 2
#ACT
TAKE GKSpikes 2
GIVE ForestRing 2
SET [2124] 1
close
#ELSESAY
Sorry You dont have enough spikes\


[@MAIN-5]
#SAY
Hello <$USERNAME> Please Collect me Which only
OmaWarrior Uses.
<I Shall Collect/@exit>
<I Have The OmaWarrior Axe/@Q5F>\ \
<Close/@exit>\

[@Q5F]
#IF
Check OmaWarriorAxe 1
#ACT
Take OmaWarriorAxe 1
Give ForestBracelet 2
SET [2125] 1
close
#ELSESAY
You dont have the Axe which i want Please Collect.\

Looks like you put CHECK instead of CHECKITEM
 
Upvote 0

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
Code:
[@main]
#SAY
Welcome to the quest book <$USERNAME>,\
What can i do for you today?\
<Harvesting Training/@main-1>\
<Spider Groming/@main-2>\
<Oma Slaying/@main-3>\
<Keratoid Hunting/@main-4>\
<Fight of the warriors/@main-5>\

[@MAIN-1]
#SAY
Hello <$USERNAME> Please Collect me 10 Meat.\
You will find a Monster Called Deer outside the Town.\
Be Carefull,\ 
<I Shall Collect/@exit>\
<I Have Your Meat/@Q1F>\ \
<Close/@exit>\

[@Q1F]
#IF
CHECKITEM Meat 10
CHECK [2121] 0
#ACT
Take Meat 10
Give EbonyStick 1
Give Gold 1500
SET [2121] 1
close
#ELSESAY
You dont have enough Meat.


[@MAIN-2]
#SAY
Hello <$USERNAME> Please Collect me 2 Spider Teeth.\
You will find these by killing SpittingSpiders.\
Be Carefull.\ 
<I Shall Collect/@exit>\
<I Have Your Teeth/@QF2>\ \
<Close/@Exit>\

[@QF2]
#IF
CHECKITEM SpiderTeeth 2
CHECK [2122] 0
#ACT
TAKE SPIDERTEETH 2
goto @spider

[@spider]
#SAY
What Gender are you?\ \

<Male/@male>\
<Female/@female>
#ELSESAY
You dont have enough Teeth.

[@male]
#IF
GENDER MAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(M) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a male go back and rechose.\ \

<Back/@spider>\

[@female]
#IF
GENDER WOMAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(F) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a female go back and rechose.\ \

<Back/@spider>\

[@MAIN-3]
#SAY
Hello <$USERNAME> Please Collect me a OmaHeart.\
You will find this by killing a Oma.\
<I shall Collect/@exit>\
<I Have Your Heart/@Q3F>\ \
<Close/@exit>\

[@Q3F]
#IF
CHECKITEM OmaHeart 1
CHECK [2123] 0
#ACT
Take OmaHeart 1
Give EbonySword 1
SET [2123] 1
close
#ELSESAY
Please Collect the Heart.

[@MAIN-4]
#SAY
Hello <$USERNAME> Please Collect me 2 GiantKeratoid Spikes.\
Careful these are very Nasty Creatures.\
<I Shall Collect/@exit>\
<I Have Your Spikes/@QF4F>\ \
<Close/@exit>\

[@QF4F]
#IF
CHECKITEM GKSpikes 2
CHECK [2124] 0
#ACT
TAKE GKSpikes 2
GIVE ForestRing 2
SET [2124] 1
close
#ELSESAY
Sorry You dont have enough spikes\


[@MAIN-5]
#SAY
Hello <$USERNAME> Please Collect me Which only
OmaWarrior Uses.
<I Shall Collect/@exit>
<I Have The OmaWarrior Axe/@Q5F>\ \
<Close/@exit>\

[@Q5F]
#IF
Check OmaWarriorAxe 1
CHECK [2125] 0
#ACT
Take OmaWarriorAxe 1
Give ForestBracelet 2
SET [2125] 1
close
#ELSESAY
You dont have the Axe which i want Please Collect.\

Not exactly what you want but will work 100%.
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
thanks alot. SS much apprecaited

EDIT: Man i h8 using Set command >.< still wouldnt work could keep redoing the quest. so ive done the Checknamelist and Addnamelist method. workd propperly now :P
 
Last edited:
Upvote 0

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
thanks alot. SS much apprecaited

EDIT: Man i h8 using Set command >.< still wouldnt work could keep redoing the quest. so ive done the Checknamelist and Addnamelist method. workd propperly now :P

As you said that i wrote another way of doing it if you want to try.

Code:
#IF
CHECK [2121] 0
#ACT
GOTO @main-1
#ELSEACT
GOTO @q2

[Q2]
#IF
CHECK [2122] 0
#ACT
GOTO @MAIN-2
#ELSEACT
GOTO @Q3

[@Q3]
#IF
CHECK [2123] 0
#ACT
GOTO @MAIN-3
#ELSEACT
GOTO @Q4

[@Q4]
#IF
CHECK [2124] 0
#ACT
GOTO @MAIN-4
#ELSEACT
GOTO @Q5

[@Q5]
#IF
CHECK [2125] 0
#ACT
GOTO @MAIN-5
#ELSEACT
goto finish

[@MAIN-1]
#SAY
Hello <$USERNAME> Please Collect me 10 Meat.\
You will find a Monster Called Deer outside the Town.\
Be Carefull,\ 
<I Shall Collect/@exit>\
<I Have Your Meat/@Q1F>\ \
<Close/@exit>\

[@Q1F]
#IF
CHECKITEM Meat 10
#ACT
Take Meat 10
Give EbonyStick 1
Give Gold 1500
SET [2121] 1
close
#ELSESAY
You dont have enough Meat.


[@MAIN-2]
#SAY
Hello <$USERNAME> Please Collect me 2 Spider Teeth.\
You will find these by killing SpittingSpiders.\
Be Carefull.\ 
<I Shall Collect/@exit>\
<I Have Your Teeth/@QF2>\ \
<Close/@Exit>\

[@QF2]
#IF
CHECKITEM SpiderTeeth 2
#ACT
TAKE SPIDERTEETH 2
goto @spider

[@spider]
#SAY
What Gender are you?\ \

<Male/@male>\
<Female/@female>
#ELSESAY
You dont have enough Teeth.

[@male]
#IF
GENDER MAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(M) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a male go back and rechose.\ \

<Back/@spider>\

[@female]
#IF
GENDER WOMAN
#ACT
Take SpiderTeeth 2
Give EbonyArmour(F) 1
Give Gold 1500
SET [2122] 1
close
#ELSESAY
You are not a female go back and rechose.\ \

<Back/@spider>\

[@MAIN-3]
#SAY
Hello <$USERNAME> Please Collect me a OmaHeart.\
You will find this by killing a Oma.\
<I shall Collect/@exit>\
<I Have Your Heart/@Q3F>\ \
<Close/@exit>\

[@Q3F]
#IF
CHECKITEM OmaHeart 1
#ACT
Take OmaHeart 1
Give EbonySword 1
SET [2123] 1
close
#ELSESAY
Please Collect the Heart.

[@MAIN-4]
#SAY
Hello <$USERNAME> Please Collect me 2 GiantKeratoid Spikes.\
Careful these are very Nasty Creatures.\
<I Shall Collect/@exit>\
<I Have Your Spikes/@QF4F>\ \
<Close/@exit>\

[@QF4F]
#IF
CHECKITEM GKSpikes 2
#ACT
TAKE GKSpikes 2
GIVE ForestRing 2
SET [2124] 1
close
#ELSESAY
Sorry You dont have enough spikes\


[@MAIN-5]
#SAY
Hello <$USERNAME> Please Collect me Which only
OmaWarrior Uses.
<I Shall Collect/@exit>
<I Have The OmaWarrior Axe/@Q5F>\ \
<Close/@exit>\

[@Q5F]
#IF
Check OmaWarriorAxe 1
#ACT
Take OmaWarriorAxe 1
Give ForestBracelet 2
SET [2125] 1
close
#ELSESAY
You dont have the Axe which i want Please Collect.\
 
Upvote 0