Jump to content
  • 0

activate disguise item when attacking


enteike

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/15/12
  • Last Seen:  

Hello everyone im trying to make a disguise item that activates when attacking or performing a magical attack, actually i get disguised when i equip the item... have tried a lot of things but i cant make it.

 

in mi item db have this:

1109,Blade__,Blade,5,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{ if(isequipped(5151)) { bonus bDef,30; bonus bMaxHP,1500; } },{ disguise 1038; sleep2 3000; undisguise; },{}

If possible i would like when you are attacking there is a 10% chance of trigger the disguise and past 20 seconds the disguise and the bonus disapear.

 

The idea was taken from this post: http://rathena.org/board/topic/87349-black-shiba-inu-script/

 

I try adding:

 

try

18756,Black_Shiba_Inu_Hat,Black Shiba Inu Hat,5,20,,400,,6,,1,0xFFFFFFFF,63,2,256,,50,1,894,{ bonus2 bAddRace,RC_Brute,10; if( isequipped(2959) ) autobonus (( @bonus )?"":"{ disguise 1785; sleep2 ( @count * 1000 ); undisguise; @count++; @bonus = 0;" ),2500,( ( @bonus )?0:( @count *1000 ) ); },{},{ if( @bonus ) undisguise; }

25% to trigger ...

change the 2500 if you want to change the rate.

 

Didnt work.

 

Note: dont know if its possible you get undisguised before u die to prevent errors.

 

Really need this someone help me please...

 

Thanks in advance!

Edited by enteike
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/19/14
  • Last Seen:  

A lot of people is looking for this script, and some people asked me how I was doing such a thing, because it works perfectly on my server.
So, I'm sharing here with you and everyone else that have this nonfunctional script.

 

Since the item_combo_db isn't work nicely, I'm using item_db:

 

18756,Black_Shiba_Inu_Hat,Black Shiba Inu Hat,4,20,,400,,6,,1,0xFFFFFFFF,63,2,256,,50,1,894,{ bonus bBaseAtk,30; bonus2 bAddRace,RC_Brute,10; if(getequipid(EQI_ACC_L) != 2959 && getequipid(EQI_ACC_R) != 2959){ end; } set .@time, 5+(10*getequiprefinerycnt(EQI_HEAD_TOP)); autobonus "{ bonus bBaseAtk,30; disguise 1785; sleep2 5000; undisguise; }",.@time,5000,0,"{ specialeffect2 EF_POTION_BERSERK; }"; autobonus2 "{ bonus bBaseAtk,30; }",.@time,5000,BF_WEAPON,"{ specialeffect2 EF_POTION_BERSERK; disguise 1785; sleep2 5000; undisguise; }"; },{},{ undisguise; }
 
5 seconds of transformation
5 + (10 x Hat Refine) chance of activation. That means, Shiba+8 will grant 85 = 8.5% activation chance
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...