This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] [WotLk] Make Player Neutral?  (Read 850 times)

Jarkiro

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 3
    • View Profile
[QUESTION] [WotLk] Make Player Neutral?
« 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] [WotLk] Make Player Neutral?
« Reply #1 on: September 24, 2016, 10:35:29 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.