[@_UpLevel]
#ACT
#CALL [system\level\lvl.txt] @@_UpLevel
break
i take it that the code below
Code:
#if
Checklevel 30
#ACT
FormatStr "FLD_CHARACTER='%s'" %Username
ReadValueSql "TBL_CHARACTER" %A9 "FLD_LEVEL" @levelcheck
#ELSEACT
break
[@levelcheck()]
#ACT
mov D1 %arg(1)
goto @announce
[@announce]
#SAY
Welldone
is located in [@_UpLevel] whicch can be found in system\level\lvl.txt?
if this is rthe case i hove noticed 2 points that may hrelp
Code:
[COLOR="red"][@_UpLevel][/COLOR]
#ACT
#CALL [system\level\lvl.txt] [COLOR="Red"]@@_UpLevel[/COLOR]
break
@_xxx signigies an autorun script and is generaly located in the 00Default.txt file
@@xxx signifies a txt/number input string, like wen u enter the numbrer of pots you want to bye.
if i am interperetint this script properly you are trying to read a character level from a database table and check to see weather that character is 30 now you cul either just do a
checklevel 30 and leave out the database check or read the level value from the table and check to see weather that is equal to xx.
below is an example script that reads the data from a table and checks it..
the code that makes the call
[@UpLevel]
#ACT
#CALL [system\level\lvl.txt] @UpLevel_2
break
[system\level\lvl.txt]
[@UpLevel_2]
{
#ACT
FormatStr "FLD_CHARACTER='%s'" %Username
ReadValueSql "TBL_CHARACTER" %A9 "FLD_CHARACTER, FLD_LEVEL" @levelcheck
#ELSEACT
break
[@levelcheck()]
#ACT
MOV A1 %arg(1) ;Stores the character name
MOV D1 %arg(2) ;Stores the character level
goto @announce
[@announce]
#if
EQUAL D1 30
#SAY
Welldone you are level 30..\\
<Close/@exit>
#ELSESAY
You are only level <%OUTPUT(D1)> you need to be level 30.\\
<Close/@exit>
}
i hope this helps.