请教一米,如何设置BBX购买血霜
一米提供的购买血霜的ACI
void nx_thread()
{
while(1)
{
if(cast(me(),"凝血离魂"))
{
break;
}
sleep(0.5);
}
}
void create_nx()
{
delete_thread("NX_THREAD");
create_thread("NX_THREAD","nx_thread");
}
void on_scan_system_msg(string msg)
{
if(msg == "凝血离魂使用完毕.")
{
while(1)
{
if(cast(me(),"凝血离魂"))
{
break;
}
sleep(0.5);
}
}
}
string life_potion="万年雪霜";
int life_num_1=500;
void on_post_prepare_for_quest()
{
mapping npc;
close_to_npc("potion", &npc);
talk_to(npc);
talk_to(npc,"@buy") ;
buy_item(life_potion, (life_num_1-get_item_amount(life_potion)), npc);
close_to_npc("item", &npc);
talk_to(npc);
talk_to(npc,"@buy") ;
buy_item("回城卷", (6-get_item_amount("回城卷")), npc);
buy_item("随机传送卷", (random_num-get_item_amount("随机传送卷")), npc);
}
void drink_timer()
{
if(me()["life"]<=(me()["max_life"]-170) ||me()["mana"]<=(me()["max_mana"]-250))
{
delete_thread("dr");
create_thread("dr","apply",life_potion);
}
delete_timer("ti");
set_timer(2,"ti","drink_timer");
}
drink_timer();
create_nx();
void on_enter_world ()
{
drink_timer();
create_nx();
}
void on_applied_item(mapping ob)
{
if(get_item_amount(life_potion)<5) back(5);
}
我加载后 还是不能购买血霜,是否在BBX中还需要进行其他设置啊?
在BBX的药水设置中没有血霜的选项啊,(要正常药水NPC购买,不是批量的NPC),帮忙解决哈