What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Issues with Me.Race

Malion

Member
Joined
Jan 5, 2011
Messages
32
Reaction score
0
Having a problem with this script it just tells me

"Unknown tag "If" Input: "<If Condition="Me.Race == WoWRace.Human">"

With all the rest of the code under it as well. If i remove this line it works but removing this line also serves no purpose as I want to use this line. I tried looking it up in the Styx and then tried to implement it like how you find out if a character has a spell but that didnt work either. Any help would be awesome :) Thanks!
 

Attachments

Code:
if(Me.Race == WoWRace.Human)
thats basicly all there is too it.
 
Code:
if(Me.Race == WoWRace.Human)
thats basicly all there is too it.
hrm, just looked and it seems thats what you have, not sure how that works out in a profile context.

the line as far as i know is correct, maybe someone else can shed some light on it
 
Could not load profile: The '(' character, hexadecimal value 0x28, cannot be included in a name. Line 15, position 6.
is what i get if i input that.

What I get after I deleted the ( and put " instead.
Could not load profile: Name cannot begin with the '"' character, hexadecimal value 0x22. Line 15, position 7.

What I get if I delete " and ( all together.
Could not load profile: '=' is an unexpected token. The expected token is '"' or '''. Line 15, position 16.

What I get if I delete the extra = as well as the " and the (
Could not load profile: 'WoWRace.Human' is an unexpected token. The expected token is '"' or '''. Line 15, position 17.

Unless it has been update i think i just found the "fine print"
"The < If>, < ElseIf>, and < Else> elements may only be used inside a < QuestOrder> element. It would be convenient to apply If-ElseIf-Else logic inside the < Vendors> or < Blackspots> tag, but that is not yet supported."

Yep, well now I have to accomplish to find out how i am going to do this without these variables... Which I honestly don't think I can which really kinda sucks because it would be awesome to have an all in one profile :)
 
Last edited:
Could not load profile: The '(' character, hexadecimal value 0x28, cannot be included in a name. Line 15, position 6.
is what i get if i input that.
well yea, you can do the entire line.
 
You can't use it like you are. example: #1434722 - Pastie
<hbprofile><if condition="<b>Me.Race == WoWRace.Human</b>"><subprofile>You have to move the If inside the QuestOrder tag.
If tags is ordernodes and will only work inside the QuestOrder tag.<maxlevel></maxlevel>








</subprofile></if></hbprofile>
 
Code:
< If Condition="(Me.Class == WoWClass.Warrior) || (Me.Race == WoWRace.Human)">< /If>

That fixed it granted it is going to be more coding but totally worth it if you ask me.
 
Back
Top