Jump to content
  • 0

Dual-wielding Mace or Staff


k9classic

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  11/06/12
  • Last Seen:  

Hi !

Need your help please..

I need to make 1 handed mace and 1 handed staff can be equipped in left hand if the character have Left handed mastery skill.
I've searched and found this Gunslinger Dual Wield

Then I make changes to :

pc.c

// dual-wield
	sd->status.weapon = 0;
	switch (sd->weapontype1){
	case W_DAGGER:
		switch (sd->weapontype2) {
		case W_DAGGER:  sd->status.weapon = W_DOUBLE_DD; break;
		case W_1HSWORD: sd->status.weapon = W_DOUBLE_DS; break;
		case W_1HAXE:   sd->status.weapon = W_DOUBLE_DA; break;
		}
		break;
	case W_1HSWORD:
		switch (sd->weapontype2) {
		case W_DAGGER:  sd->status.weapon = W_DOUBLE_DS; break;
		case W_1HSWORD: sd->status.weapon = W_DOUBLE_SS; break;
		case W_1HAXE:   sd->status.weapon = W_DOUBLE_SA; break;
		}
		break;
	case W_1HAXE:
		switch (sd->weapontype2) {
		case W_DAGGER:  sd->status.weapon = W_DOUBLE_DA; break;
		case W_1HSWORD: sd->status.weapon = W_DOUBLE_SA; break;
		case W_1HAXE:   sd->status.weapon = W_DOUBLE_AA; break;
		}
		break;
	case W_MACE:
		switch (sd->weapontype2) {
		case W_STAFF:  sd->status.weapon = W_DOUBLE_RM; break;
		case W_MACE:   sd->status.weapon = W_DOUBLE_MM; break;
		}
		break;
	case W_STAFF:
		switch (sd->weapontype2) {
		case W_STAFF:  sd->status.weapon = W_DOUBLE_RR; break;
		case W_MACE:   sd->status.weapon = W_DOUBLE_RM; break;
		}
		break;
	}

pc.h

	// dual-wield constants
	W_DOUBLE_DD, // 2 daggers
	W_DOUBLE_SS, // 2 swords
	W_DOUBLE_AA, // 2 axes
	W_DOUBLE_DS, // dagger + sword
	W_DOUBLE_DA, // dagger + axe
	W_DOUBLE_SA, // sword + axe
	W_DOUBLE_RR, // 2 rods
	W_DOUBLE_MM, // 2 maces
	W_DOUBLE_RM, // rod + mace

and added script_constants.h

	export_constant(W_DOUBLE_RR);
	export_constant(W_DOUBLE_MM);
	export_constant(W_DOUBLE_RM);

 

I tried using Mace and Rod, but none is equippable in the left hand.
Is client modification also needed? If yes, which file?

Thank you!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  38
  • Reputation:   1
  • Joined:  01/09/17
  • Last Seen:  

You have to modify the code in pc.c to or add in new code to allow it. Just control+f and search "dual" until you see the section about kagero and thief dual wielding and change it so that it behaves according to your specifications. 

 

Link to comment
Share on other sites

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...