Jump to content

Ordush

Elite user
  • Posts

    1178
  • Joined

  • Last visited

Everything posted by Ordush

  1. Here is EXACTLY what i want to do using my old PQR shadow priest (WOTLK) example. :) -- Prayer of Fortitude local POFortitude = false local POFMat = false -- Rank 4 if IsSpellKnown(48162) then POFortitude = 48162 POFMat = "DevoutCandles" -- Rank 3 elseif IsSpellKnown(25392) then POFortitude = 25392 POFMat = "SacredCandles" -- Rank 2 elseif IsSpellKnown(21564) then POFortitude = 21564 POFMat = "SacredCandles" -- Rank 1 elseif IsSpellKnown(21562) then POFortitude = 21562 POFMat = "HolyCandles" end So i want to check if the player has a spell in a certain rank by ID As you can see here: If the player doesn't have Prayer of Fortitude at all, it will make POFortitude false If the player does have Prayer of Fortitude rank 2 it will make POFortitude that rank Then later when i tell it to cast spell by ID (I cast by ID to make it multi-lang). It will check the bag if it has mat based on POFMat >5 (So it only casts prayer if it has more than 5 mats).
  2. I want to input spell id, then i want it to return true if the player has that spell and nil if the player doesn't. If you do GetSpellInfo("AnyID") it will always just post the info in that table no matter if you know the spell or not. If you do GetSpellInfo(GetSpellInfo("AnyID")) then IF you know the spell (no matter what rank you have) it will post the table for the highest rank of the spell that spell in your spellbook. (Because you basicly search for name instead of ID). What is to check SpellID if player has that spell WITH the rank that follows with the ID then return true else return nil, even if it has the Spell but in a lower rank. Hope it makes sense. :) So in short, not the max rank the player has, that's easy just do GetSpellInfo(GetSpellInfo("AnyID")) I want to check for the rank that comes with the ID.
  3. @Matenia I figured why this method doesn't work well. It sure does work cross language, but you won't be able to rank check with this. If you have rank 1 of an ability, it will never do nil no matter what ID you use, be it rank 1 or rank 5 of a spell. Reason this has a consequence: Say i want it to buy mats for buffs. Then i won't be able to specify what mats to buy based on what rank is available. I could go the long way and check what rank the player has as max (which this will always post if it's not nil). Then set to nil if the known rank (google) for a spell does not mach the rank of the players spell. However, it would be a lot easier if i had the wow api function from wotlk+. So if anyone knows a way to get the functions from the wow api. (the whole code) please let me know. :)
  4. LOL I just realized i posted in the wrong forum hahaha nevermind lol The method he posted obviously works fine, he is just using list instead of array. My question was simply if i could use array when checking for buffs. His answer lead me to the short answer which is no. And the long answer is: Yes if you do a foreach and check every buff 1 buff at a time. Sorry Icesythe lol
  5. what wow api would that be? If you are talking about IsSpellKnown then i can't. Since that is not in TBC. Or are you talking about some other function in the wow api?
  6. LOL Doh... Why did i not think of that? Thank you mate! much appreciated! <3
  7. Yeah, and that takes me nowhere, when i want to make my fightclase multi-language. :) My point was exactly that i wanted to use ID instead of name, so that example french players don't have to use English client. :) try and check id 1234, just an example. :) But thank you for the tip mate! :)
  8. Yeah, but the problem is that you can do GetSpellInfo and get the info on a spell even if you don't know the spell.
  9. Hey yall Anyone knows if there is a link to the global lua api for any wow versions? A document where all the global functions are in. i.e. The game has the function UnitRace() or the function IsSpellKnown Reason i want to find this is because i want to add some of these functions added to the gamer after 2.4.3 into my fight class. I have already added some of those that i could figure out how were made like: print, UnitBuffName, cdRemains, IsSpellUsable etc. But i can not for the life of me guess what the code is for IsSpellKnown. I need to have this function in order to be able to use spell id's instead of spell names (thereby making it possible to make my fightclass multi-language supported). Does the WRobot api have a way to determine spell by ID instead of name? Would be easy if i only needed to be level 70 spells. But if i want to make it available for leveling, i'd need a way to check if a spell is known. Example: public Spell SerpentSting = new Spell("Serpent Sting"); If i wanted to add this as a spell ID then i could do this in Lua: SerpentSting = "false" if SpellIsKnown(27016) then -- Rank 10 SerpentSting = 27016 elseif SpellIsKnown(25295) then -- Rank 9 SerpentSting = 25295 end if not SerpentSting == "false" then CastSpellByName (GetSpellInfo(SerpentSting) end With this i can define spellname id based on what rank you have available. :)
  10. Please check out my FAQ on Discord. If it doesn't help you with your problems, then please post in the support channel. https://discord.gg/9jvgqgS Welcome to the FAQ (Frequently Asked Questions). Here you will find the answers to most of your questions. If your issue is not in this list, feel free to seek help in the support channel that fits the fightclass you're using. [Q] = Questions [A] = Answer [Q]: The xml file is only containing 1 line of code, is this a scam? [A]: No, this is not a scam. All my fightclasses are encrypted, WRobot reads the encryption key then it loads all my code. [Q]: WRobot crashes every so often with your fightclass fix? [A]: This is because you have turned logging on. In WRobot click 'Log' then turn off 'Fight'. [Q]: My interface is messed up and i am getting errors. What do i do? [A] The first time you load the fightclass, it has to make the settings file. So if you get errors, write /run ReloadUI() to fix the errors. (This is a first time laod only) [Q]: I have loaded the file, but nothing happens in-game (no interface).? [A]: This can be because of a few reasons: 1)Your game client is not English 2)Your WRobot is only trial version If it's not any of these two then get help in the support.
  11. Cheers will try it out tomorrow. :)
  12. Hey yall. Do you know if it is possible to check for an array of buffs in C#? And if so, how? Like if you wanna check for Polymorph, Hex, Freezing Trap etc.?
  13. Hey Jono, there is a link to my Discord in the very top of this fightclass. :) https://discord.gg/9jvgqgS
  14. You have obviously done something wrong mate. What level are you? What language is your game? Can you see the in-game interface? Do you have any settings changed?
  15. The bug you are experiencing is not something everyone is experiencing. It has happened to you and now two others. I am not sure why you guys are having this issue. It seems to only happen when you use the quester. I have personally leveled 5 bots at the same time from level 1-70 without any issues. Hopefully the problem will be solved soon. I am going to release a very big update soon. Lets hope the issue will be fixed for you as well.
  16. Alright, that's what i guessed. However, just want to point out that it will spit out duplicate entry, if you do any other CS error in your code. :) Thansk for the answer Droidz! :)
  17. Hey Does anyone know if it is possible to make it so when WRobot reads your XML file, it will not create the /* * SETTINGS */ [Serializable] part of the code? Reason: I am writing it manually into the fightclass editor under additional C#
  18. Hmm, i will definitely have to look into that. I have made a ticket, and it's a known bug. Waiting for Droidz to look into it. :)
  19. Any chance that @Droidz will comment on this? :)
  20. Yeah, the way to make it work with raid, is what i wrote above. :P Will it be added, or will i have to manually rewrite all my code to use lua instead?
  21. Hey Droidz Not sure if it's a bug or it is intended, but when you use the class editor, and you set it to check friends (For healing group). It only casts on the group. Is there a way to change that to raid? I am guessing that you are doing variableName {"party1", "party2", "party3" etc.} or some variation of that. (Array) Should be possible to change that into raid1 raid2 etc. based on you being in a party or raid. group = false if not group then group = "solo" end groupmembers = false if not groupmembers then groupmembers = 0 end if GetNumPartyMembers() &gt; 0 then group ="party" groupmembers = GetNumPartyMembers() end if GetNumRaidMembers() &gt; 0 then group = "raid" groupmembers = GetNumRaidMembers() end This is how I personally define if i am in a group/raid/solo
  22. That does not make any sense, sounds like a bug since it does work in raids. I will make a ticket in the bug-tracker. :)
  23. Just heals yourself? Try clicking the cogwheel mate, it will show the settings you can set in-game. If you look on page 2. You will see it says "Heal Yourself", "Heal Group" and "Heal Focus". So you besides healing your BG group, it will even allow you to set a focus, and focus heal that. Like if you set the flag carrier as focus, it will make sure he stays alive, above anyone else in the group. :)
  24. Hehe, thank you. :) Glad you liek it! If you wan't to show your appreciation, feel free to make a review. :)
×
×
  • Create New...