alter language

Hakuryuu

New member
Messages
20
Points
0
Github
samers1
Emulator
..... problem this command

BUILDIN(failedrefitemR) // by jakeRed{ int i=-1,num,ep,ref; TBL_PC *sd; num = script_getnum(st,2); // Equip Slot ref = script_getnum(st,3); // Refine Points Lost sd = script->rid2sd(st); if( sd == NULL ) return 0; if( num > 0 && num <= ARRAYLENGTH(script->equip) ) i = pc->checkequip(sd,script->equip[num-1]); if( i >= 0 ) { short announce_refine[] = { 7, 9, 8, 7, 5 }; ep = sd->status.inventory.equip; //Logs items, got from (N)PC scripts [Lupus] log->pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory); if( battle_config.channel_announces&4 && server_channel[CHN_VENDING] && sd->inventory_data->wlv >= 0 && sd->inventory_data->wlv <= 4 && sd->status.inventory.refine >= announce_refine[sd->inventory_data->wlv] ) { // Announces Refines to Chat char chat_announce[256]; sprintf(chat_announce, msg_txt(NULL,704), server_channel[CHN_VENDING]->name, sd->status.name, sd->status.inventory.refine, sd->inventory_data->jname, sd->inventory_data->slot,(sd->status.inventory.refine - ref)); clif_channel_message(server_channel[CHN_VENDING], chat_announce, 1); } ref = min(ref,sd->status.inventory.refine); // To avoid negative Refine sd->status.inventory.refine = sd->status.inventory.refine - ref; pc->unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below clif->refine(sd->fd,0,i,sd->status.inventory.refine); clif->delitem(sd,i,1,3); log_pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory); clif->additem(sd,i,1,0); pc->equipitem(sd,i,ep); clif->misceffect(&sd->bl,2); } return 0;} 
Error:

 
script.c: In function ‘buildin_failedrefitemR’:script.c:8718: warning: implicit declaration of function ‘log_pick_pc’script.c:8720: error: ‘struct Battle_Config’ has no member named ‘channel_announces’script.c:8720: error: ‘server_channel’ undeclared (first use in this function)script.c:8720: error: (Each undeclared identifier is reported only oncescript.c:8720: error: for each function it appears in.)script.c:8720: error: ‘CHN_VENDING’ undeclared (first use in this function)script.c:8723:43: error: macro "msg_txt" passed 2 arguments, but takes just 1script.c:8723: error: ‘msg_txt’ undeclared (first use in this function)script.c:8724: warning: implicit declaration of function ‘clif_channel_message’ 
Please help..
 
Last edited by a moderator:
I'm not sure, but is not this line?

if( battle_config.channel_announces&4

I think is wrong there

I'm very very noob on src mod
default_sad.png


 
Back
Top