Jump to content
  • 0

Elemental Swords (Proc Control)


Syouji

Question


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

1. Equipping a single sword either on the right hand or the left hand will give the normal stats and auto bonus effects of the sword. 2. Equipping both swords will give you all of the status bonus effects but there will only be 1 instance of auto bonuses. Auto bonuses will NOT stack from each sword.

This is my item DB Entry [ http://mibpaste.com/hMETK3 ] Script to hold function of Right Handed Sword [ http://mibpaste.com/98MABv ] Script to hold function of Left Handed Sword [ http://mibpaste.com/9J3i4F ]

The getequippos() is a custom command made by a friend of mine (Epoque) to check where that item is equipped on. This will enable me to track where each sword has gone.

Of course you will be unable to test this due to the missing command src code (script.c). Here you go.

BUILDIN_FUNC(getequippos)
{
struct map_session_data* sd = script_rid2sd(st);

if( sd == NULL )
{// player must be attached to check for the equipment position
  return 0;
}

 // push the equipment position from the method
script_pushint( st, pc_checkequip(sd, sd->status.inventory[current_equip_item_index].equip) );

 // leave the method
return 0;
}

BUILDIN_DEF(getequippos, ""),

I've been testing this for a long time and still it's not working according to how I want it.. :X

BUMP! I still need help on this issue. The swords are still proc'ing twice.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


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

try this not sure whether it work or not

3414,Elemental_Sword,Elemental Sword,4,20,,1200,105,,1,3,0x000654E2,2,2,2,3,70,1,2,{callfunc "test"},{},{}

function script test {
   set .@count, (getequipid(3)==13414?1:0)+(getequipid(4)==13414?1:0);

       if(.@count==1) {
       bonus3 bAutoSpell,"MG_COLDBOLT",3,50;
       bonus4 bAutoSpellOnSkill,"MG_COLDBOLT","MG_FIREBOLT",3,1000;
       bonus4 bAutoSpellOnSkill,"MG_FIREBOLT","MG_LIGHTNINGBOLT",3,10000;
       bonus4 bAutoSpellOnSkill,"MG_LIGHTNINGBOLT","WZ_EARTHSPIKE",3,10000;
       }

   if(.@count > 0){
       bonus bStr,2;
       bonus bInt,4;
       bonus bDex,1;
       bonus bMatkRate,5;
       bonus2 bAddEle,Ele_Neutral,10;

   }

    end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Thanks, Ill try it out. ^^

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