Jump to content
  • 0

is this possible? item bonus


Critica

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

Item bonus..

(Card)

if eqquipped on Helm (all helm) bonus str +10

if eqquipped on Armor (all armor) bonus +10 vit

if eqquipped on Other (all except helm, armor) bonus +10 int

is it possible to use item id location (1,256,512 etc.) on bonus script?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

you may use this as example

4427,Sword_Guardian_Card,Sword Guardian Card,6,20,,10,,,,,,,,2,,,,,{ if (getiteminfo(getequipid(EQI_HAND_R),11) == 2 || getiteminfo(getequipid(EQI_HAND_R),11) == 3) { bonus bHit,5; bonus bCritical,5; bonus2 bSkillAtk,62,25; } },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

OHH! yea i forgot about that.. uhm question

getequipid(EQI_HAND_R),11) == 3) what does 11 and 3 mean?

and where can i find the list for EQI..?

and sir, can you make an example like

,,,,,{ if (helm) {bonus str +10;} if (armor) {bonus agi +10;} else bonus hp %

a format like that, so it'll be easier for me to understand... thankS!

Edited by critica
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

All constants are defined in db\const.txt:

EQI_HEAD_TOP 1
EQI_ARMOR 2
EQI_HAND_L 3
EQI_HAND_R 4
EQI_GARMENT 5
EQI_SHOES 6
EQI_ACC_L 7
EQI_ACC_R 8
EQI_HEAD_MID 9
EQI_HEAD_LOW 10

And "getiteminfo" takes multiple "types" as a second argument, with 11 being look:

*getiteminfo(<item ID>,<type>)

This function will look up the item with the specified ID number in the database

and return the info set by TYPE argument.

It will return -1 if there is no such item.

Valid types are:

0 - Buy Price; 1 - Sell Price; 2 - Item Type;

3 - maxchance (Max drop chance of this item e.g. 1 = 0.01% , etc..

if = 0, then monsters don't drop it at all (rare or a quest item)

if = 10000, then this item is sold in NPC shops only

4 - sex; 5 - equip; 6 - weight; 7 - atk; 8 - def; 9 - range;

10 - slot; 11 - look; 12 - elv; 13 - wlv; 14 - view id

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

hmm, ok i get the "11" it means look right? but what look? sprite look?

getequipid(EQI_HAND_R),11) == 3)

and the == 3 what does it mean?? the common numbers i see im my itemdb is 2,3 and 11...

like for dosera for ex..

if (getiteminfo(getequipid(EQI_HAND_R),9) > 3) bonus bCritical,15;

i know EQI_HAND_R ) range.. what does > 3 mean???

Hey Euphy i tried combining everything, im trying to understand what's "==" and ">" this and the number after... but still i dont get it.. >.>

if (getiteminfo(getequipid(EQI_HAND_R),11) == 2 ){ bonus bStr,5; } this works, but only for weapon,

i tried EQI_ARMOR

if (getiteminfo(getequipid(EQI_ARMOR),11) == 2 ){ bonus bStr,5; } dont work

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