UID12556
帖子
精華
主題
積分716351
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限255
註冊時間2007-9-5
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2019-8-18 04:57 PM |
---|
簽到天數: 2148 天 連續簽到: 1 天 [LV.Master]伴壇終老
|
發表於 2009-7-5 14:05:15
|
顯示全部樓層
- if( getguildmaster(getcharid(2)) == strcharinfo(0) )
複製代碼 *getguildmaster(<guild id>)
This function return the name of the master of the guild which has the specified
ID number. If there is no such guild, "null" will be returned.
// Would return the guild master of guild 10007, whatever that might be.
// In this example it would return "MissDjax" cause she owns "AlcoROhics" (10007)
mes getguildmaster(10007)+" runs "+getguildname(10007);
Can be used to check if the character is the guildmaster of the specified guild.
Maybe you want to make a room only guildmasters can enter:
set @GID,getcharid(2);
if(@GID==0) goto L_NoGuild;
if(strcharinfo(0)==getguildmaster(@GID)) goto L_GuildMaster;
mes "Sorry you don't own the guild you are in";
close;
L_NoGuild:
mes "Sorry you are not in a guild";
close;
L_GuildMaster:
mes "Welcome guild master of "+GetGuildName(@GID);
close; |
|