Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Hi ZIC, please post a link to the whole script?

[DiscordArchive] Hi ZIC, please post a link to the whole script?

[DiscordArchive] Hi ZIC, please post a link to the whole script?

rektbyfaith
Administrator
0
01-14-2023, 02:19 PM
#1
Archived author: Honey • Posted: 2023-01-14T14:19:50.578000+00:00
Original source

Hi ZIC, please post a link to the whole script?
rektbyfaith
01-14-2023, 02:19 PM #1

Archived author: Honey • Posted: 2023-01-14T14:19:50.578000+00:00
Original source

Hi ZIC, please post a link to the whole script?

rektbyfaith
Administrator
0
01-14-2023, 02:23 PM
#2
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
rektbyfaith
01-14-2023, 02:23 PM #2

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

rektbyfaith
Administrator
0
01-14-2023, 02:28 PM
#3
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
rektbyfaith
01-14-2023, 02:28 PM #3

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

rektbyfaith
Administrator
0
01-14-2023, 03:20 PM
#4
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)
rektbyfaith
01-14-2023, 03:20 PM #4

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)

rektbyfaith
Administrator
0
01-14-2023, 03:20 PM
#5
Archived author: ZIC • Posted: 2023-01-14T15:20:43.805000+00:00
Original source

<@595620700706832414>
rektbyfaith
01-14-2023, 03:20 PM #5

Archived author: ZIC • Posted: 2023-01-14T15:20:43.805000+00:00
Original source

<@595620700706832414>

rektbyfaith
Administrator
0
01-14-2023, 03:21 PM
#6
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
rektbyfaith
01-14-2023, 03:21 PM #6

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

rektbyfaith
Administrator
0
01-14-2023, 03:22 PM
#7
Archived author: Honey • Posted: 2023-01-14T15:22:48.009000+00:00
Original source

It says it changes faction *standings*
rektbyfaith
01-14-2023, 03:22 PM #7

Archived author: Honey • Posted: 2023-01-14T15:22:48.009000+00:00
Original source

It says it changes faction *standings*

rektbyfaith
Administrator
0
01-14-2023, 03:22 PM
#8
Archived author: Foe • Posted: 2023-01-14T15:22:58.131000+00:00
Original source

That function isn't persistent iirc
rektbyfaith
01-14-2023, 03:22 PM #8

Archived author: Foe • Posted: 2023-01-14T15:22:58.131000+00:00
Original source

That function isn't persistent iirc

rektbyfaith
Administrator
0
01-14-2023, 03:23 PM
#9
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.
rektbyfaith
01-14-2023, 03:23 PM #9

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)