Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: Jarkiro on September 24, 2016, 11:45:51 am
-
Hey guys,
i try to implement a specific item. It should have a onUse Effect, so as soon as a player right clicks it, all factions (except monster) are friendly or neutral towards him. I wan´t a blood elf to use this item, so this player (and only this player) has the ability to use the merchants in stormwind. I don´t want those guys to be friendly to everyone, only the players who uses this item.
My first plan was, to create a new faction, which would be neutral to everyone. Then, if this item is getting used, the player would join this faction. But as far as i see, there is no function in the player.ccp which allows to change faction.
Afterwards i had the idea to increase reputation. That worked, my blood elf could walk right into SW and everone was green. But the problem is, i can not interact with merchants or anybody. I only can rightclick to attack. So, this is also not the solution is was hoping to find.
Has anybody an idea, how i could implement this concept?
Greetings
Jarkiro
-
Look at how Corrupted Ashbringer makes Scarlet Monastery friendly. It's a spell. I'm not sure whether you can make multiple factions friendly through one spell, but if you have enough time, you could create a spell for every faction and then just add those to the item as OnEquip auras.