Jump to content
  • 0

equip2?


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Hi guys anyone knows how to make this scr mods? My idea, equip2 command can be used to switch equipments, so that player will got ease switching equipments. To work, you need to use commands getequip to record.

Like this:
 

set $gba, getequipid(EQI_HEAD_TOP);                 // GET EQUIP ID
set $gba1, getequiprefinerycnt(EQI_HEAD_TOP);       // GET REFINE COUNT
set $gba2, getequipcardid(EQI_HEAD_TOP,1); 	    // GET CARD ID
set $gba3, getequipcardid(EQI_HEAD_TOP,2);     	    // GET CARD ID 
set $gba4, getequipcardid(EQI_HEAD_TOP,3);  	    // GET CARD ID 
set $gba5, getequipcardid(EQI_HEAD_TOP,4); 	    // GET CARD ID 

 

 Actually im trying to build a custom src modification from scratch(LOL IDK what to do!), need a helping hand here. This is what i did now i know im wrong i really just need to confirm things out. Also sorry for my english.

equip2:

BUILDIN_DEF(equip2,"viiiiiii?"),

----------------------------------------------------------------
BUILDIN_FUNC(equip2)
{

	int nameid=0,i;
	int iden,ref,attr,c1,c2,c3,c4;
	char bound=0;
	struct item_data *item_data;
	TBL_PC *sd;

	sd = script_rid2sd(st);

	nameid=script_getnum(st,2);
	if((item_data = itemdb_exists(nameid)) == NULL)
	{
		ShowError("wrong item ID : equipitem(%i)\n",nameid);
		return 1;
	}
	ARR_FIND( 0, MAX_INVENTORY, i,iden,ref,attr,c1,c2,c3,c4, sd->status.inventory[i].nameid == nameid );
	if( i < MAX_INVENTORY )
		pc_equipitem(sd,i,iden,ref,attr,c1,c2,c3,c4,item_data->equip);

	return 0;
}

 

Found this

http://rathena.org/board/files/file/2240-release-script-command-equip2/

thanks to sir!

Lionhardt

 

But im having an error on equip2 function. Im using the latest SVN. 17459.

 

expect command,missing function name, or undeclared function.
'e'equip2....
Edited by Lil Troll
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...