作者HighElf (高等妖精)
看板mud_sanc
标题Re: [闲聊] 我的点子簿
时间Sat Oct 24 09:07:35 2009
※ 引述《laechan (小太保)》之铭言:
: 没力 coding 了......
: 、较容易实装、或可委由其它 wiz 帮我实装的东西。
: 我刚看了一下...
: 一、spiriten 呼叫出来的武器并不需要一定得叫灵力武器,
: 名字可以由玩家自行决定.
: 可透过 setdata 的方式, 或透过 spiriten -name 的方式命名.
: 这个可行,应该会写成 spiriten -name 的方式,不过
: 要同时修改底下两个东西..
: /cmds/std/_spiriten.c
: /u/l/laecham/special/wp/灵力武器档
: 不难改,下周有时间我实装看看。
: 另外,更改完的名字还是会附加灵力武器四个字, id
: 也不会变。
在/cmds/std/_spiriten.c里的int cmd_spiriten(string str,object me)内增设
int cmd_spiriten(string str,object me)
{
switch(kind)
{
if( COLOR_D->count_str(types) > 20 )
{
write("武器的名字太长了啦!\n");
return 1;
}
if(types[0]==32)
{
write("第一个字不得为空白!!\n");
return 1;
}
mixed msg=({"影特","\n","\t","干","fu","ck","sh","it"});
foreach(string name in msg)
str=replace_string(types,name,"");
types="/adm/daemons/color_d"->get_color(types);
if(types=="largesword")
{
wp->set("name",HIW"(巨大灵力武器)"NOR + types + NOR);
wp->set("short",HIW"(巨大灵力武器)"NOR + types + NOR
"(Spiriten "+wp->query("type")+")");
}
else
{
wp->set("name",HIW"(灵力武器)"NOR + types + NOR);
wp->set("short",HIW"(灵力武器)"NOR + types + NOR
"(Spiriten "+wp->query("type")+")");
}
write("你将你灵力武器的名字变更为 "+types+NOR" 了.\n");
return 1;
}
}
应该也许可能好像大概是没有bug的样子吧
--
不归之森的名称似乎早就在说明其不归着含意
落入尘世的妖精再也无法回去他的故乡了
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.233.170.117
1F:推 laechan :指令已实装,参考 highelf 写的程式段, 做了一些判断 10/25 21:57
2F:→ laechan :上的变化 10/25 21:57
3F:→ laechan :另外借这篇, study runes of profound 已实装 10/25 22:20