Critica Posted June 19, 2012 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 223 Reputation: 4 Joined: 02/23/12 Last Seen: March 28, 2018 Share Posted June 19, 2012 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? Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted June 19, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted June 19, 2012 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; } },{},{} Quote Link to comment Share on other sites More sharing options...
Critica Posted June 19, 2012 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 223 Reputation: 4 Joined: 02/23/12 Last Seen: March 28, 2018 Author Share Posted June 19, 2012 (edited) 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 June 19, 2012 by critica Quote Link to comment Share on other sites More sharing options...
Euphy Posted June 19, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted June 19, 2012 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 Quote Link to comment Share on other sites More sharing options...
Critica Posted June 19, 2012 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 223 Reputation: 4 Joined: 02/23/12 Last Seen: March 28, 2018 Author Share Posted June 19, 2012 (edited) 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 June 21, 2012 by critica Quote Link to comment Share on other sites More sharing options...
Question
Critica
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.