Jump to content
  • 0

Check if card is on left or right-hand weapon


Question

Posted

Hi, I'm somewhat familiar with scripting already with rAthena, however, there is one issue I am facing that I haven't figured out at all or any other way to do the checks properly.

It's on how to figure out if the card is being equipped on the L-Hand side or R-Hand side of equipment (specifically, Assassin dual wielding and such)

This is what I came up with, but looking at it more, it doesn't really do what I need it to do.
 

	if(getarg(3) == 1 && Class == 12 || Class == 4013){
		.@right = getequipid(EQI_HAND_R);
		.@left = getequipid(EQI_HAND_L)
		for(.@i = 0; .@i < 4; .@i++){
			.@rc[.@i] = getequipcardid(EQI_HAND_R,.@i);
			.@lc[.@i] = getequipcardid(EQI_HAND_R,.@i);
			if(inarray(.@rc[0], .@lc[@i]) == -1)

Is there any other method that can be used to check if card is in the left-hand or right-hand?

1 answer to this question

Recommended Posts

  • 0
Posted

Solved.

Resolved by using a combination of getequipweaponlv and getequipcardcnt, in conjunction with adding a function to the card upon Equip and UnEquip to identify that it's been equipped on L-Hand.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...