- Dec 15, 2007
- 230
- 1
- 64
Code:
[@Main]
#ACT
FormatStr "FLD_USERID='%s'" %USERID
ReadValueSql "TBL_RELATPOINT" %A9 "FLD_POINT,FLD_OK,FLD_USERID" [@Point_Loading]
[@Point_Loading()]
#IF
#ACT
mov D1 %ARG(1)
mov D2 %ARG(2)
mov A8 %ARG(3)
FormatStr "FLD_USERID='%s'" %USERID
mov A0 %A9
#IF
Equal A8 ""
#ACT
FormatStr "%s,%s,%s," 0 0 0
mov A1 %A9
FormatStr "'%s'" %USERID
AddStr A1 %A9
WriteValueSql "TBL_RELATPOINT" %A0 "FLD_POINT,FLD_CURRENTPOINT,FLD_OK,FLD_USERID" %A1
break
#SAY
Tu cuenta {FCOLOR/10}<$OUTPUT(A8)>{FCOLOR/12} contiene {FCOLOR/1}<$OUTPUT(D1)>{FCOLOR/12} puntos integrales!\\
#ELSESAY
Su ID {FCOLOR/10}<$OUTPUT(A8)>{FCOLOR/12} Tiene {FCOLOR/1}<$OUTPUT(D1)>{FCOLOR/12} puntos integrales!\
{FCOLOR/10}Hola este es el panel de puntos integrales ,visitalo para saber que ofrecemos.
{FCOLOR/12}Aquí podras alquilar fabulosos aliados,comprar items y muchas mas cosas{FCOLOR/12}\
{FCOLOR/10}Elige entre lo que tengo aquí.{FCOLOR/12}\ \
<Helmets/@helmet>\
<armas/@armas>\
<Collares/@collar>\
<Rings/@ring>\
<Brazaletes /@brazas>\
<Otros objetos/@otros>\
[@helmet]
#SAY
Helmets:\
<DarkHelmet [500 P.Integrales]/@Point_Buy(DarkHelmet),500,1)>\
<Volver/@comprarItems>\
[@otros]
#SAY
<Dumplings(HP) [50 Integral]/@Point_Buy(Dumplings(HP),50,1)>\
<Dumplings(SC) [50 Integral]/@Point_Buy(Dumplings(SC),50,1)>\
<Dumplings(DC) [50 Integral]/@Point_Buy(Dumplings(DC),50,1)>\
<Dumplings(MC) [50 Integral]/@Point_Buy(Dumplings(MC),50,1)>\
<Dumplings(MP) [50 Integral]/@Point_Buy(Dumplings(MP),50,1)>\
<RevivalWater [150 Integral]/@Point_Buy(RevivalWater,150,1)>\
<RedRose(Revive) [100 Integral]/@Point_Buy(RedRose,100,1)>\
[@Point_Buy()]
#IF
#ACT
Mov A1 %ARG(1)
Mov D0 %ARG(2)
Mov D1 %ARG(3)
#IF
HLSCRIPTCMD CHECKPOINT %D0
#ACT
HLSCRIPTCMD SETPOINT - %D0
give %A1 %D1
#SAY
Usted cambio sus pi por el item deseado {FCOLOR/10}<$OUTPUT(D1)>-<$OUTPUT(A1)>{FCOLOR/12}.\
Usted ha gastado {FCOLOR/10}<$OUTPUT(D0)>{FCOLOR/12}P.Integral. \
<Volver/@main>
#elsesay
No tiene suficientes integrales para comprar este item,\
i have this npc but have small problem
i have 1150 integrals but when i go to buy 1 item the npc say me : you don't have integrals
what is wrong in npc?