UID12556
帖子
精華
主題
積分716089
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限255
註冊時間2007-9-5
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2019-8-18 04:57 PM |
---|
簽到天數: 2148 天 連續簽到: 1 天 [LV.Master]伴壇終老
|
發表於 2009-6-28 01:57:54
|
顯示全部樓層
*getcharid(<type>{,"<character name>"})
This function will return a unique ID number of the invoking character, or, if a
character name is specified, of that character.
Type is the kind of associated ID number required:
0 - Character ID number.
1 - Party ID number.
2 - Guild ID number.
3 - Account ID number.
For most purposes other than printing it, a number is better to have than a name
(people do horrifying things to their character names).
不 要 跟 我 說 你 看 不 懂 英 文
然 後 要 我 舉 例 子 (( 飛
If the character is not in a party or not in a guild, the function will return 0
if guild or party number is requested. If a name is specified and the character
is not found, 0 is returned.
If getcharid(0) returns a zero, the script got called not by a character and
doesn't have an attached RID. Note that this will cause the map server to
print "player not attached!" error messages, so it is preferred to use
"playerattached" to check for the character attached to the script.
if( getcharid(2) == 0 ) mes "Only members of a guild are allowed here!"; |
|