Jump to content
  • 0
Sign in to follow this  
Hakuryuu

alter language

Question

..... 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[i].equip;		//Logs items, got from (N)PC scripts [Lupus]		log->pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory[i]);		if( battle_config.channel_announces&4 && server_channel[CHN_VENDING] && sd->inventory_data[i]->wlv >= 0 && sd->inventory_data[i]->wlv <= 4 && sd->status.inventory[i].refine >= announce_refine[sd->inventory_data[i]->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[i].refine, sd->inventory_data[i]->jname, sd->inventory_data[i]->slot,(sd->status.inventory[i].refine - ref));			clif_channel_message(server_channel[CHN_VENDING], chat_announce, 1);		}		ref = min(ref,sd->status.inventory[i].refine); // To avoid negative Refine		sd->status.inventory[i].refine = sd->status.inventory[i].refine - ref;		pc->unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below		clif->refine(sd->fd,0,i,sd->status.inventory[i].refine);		clif->delitem(sd,i,1,3);		log_pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory[i]);		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..

Edited by Hakuryuu

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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 :(

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.