Lord 15 Posted February 6, 2017 Share Posted February 6, 2017 Hey ! My mage fightclass is creating way to many water .. I nearly have 5 / 6 stack sometimes Here is the fightclass i use Thanks ! Mage.xml Link to comment Share on other sites More sharing options...
Arcangelo 105 Posted February 6, 2017 Share Posted February 6, 2017 It's a bot issue. I have made a couple of mage profiles as well and even if I max the item count it still does it. Link to comment Share on other sites More sharing options...
Droidz 2737 Posted February 7, 2017 Share Posted February 7, 2017 Hello, add lua ckeck before cast spell: Mage fix.xml local count = GetItemCount(5350); if (count <= 1) { local name = GetSpellInfo(29975); RunMacroText("/cast " .. name) } Link to comment Share on other sites More sharing options...
Lord 15 Posted February 7, 2017 Author Share Posted February 7, 2017 28 minutes ago, Droidz said: Hello, add lua ckeck before cast spell: Mage fix.xml local count = GetItemCount(5350); if (count <= 1) { local name = GetSpellInfo(29975); RunMacroText("/cast " .. name) } Thanks :) Link to comment Share on other sites More sharing options...
Lord 15 Posted February 7, 2017 Author Share Posted February 7, 2017 Sorry i'am not that good in coding .. So actually i did the modification for both of spells, & my fightclass isnt doing anything for now :( Here is my file Mage.xml And i tried the fightclass you link, here is what i get when i launch it : Link to comment Share on other sites More sharing options...
Droidz 2737 Posted February 8, 2017 Share Posted February 8, 2017 How to add spell from another fightclass to your fightclass: http://wrobot.eu/forums/topic/5033-how-to-add-easily-spell-from-another-fightclass-to-your-fightclass/ Lord 1 Link to comment Share on other sites More sharing options...
Lord 15 Posted February 8, 2017 Author Share Posted February 8, 2017 I did exactly that, just changing the items ID, and still getting this error Link to comment Share on other sites More sharing options...
teddyvgt 0 Posted February 8, 2017 Share Posted February 8, 2017 Same mistake Link to comment Share on other sites More sharing options...
Droidz 2737 Posted February 8, 2017 Share Posted February 8, 2017 Sorry, it is bug of WRobot for vanilla, wait next update (or don't use IsSpellUsable condition) Link to comment Share on other sites More sharing options...
Lord 15 Posted February 8, 2017 Author Share Posted February 8, 2017 Okay thanks ! Just to know, the mail issue is a know issue ? I can't use the mail system on Elysium. Should i start a topic for that or is it going to be fix on next update ? Link to comment Share on other sites More sharing options...
Twineye 0 Posted February 19, 2017 Share Posted February 19, 2017 Not sure if it was fixed but I couldn't make it work properly with the lua that Droidz suggested or any other way, so I put one together that works with vanilla API local food, water = 0, 0; for bag = 0,4,1 do for slot = 1, GetContainerNumSlots(bag), 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name, "Conjured") then local _, count = GetContainerItemInfo(bag,slot); if string.find(name, 'Water') then water = water + count; else food = food + count; end; end; end; end; if food <= 4 then CastSpellByName('Conjure Food') end; if water <= 4 then CastSpellByName('Conjure Water') end Link to comment Share on other sites More sharing options...
dirtyjobs 14 Posted May 28, 2017 Share Posted May 28, 2017 Quote local count = GetItemCount(5350); if (count <= 1) { local name = GetSpellInfo(29975); RunMacroText("/cast " .. name) } the problem is the item id for 5350 is rank 1 conjured water. https://tbc-twinhead.twinstar.cz/?item=5350 the spell 29975 is rank 8 conjured water https://tbc-twinhead.twinstar.cz/?spell=29975 the correct spell id is 5504 for rank 1 conjured water https://tbc-twinhead.twinstar.cz/?spell=5504 The below snippet of code will work for rank 1 conjured water. local count = GetItemCount(5350); if (count <= 1) { local name = GetSpellInfo(5504); RunMacroText("/cast " .. name) } after repeated attempts I couldnt get this code to work either. i ended up using the code Twineye posted above this post. Link to comment Share on other sites More sharing options...
Jasabi 38 Posted June 30, 2017 Share Posted June 30, 2017 On 28.5.2017 at 9:01 AM, dirtyjobs said: the problem is the item id for 5350 is rank 1 conjured water. https://tbc-twinhead.twinstar.cz/?item=5350 the spell 29975 is rank 8 conjured water https://tbc-twinhead.twinstar.cz/?spell=29975 the correct spell id is 5504 for rank 1 conjured water https://tbc-twinhead.twinstar.cz/?spell=5504 The below snippet of code will work for rank 1 conjured water. local count = GetItemCount(5350); if (count <= 1) { local name = GetSpellInfo(5504); RunMacroText("/cast " .. name) } after repeated attempts I couldnt get this code to work either. i ended up using the code Twineye posted above this post. Pretty sure GetItemCount isnt in the vanilla api Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now