Jump to content
  • 0

Callfunc Item and Card Stacking


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

Hi,

im requesting for a callfunc script that will not urge to combine effects item & card

situation : GTB immunity is set to 40 so below 90% will be magic damage reduction

1. I have a custom hat with same gtb effect 90%
2. gtb card = 90%


so it will be 100+ if they are wear by shield and headgear which magic receive is completely no damage at all, how can i fix that you can use GTB card when you worn the custom hat thanks!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

maybe this can help ?

db/re/item_combo_db.txt

 xxx:4128,{ unequip EQI_HAND_L; }

xxx = your headgear id 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

xxxxx,Custom_Hat,Custom Hat, ....... { if ( !isequipped(4128) ) bonus bNoMagicDamage, 90; },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

xxxxx,Custom_Hat,Custom Hat, ....... { if ( !isequipped(4128) ) bonus bNoMagicDamage, 90; },{},{}

Thank you annie lemme try =))

 

 

xxxxx,Custom_Hat,Custom Hat, ....... { if ( !isequipped(4128) ) bonus bNoMagicDamage, 90; },{},{}

Thank you annie lemme try =))

 

 

My effect is here

Max HP + 10%

Grants Intravision

[Gunslinger, Ranger, Assassin Cross]

Nullify all magic spells, including supportive skills, 

that target the owner at the cost of doubling SP Consumption cost when using skills.|

(Cannot wear GTB when Equipped)

[Wizard, Ninja]

Adds 30% Magical Defense bypassing on Demi-human monster.

Ignored MDEF of Demi-human Monster

[Lord Knight, Merchant, Sage,Taekwon]

Gives a small chance of casting Parrying Level 9

Gives 55% by Pass Flee

here the item script

{ bonus bIntravision,0; bonus bAllStats,5; bonus bMaxHPrate,10; if(BaseClass==Job_Assassin||BaseJob==Job_Gunslinger||BaseClass==Job_Hunter) { bonus bNoMagicDamage,90; } else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard) { bonus2 bIgnoreMdefRate,RC_DemiHuman,30; bonus bMatk,3; } else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard) { bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; } },{},{}

btw where should i put that? i'm kinda trouble with if statements lol sry just noob

 

Edited by Xii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

if ( isequipped(4128) ) { unequip EQI_HAND_L; end; }

put this at the most beginning of your script field

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

if ( isequipped(4128) ) { unequip EQI_HAND_L; end; }

put this at the most beginning of your script field

{ if ( isequipped(4128) ) { unequip EQI_HAND_L; end; } bonus bIntravision,0; bonus bAllStats,5; bonus bMaxHPrate,10; if(BaseClass==Job_Assassin||BaseJob==Job_Gunslinger||BaseClass==Job_Hunter) { bonus bNoMagicDamage,90; } else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard) { bonus2 bIgnoreMdefRate,RC_DemiHuman,30; bonus bMatk,3; } else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard) { bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; } },{},{}

like this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

yeah ...

btw, why I see a condition being repeated ?

if ( isequipped(4128) )
	{ unequip EQI_HAND_L; end; }
bonus bIntravision,0; bonus bAllStats,5; bonus bMaxHPrate,10;
if(BaseClass==Job_Assassin||BaseJob==Job_Gunslinger||BaseClass==Job_Hunter)
	{ bonus bNoMagicDamage,90; }
else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard)
	{ bonus2 bIgnoreMdefRate,RC_DemiHuman,30; bonus bMatk,3; }
else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard)
	{ bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; }
if the character is a ninja or wizard, they only get ignore matk damage on human and matk +3,

perfect hit and parrying auto-spell are not get because of 'else if' condition

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

yeah ...

btw, why I see a condition being repeated ?

if ( isequipped(4128) )
	{ unequip EQI_HAND_L; end; }
bonus bIntravision,0; bonus bAllStats,5; bonus bMaxHPrate,10;
if(BaseClass==Job_Assassin||BaseJob==Job_Gunslinger||BaseClass==Job_Hunter)
	{ bonus bNoMagicDamage,90; }
else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard)
	{ bonus2 bIgnoreMdefRate,RC_DemiHuman,30; bonus bMatk,3; }
else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard)
	{ bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; }
if the character is a ninja or wizard, they only get ignore matk damage on human and matk +3,

perfect hit and parrying auto-spell are not get because of 'else if' condition

 

 

Sorry for the misleading post it should be

else if (BaseJob==Job_Merchant||BaseJob==Job_Taekwon||BaseJob==Job_Sage||BaseJob==Job_Knight)

    { bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; }

maybe this can help ?

db/re/item_combo_db.txt

 xxx:4128,{ unequip EQI_HAND_L; }

xxx = your headgear id 

I will try that thanks!

 

yeah ...

btw, why I see a condition being repeated ?

if ( isequipped(4128) )
	{ unequip EQI_HAND_L; end; }
bonus bIntravision,0; bonus bAllStats,5; bonus bMaxHPrate,10;
if(BaseClass==Job_Assassin||BaseJob==Job_Gunslinger||BaseClass==Job_Hunter)
	{ bonus bNoMagicDamage,90; }
else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard)
	{ bonus2 bIgnoreMdefRate,RC_DemiHuman,30; bonus bMatk,3; }
else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard)
	{ bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; }
if the character is a ninja or wizard, they only get ignore matk damage on human and matk +3,

perfect hit and parrying auto-spell are not get because of 'else if' condition

 

 

Sorry for the misleading post it should be

else if (BaseJob==Job_Merchant||BaseJob==Job_Taekwon||BaseJob==Job_Sage||BaseJob==Job_Knight)

    { bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; }

maybe this can help ?

db/re/item_combo_db.txt

 xxx:4128,{ unequip EQI_HAND_L; }

xxx = your headgear id 

I will try that thanks!

 

@Emistry = Problem SOLVED Thanks!

Edited by Xii
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...