Re: [wiz]請問user所在的room為何?
看板mud_sanc (Sanctuary - 聖殿)作者laechan (眼鏡男)時間18年前 (2007/05/27 17:09)推噓0(0推 0噓 0→)留言0則, 0人參與討論串2/2 (看更多)
※ 引述《HighElf (高等妖精)》之銘言:
: 我可以知道某房間裡面有那些玩家
: 也可以把玩家移動到其它房間
: 不過該如何能夠知道玩家在那個房間的函數?
ㄟ,environment(this_player()) <= 你是指這個?
像 location 指令,核心的程式段就是..
mixed obs=users();
object ppl,env;
string str="";
foreach(ppl in obs)
{
env=environment(ppl);
str+=ppl->query("name")+" 所在的房間為 "+env->query("short")+".\n";
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.225.162.103
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章