UID12556
帖子
精華
主題
積分716114
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限255
註冊時間2007-9-5
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2019-8-18 04:57 PM |
---|
簽到天數: 2148 天 連續簽到: 1 天 [LV.Master]伴壇終老
|
發表於 2010-5-25 00:13:18
|
顯示全部樓層
回復 6# joeiliu *readparam()
This function will return the basic stats of an invoking character, referred to
by the parameter number. Instead of a number, you can use a parameter name if it
is defined in "db/const.txt".
For reference, in there these things are defined:
StatusPoint, BaseLevel, SkillPoint, Class, Upper, Zeny, Sex, Weight, MaxWeight,
JobLevel, BaseExp, JobExp, NextBaseExp, NextJobExp, Hp, MaxHp, Sp, MaxSp,
BaseJob, Karma, Manner, bVit, bDex, bAgi, bStr, bInt, bLuk
All of these also behave as variables, but don't expect to be able to just 'set'
all of them - some will not work for various internal reasons.
// This would return how many status points you haven't spent yet
readparam(9)
Using this particular information as a function call is not required. Just
putting
StatusPoint
will give you the same result, and some of these parameters work just like
variables (i.e. you can 'set Zeny,100' to make the character have 100 zeny,
destroying whatever zeny they had before, or 'set Zeny,Zeny+100' to give them
100 zeny)
You can also use this command to get stat values:
readparam(bVit)
if(readparam(bVit)<=77) goto L_End;
mes "Only people with over 77 Vit are reading this";
L_End:
close; |
|