or UnitName("target") == nil) means if you got no target.I have never done coding but if i was to take out the part that says or UnitName("target") == nil) could i get it to only change my form when i target myself?
So i think your right. But let me make an example for that.
normal:
if (UnitName("target") == "Dezz" or UnitName("target") == nil) then
Now it will only morph you when you got YOURSELF IN TARGET:
if (UnitName("target") == "Your Name") then
I hope i Could solve your problem.
cya :wave:
meh, it was working last night lol now its not working at all with this version, ill download the first one again and see if it works or not.
ya the first version works but the 2nd and 3rd version arent working.
Last edited by Kon1g; 09-05-2008 at 04:27 PM.
What the ....
Can you post me the complete code of the code.lua pls? Because i'm using version 3 my self ...
Did version 3 ever work for you or did it not work after you touched the core.lua
Maybe it's my fault ... But ver 3 should work just post your core.lua and i will take a look.
:wave:
I deleted the one i changed and tried reinstalling it and just putting my name in but it still doesnt work. I dont know if it helps at all but my name has an ó in it. I was lookin at the code in the lua between the first one you uploaded and the last one and didnt know if it matters but it says class: druid on every morph on the last one you uploaded and i play a mage but i dont know if thats relevant or not.
heres the core.lua
oldForm = GetShapeshiftForm(true)
-- Called when the addon is loaded
end
function Transforuid:OnEnable()
self:RegisterEvent("PLAYER_AURAS_CHANGED")
-- Called when the addon is enabled
end
function Transforuid:PLAYER_AURAS_CHANGED()
local form = GetShapeshiftForm(true)
local localizedClass, englishClass = UnitClass("player")
local test = math.random(0, 21);
local playerName = UnitName("player");
-- ChatFrame1:AddMessage('Hi my name is: ' .. playerName);
-- if (UnitName("player") ~= "Drezz or my name) then
-- return;
-- end
if (UnitName("target") == "my name here") then
if (form == 0 and (form ~= oldForm) and test == 0 and (englishClass == "DRUID")) then
ConsoleExec("morph 20316");
end
if (form == 0 and (form ~= oldForm) and test == 1 and (englishClass == "DRUID")) then
ConsoleExec("morph 20582");
end
if (form == 0 and (form ~= oldForm) and test == 2 and (englishClass == "DRUID")) then
ConsoleExec("morph 20583");
end
if (form == 0 and (form ~= oldForm) and test == 3 and (englishClass == "DRUID")) then
ConsoleExec("morph 20317");
end
if (form == 0 and (form ~= oldForm) and test == 4 and (englishClass == "DRUID")) then
ConsoleExec("morph 20318");
end
if (form == 0 and (form ~= oldForm) and test == 5 and (englishClass == "DRUID")) then
ConsoleExec("morph 20319");
end
if (form == 0 and (form ~= oldForm) and test == 6 and (englishClass == "DRUID")) then
ConsoleExec("morph 20584");
end
if (form == 0 and (form ~= oldForm) and test == 7 and (englishClass == "DRUID")) then
ConsoleExec("morph 20580");
end
if (form == 0 and (form ~= oldForm) and test == 8 and (englishClass == "DRUID")) then
ConsoleExec("morph 20320");
end
if (form == 0 and (form ~= oldForm) and test == 9 and (englishClass == "DRUID")) then
ConsoleExec("morph 20321");
end
if (form == 0 and (form ~= oldForm) and test == 10 and (englishClass == "DRUID")) then ConsoleExec("TargetUnit("..msg..")");
ConsoleExec("morph 20323");
end
if (form == 0 and (form ~= oldForm) and test == 11 and (englishClass == "DRUID")) then
ConsoleExec("morph 21105");
end
if (form == 0 and (form ~= oldForm) and test == 12 and (englishClass == "DRUID")) then
ConsoleExec("morph 20368");
end
if (form == 0 and (form ~= oldForm) and test == 13 and (englishClass == "DRUID")) then
ConsoleExec("morph 20370");
end
if (form == 0 and (form ~= oldForm) and test == 14 and (englishClass == "DRUID")) then
ConsoleExec("morph 20578");
end
if (form == 0 and (form ~= oldForm) and test == 15 and (englishClass == "DRUID")) then
ConsoleExec("morph 20579");
end
if (form == 0 and (form ~= oldForm) and test == 16 and (englishClass == "DRUID")) then
ConsoleExec("morph 20580");
end
if (form == 0 and (form ~= oldForm) and test == 17 and (englishClass == "DRUID")) then
ConsoleExec("morph 20581");
end
if (form == 0 and (form ~= oldForm) and test == 18 and (englishClass == "DRUID")) then
ConsoleExec("morph 20585");
end
if (form == 0 and (form ~= oldForm) and test == 19 and (englishClass == "DRUID")) then
ConsoleExec("morph 20584");
end
if (form == 0 and (form ~= oldForm) and test == 20 and (englishClass == "DRUID")) then
ConsoleExec("morph 19723");
end
if (form == 0 and (form ~= oldForm) and test == 21 and (englishClass == "DRUID")) then
ConsoleExec("morph 19724");
end
oldForm = form
--SendChatMessage("/script TargetLastTarget", "SAY", "Common");
end
end
function Transforuid:OnDisable()
-- Called when the addon is disabled
Last edited by Kon1g; 09-05-2008 at 06:19 PM.
Insert this in your code.lua this should work:
Transforuid = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceEvent-2.0")
function Transforuid:OnInitialize()
oldForm = GetShapeshiftForm(true)
-- Called when the addon is loaded
end
function Transforuid:OnEnable()
self:RegisterEvent("PLAYER_AURAS_CHANGED")
-- Called when the addon is enabled
end
function Transforuid:PLAYER_AURAS_CHANGED()
local form = GetShapeshiftForm(true)
local test = math.random(0, 21);
if (UnitName("target") == "Your Name" or UnitName("target") == nil) then
if (form == 0 and (form ~= oldForm) and test == 0) then
ConsoleExec("morph 20316");
end
if (form == 0 and (form ~= oldForm) and test == 1) then
ConsoleExec("morph 20582");
end
if (form == 0 and (form ~= oldForm) and test == 2) then
ConsoleExec("morph 20583");
end
if (form == 0 and (form ~= oldForm) and test == 3) then
ConsoleExec("morph 20317");
end
if (form == 0 and (form ~= oldForm) and test == 4) then
ConsoleExec("morph 20318");
end
if (form == 0 and (form ~= oldForm) and test == 5) then
ConsoleExec("morph 20319");
end
if (form == 0 and (form ~= oldForm) and test == 6) then
ConsoleExec("morph 20584");
end
if (form == 0 and (form ~= oldForm) and test == 7) then
ConsoleExec("morph 20580");
end
if (form == 0 and (form ~= oldForm) and test ==then
ConsoleExec("morph 20320");
end
if (form == 0 and (form ~= oldForm) and test == 9) then
ConsoleExec("morph 20321");
end
if (form == 0 and (form ~= oldForm) and test == 10) then
ConsoleExec("morph 20323");
end
if (form == 0 and (form ~= oldForm) and test == 11) then
ConsoleExec("morph 21105");
end
if (form == 0 and (form ~= oldForm) and test == 12) then
ConsoleExec("morph 20368");
end
if (form == 0 and (form ~= oldForm) and test == 13) then
ConsoleExec("morph 20370");
end
if (form == 0 and (form ~= oldForm) and test == 14) then
ConsoleExec("morph 20578");
end
if (form == 0 and (form ~= oldForm) and test == 15) then
ConsoleExec("morph 20579");
end
if (form == 0 and (form ~= oldForm) and test == 16) then
ConsoleExec("morph 20580");
end
if (form == 0 and (form ~= oldForm) and test == 17) then
ConsoleExec("morph 20581");
end
if (form == 0 and (form ~= oldForm) and test == 1then
ConsoleExec("morph 20585");
end
if (form == 0 and (form ~= oldForm) and test == 19) then
ConsoleExec("morph 20584");
end
if (form == 0 and (form ~= oldForm) and test == 20) then
ConsoleExec("morph 19723");
end
if (form == 0 and (form ~= oldForm) and test == 21) then
ConsoleExec("morph 19724");
end
oldForm = form
end
end
function Transforuid:OnDisable()
-- Called when the addon is disabled
end
Would i be able to run this with the MEFix, or is Cypher's program a MEFix of its own?
I'm sorry but with the MeFix my Addon will simply do nothing ...
But CypherMorph has included a MeFix ... so if you're using My Addon + CypherMorph you will not have to start wow trough the MeFix but you start wow through the CypherMorph Program.
The reason is because CypherMorph makes Memoryediting so this Program is able to swap your race / model ingame without swapping any MPQ files or even having any ME'd MPQ's. But the MeFix only swaps your model staticly.
But you can also use your ME'd MPQ's as you used to.
Hope this help :wave:
can this be detected easily?
Quote from Cypher's CypherMorph Thread:
(http://www.mmowned.com/forums/bots-p...-edit-fix.html)
And what my Addon does is only sending the Command Morph <DisplayID> to the Console, so i'm really sure it will not be detected (i think it's the same chance in getting banned / detected as when you use the MeFix).... But as Cypher sayed:This software is currently UNDETECTED BY WARDEN, and I have what I can to ensure this, but as always, USE AT YOUR OWN RISK!
USE AT YOUR OWN RISK (as always)!
Bye :wave:
Last edited by SchnuBby; 09-09-2008 at 08:46 AM.
Rogue here confirming that it DOES work with stealth.
Notification: When i enter stealth it does not change model, only when i exit stealth and when i mount / unmount it doesn't work.
Works just fine otherwise.
Notification UPDATE: I just noticed that my character can change race when i use normal attacks.
Played Arathi Basin just now and tried to interrupt someone capping flag with Throw and then my char changed race. Awesome!
Small notes:
It resets race to your default race when you are zoning / entering bg / w/e.
Last edited by snusker; 09-10-2008 at 09:30 AM.
Lulz.
Yeah Thank You for the confirmation on the stealth thingyRogue here confirming that it DOES work with stealth.
I've disabled the Race change on (Un)-mounting... But i think i could enable this again if you like to or if some1 else want to have this feature... But i'm not sure if this will effect every1 who mounts up... for example it would look really sick if 40 men in an AV would change race at the beginning of the match only because they're mounting upWhen i enter stealth it does not change model, only when i exit stealth and when i mount / unmount it doesn't work.
....
And the thing that you only change race when you unstealth has also been fixed in later versions. But you can fix this by urself:
find the lines:
if (form == 0 and (form ~= oldForm) and test == 1) then
if (form == 0 and (form ~= oldForm) and test == 2) then
and so on....
and replace it with:
if ((form == 0) or (form == 1) and (form ~= oldForm) and test == 1) then
if ((form == 0) or (form == 1) and (form ~= oldForm) and test == 2) then
for example... So (form == 0) means "when you leave stealth" form 0 is normal form. And (form == 1) means "when you enter stealth" so form 1 is FOR ROGUES stealth, as far is i have read the WoWApi. For Druids for example form 0 is caster and form 1 is catform. But be sure if there's any Problem in fixing this by urself, let me know i would be glad to help you then.
I've noticed this bug by myself... for example if i kill some1 and get the killingblow without having a target or having myself in target the addon changes my model oO... But i'm sorry i'm trying to find this bug, but i didn't found it right now ;( ... i hope you can life with this little Bug.... But i think it's cool to change race when your making a deadly throw or soI just noticed that my character can change race when i use normal attacks.
This is a also known bug, but i think this comes from Blizzard because every time you zone or enter a BG or so WoW (re)loads your model and fills the Memory with the "non-edited" model-data... So i think there's no way for me to fix this bug... i'm sorryIt resets race to your default race when you are zoning / entering bg / w/e.
Ps: you can send me your Core.lua Code so i can review it and change it to your belongings so that you change race on entering / leaving stealth or when you mount and so on ....
Hope this could Help
Cya :wave:
Last edited by SchnuBby; 09-11-2008 at 04:34 AM.
I didn't mean anything negative with anything I wrote, I want it to change race as much as possible. But some might not agree with me, but i thought i'd give you a hand and report some stuff.
And I don't think you should remove that it resets to your default race when you zone / enter or exit a BG. I think you should keep it.
Anyway, keep the good work up! :wave:
Lulz.
bannable reason for this?
nice work though mate![]()