[CD3.55] <$OUTPUT()> .. how do i use it ?

w1ls0n

Dedicated Member
Dedicated Member
May 18, 2011
81
1
34
Hey,, i posted earlier about commands and just tryed to figure out how to use <$OUTPUT()> and its stressing me out.

can any1 help me on this ? and maybe tell me command for Time and Date and also Usercount please ??

Thanks Ben
 

Yolom

LOMCN Veteran
Veteran
Aug 7, 2010
325
21
45
Spain
You can use SQL to display characters in tables.

E.G:
Code:
[@main]
#IF
    HasGuild
#ACT
    FormatStr "FLD_GUILD='%s'" %GUILDNAME
    ReadValueSql  "TBL_GUILDBANK"  %A9  "[COLOR="#FF0000"]FLD_GUILD[/COLOR],[COLOR="#0000FF"]FLD_GOLD[/COLOR]" [@next]
#ELSESAY
Yo have no clan.\
<Exit/@exit>\

[@next()]
#ACT
   [COLOR="#0000FF"] Mov    D9      %ARG(2)    ;Retrieves gold amount[/COLOR]
    [COLOR="#FF0000"]Mov   A3      %ARG(1)     ;Retrieve guild name[/COLOR]
goto @menu

[@menu]
#SAY
Clan name: [COLOR="#FF0000"]<$OUTPUT(A3)>[/COLOR]\
Clan gold:[COLOR="#0000FF"] <$OUTPUT(D9)>[/COLOR]\

In general you can use it in variables.

E.G:
Code:
[@main]
#SAY
Info <LifeGen/@make([COLOR="#0000FF"]SunPotion[/COLOR],[COLOR="#FF0000"]FleaSkin[/COLOR],[COLOR="#006400"]5[/COLOR])>

[@make()]
#ACT
   [COLOR="#0000FF"]Mov A1 %ARG(1)[/COLOR]
  [COLOR="#FF0000"] Mov A2 %ARG(2)[/COLOR]
  [COLOR="#006400"] Mov  D1 %ARG(3)[/COLOR]
goto @information


[@information]
#SAY
For make LifeGen you need: [COLOR="#006400"] <$OUTPUT(D1)>[/COLOR]  [COLOR="#0000FF"]<$OUTPUT(A1)>[/COLOR] \
_____________________________[COLOR="#006400"]<$OUTPUT(D1)>[/COLOR]  [COLOR="#FF0000"]<$OUTPUT(A2)>[/COLOR]\
<Make/@maketrue(SunPotion,FleaSkin,5)>\

[@maketrue()]
#IF
Checkitem [COLOR="#0000FF"]%A1[/COLOR][COLOR="#006400"] %D1[/COLOR]
checkitem  [COLOR="#FF0000"]%A2[/COLOR] [COLOR="#006400"]%D1[/COLOR]
#ACT
take  [COLOR="#0000FF"]%A1[/COLOR] [COLOR="#006400"]%D1[/COLOR]
take [COLOR="#FF0000"] %A2[/COLOR] [COLOR="#006400"]%D1[/COLOR]
give LifeGen 1
Sysmsg "Here you have your LifeGen"
#ELSESAY
Not have the required objects.\
<Exit/@exit>



These scripts are examples, not assure proper operation.

Regards,
 
Upvote 0