May I request this source coz I can't make it on my own..
getequipbound <equipment slot>;
It returns the bound type of the currently equipped item.
0 - Equipment is not bounded
1 - Account Bound
2 - Guild Bound
3 - Party Bound
4 - Character Bound
I will use this to my custom pvp room wherein when you killed a player you have a chance to steal his currently equipped item and I want the bound type to be the same.
Ended up doing this on my own. Can anyone check if it has some glitches? LOL I'm not actually into source. but this script command is working fine with me.
BUILDIN_FUNC(getequipbound)
{
int i, num, type;
TBL_PC *sd;
num=script_getnum(st,2);
sd=script_rid2sd(st);
if (num > 0 && num <= ARRAYLENGTH(equip))
i=pc_checkequip(sd,equip[num-1]);
type = sd->status.inventory[i].bound;
if( i > 0 && type )
script_pushint(st,type);
else
script_pushint(st,0);
return SCRIPT_CMD_SUCCESS;
}
Question
Lord Ganja
May I request this source coz I can't make it on my own..

getequipbound <equipment slot>;
It returns the bound type of the currently equipped item.
0 - Equipment is not bounded
1 - Account Bound
2 - Guild Bound
3 - Party Bound
4 - Character Bound
I will use this to my custom pvp room wherein when you killed a player you have a chance to steal his currently equipped item and I want the bound type to be the same.
Thanks in advance!
EDIT:
Ended up doing this on my own. Can anyone check if it has some glitches? LOL I'm not actually into source. but this script command is working fine with me.
Edited by Lord GanjaLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.