Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Anyone have any idea as to why this isn't working?

[DiscordArchive] Anyone have any idea as to why this isn't working?

[DiscordArchive] Anyone have any idea as to why this isn't working?

rektbyfaith
Administrator
0
05-15-2023, 01:25 AM
#1
Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:42.311000+00:00
Original source

Anyone have any idea as to why this isn't working?
rektbyfaith
05-15-2023, 01:25 AM #1

Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:42.311000+00:00
Original source

Anyone have any idea as to why this isn't working?

rektbyfaith
Administrator
0
05-15-2023, 01:25 AM
#2
Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:44.374000+00:00
Original source


[Image: image.png?ex=690bf918&is=690aa798&hm=a57...c79606aa1&]
rektbyfaith
05-15-2023, 01:25 AM #2

Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:44.374000+00:00
Original source


[Image: image.png?ex=690bf918&is=690aa798&hm=a57...c79606aa1&]

rektbyfaith
Administrator
0
05-15-2023, 01:25 AM
#3
Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:55.217000+00:00
Original source

```lua
-- Entrenadores
entrenadores = {}
local function OnGossipSelect(event, player, object, sender, intid, code, menu_id)

local x = player:GetX()
local y = player:GetY()
local z = player:GetZ()
local o = player:GetO()
local randomX = math.random(1,3)
local randomY = math.random(1,3)
if intid == 0 then
player:SendShowBank(player)
elseif intid == 1 then
player:SendAuctionMenu( player )
elseif intid == 2 then
if entrenadores[player:GetName()] then
entrenadores[player:GetName()]Big GrinespawnOrUnsummon( 0 )
entrenadores[player:GetName()] = nil
end
entrenadores[player:GetName()] = player:SpawnCreature(5497, x + randomX, y + randomY, z+2, o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000)
entrenadores[player:GetName()]:MoveFollow( player, 1 )
end
player:GossipComplete()
end```
rektbyfaith
05-15-2023, 01:25 AM #3

Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:55.217000+00:00
Original source

```lua
-- Entrenadores
entrenadores = {}
local function OnGossipSelect(event, player, object, sender, intid, code, menu_id)

local x = player:GetX()
local y = player:GetY()
local z = player:GetZ()
local o = player:GetO()
local randomX = math.random(1,3)
local randomY = math.random(1,3)
if intid == 0 then
player:SendShowBank(player)
elseif intid == 1 then
player:SendAuctionMenu( player )
elseif intid == 2 then
if entrenadores[player:GetName()] then
entrenadores[player:GetName()]Big GrinespawnOrUnsummon( 0 )
entrenadores[player:GetName()] = nil
end
entrenadores[player:GetName()] = player:SpawnCreature(5497, x + randomX, y + randomY, z+2, o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000)
entrenadores[player:GetName()]:MoveFollow( player, 1 )
end
player:GossipComplete()
end```

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