Slyx Posted September 24, 2018 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 57 Reputation: 9 Joined: 03/05/18 Last Seen: January 29, 2019 Share Posted September 24, 2018 Hello guys, I quote the item script from item_db: fire converter = { itemskill "ITEM_ENCHANTARMS",4; } my question is where does the number 4 comes from? i tried searching in status.cpp and skill.cpp but cant get the idea behind this assigned number 4 on this script. thank you in advance for your supports Quote Link to comment Share on other sites More sharing options...
0 Hyroshima Posted September 24, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Share Posted September 24, 2018 (edited) ^^ script_commands.txt (/map/script.cpp) *itemskill <skill id>,<skill level>{,<keep requirement>}; *itemskill "<skill name>",<skill level>{,<keep requirement>}; This command is meant for item scripts to replicate single-use skills in usable items. It will not work properly if there is a visible dialog window or menu. If the skill is self or auto-targeting, it will be used immediately; otherwise a target cursor is shown. If <keep requirement> parameter is set to true, the skill's requirements will be checked. By default, the requirements for item skills are not checked, and therefore the default value is false. // When Anodyne is used, it will cast Endure (8), Level 1, as if the actual // skill has been used from skill tree. 605,Anodyne,Anodyne,11,2000,0,100,,,,,10477567,2,,,,,{ itemskill 8,1; },{} // When Sienna_Execrate_Scroll_1_5 is used, it will cast Sienna Execrate Level 5 and consume 2 Red_Gemstones. 23194,Sienna_Execrate_Scroll_1_5,Level 5 Sienna Execrate,11,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ itemskill "WL_SIENNAEXECRATE",5,true; },{},{} Edited September 24, 2018 by Hyroshima Quote Link to comment Share on other sites More sharing options...
Question
Slyx
Hello guys,
I quote the item script from item_db:
fire converter = { itemskill "ITEM_ENCHANTARMS",4; }
my question is where does the number 4 comes from? i tried searching in status.cpp and skill.cpp but cant get the idea behind this assigned number 4 on this script.
thank you in advance for your supports
Link to comment
Share on other sites
1 answer 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.