[DiscordArchive] Hi ZIC, please post a link to the whole script?
[DiscordArchive] Hi ZIC, please post a link to the whole script?
Archived author: Honey • Posted: 2023-01-14T14:19:50.578000+00:00
Original source
Hi ZIC, please post a link to the whole script?
Archived author: M'Dic • Posted: 2023-01-14T14:23:57.627000+00:00
Original source
A nevermind. Was gonna type the c++ solution but forgot what channel i was viewing
Archived author: Honey • Posted: 2023-01-14T14:28:30.775000+00:00
Original source
The description exists https://www.azerothcore.org/pages/eluna/...rRace.html
So what's required to be able to help is an error (if there is one) and the script itself.
[Embed: Player:SetFactionForRace - Eluna]
API documentation for the Player:SetFactionForRace method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...rRace.html
Archived author: ZIC • Posted: 2023-01-14T15:20:32.353000+00:00
Original source
local NPC_ID = 999992
function On_Gossip(event, player, unit)
-- Menus
player:GossipMenuAddItem(0, "my home alliance", 0, 1)
player:GossipSendMenu(1, unit)
end
function On_Select(event, player, unit, sender, intid, code)
if (intid == 1) then
player:SetFactionForRace(1)
player:SaveToDB()
end
player:GossipComplete()
end
RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Archived author: ZIC • Posted: 2023-01-14T15:20:43.805000+00:00
Original source
<@595620700706832414>
Archived author: ZIC • Posted: 2023-01-14T15:21:22.716000+00:00
Original source
At the NPC, the button appeared to be pressed, but nothing happens, there are no errors either, the faction does not change
Archived author: Honey • Posted: 2023-01-14T15:22:48.009000+00:00
Original source
It says it changes faction *standings*
Archived author: Foe • Posted: 2023-01-14T15:22:58.131000+00:00
Original source
That function isn't persistent iirc
Archived author: Honey • Posted: 2023-01-14T15:23:07.517000+00:00
Original source
Not sure if it changes the actual faction. Haven't tried it.