pet level script not run

Join Discord

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
This script , not run and gives me error mir becouse?

[@main]
{
#IF
EQUAL D1 "0"
#SAY
Asked you are not want to raise the pet? ?\
<Yes/@yes>\
<No/@EXIT>\
#ELSESAY
Are you want for yours pet promotion? \
<Yes/@sheng>\
Are you want to summon your pet?\
<Yes/@out>\
}

[@yes1]
{
#SAY
What pet do you want to adopt?\
<Pet/@pig>\
}

[@pig]
{
#if
#act
FormatStr "FLD_CHARACTER='%s'" %USERNAME
mov A8 %A9
MOV D1 1
FormatStr "FLD_YCHONGWU='%s'" %D1
UPDATEVALUESQL "TBL_QUEST" %A8 %A9
monRecall Pig 99999
#say
The adoption pet is successful!
}


[@sheng1]
{
#SAY
{FCOLOR/10}<$OUTPUT(A0)>{FCOLOR/12}:\
Your pet rank is {FCOLOR/10}<$OUTPUT(D1)>{FCOLOR/12} \
<I must promote the next level/@next>\
}

[@next1]
{
#if
checkitem RedsnakeBlood %D1
#ACT
FormatStr "FLD_CHARACTER='%s'" %USERNAME
mov A8 %A9
INC D1 1
mov D3 %D1
FormatStr "FLD_YCHONGWU='%s'" %D3
UPDATEVALUESQL "TBL_QUEST" %A8 %A9
Take RedsnakeBlood %D1
#SAY
Promotes successfully\
#ELSESAY
Sorry, your material is insufficient, your pet is unable to rise to this level of. \

}


[@out1]
{
#say
Asked you raise which the pet is?\
<Pet/@pigg1>\
}


[@pigg1]
{
#if
equal D1 "1"
#ACT
monRecall Pig 999
#say
Protects your pet well?

#if
equal D1 "2"
#ACT
monRecall hen 999
#say
Protects your pet well?

#if
equal D1 "3"
#ACT
monRecall SkullArcher 999
#say
Protects your pet well?

#if
equal D1 "4"
#ACT
monRecall RedEvilApe0 999
#say
Protects your pet well?

#if
equal D1 "5"
#ACT
monRecall LionGuard 999
#say
Protects your pet well?
#if
equal D1 "6"
#ACT
monRecall WoomaTaurus 999
#say
Protects your pet well?

#if
equal D1 "7"
#ACT
monRecall SkullGuardian 999
#say
Protects your pet well?

#if
equal D1 "8"
#ACT
monRecall LionSoldier 999
#say
Protects your pet well?

#if
equal D1 "9"
#ACT
monRecall AquaTaurus 999
#say
Protects your pet well?
}


no other way to do this without sql tables and that? by. txt or flags?