自动0血+买雪霜+喝雪霜ACI
这是自动使用0血的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_enter_world()
{
create_nx();
}
void on_scan_system_msg(string msg)
{
if(msg == "凝血离魂使用完毕.")
{
while(1)
{
if(cast(me(),"凝血离魂"))
{
break;
}
sleep(0.5);
}
}
}
这是你发的买人参喝人参的ACI:
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();
void on_enter_world ()
{
drink_timer();
}
void on_applied_item(mapping ob)
{
if(get_item_amount(life_potion)<5) back(5);
}
我把他放到一起就加载错误,怎么把他组合起来,让我的法师又吃人参,又0血啊?
[ 本帖最后由 一米●阳光 于 2006-8-31 10:37 编辑 ]