i need a script for an npc to change a players faction when they choose a certian option the npc has. i need the faction to stay when the player logs.
i need a script for an npc to change a players faction when they choose a certian option the npc has. i need the faction to stay when the player logs.
If you want it to be a Gossip Menu to do it then Maby something like this.
Try that.Code:local FactionID = 5 local NPCID = 5 function On_Gossip(unit, event, player) unit:RemoveEvents() unit:GossipCreateMenu(100, player, 0) unit:GossipMenuAddItem(5, "Change to this faction", 1, 0) unit:GossipSendMenu(player) end end function Change_Faction(unit, event, player, id, intid,) if (intid == 1) then player:SetFaction(factionID) end end RegisterUnitGossipEvent(NPCID, 1, "On_Gossip")
"i downloaded it in "pirates bay", can you tell me how to download it in steam, pls"