[wizs] 擊飛武器的程式段
int special_fun(object mob,object ppl)
{
object obs;
if(obs=ppl->query("weapon1"))
{
if((int)ppl->query("stat/str")<1600+random(1200))
{
ppl->delete("weapon1");
obs->move_to(environment(ppl));
ppl->set_temp("time_record/wear_remove",time()+15);
tell_object(ppl,HIW"你的武器被擊飛出去了喔~~\n"NOR);
}
}
不能這樣寫。
比較簡易的寫法如下..
"/cmds/std/_remove"->try_remove_one(obs,1); // 0 的話會看到脫武器訊息
highelf 及 wizs 們可參考。~highelf/rs/mob/rsk.c 已更新,
備份檔為 rsk.20100724
Belldandy.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 編輯: laechan 來自: 111.253.168.70 (07/24 17:31)
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
51
111
47
79
6
15