[DiscordArchive] Anyone have any idea as to why this isn't working?
[DiscordArchive] Anyone have any idea as to why this isn't working?
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?
![[Image: image.png?ex=690bf918&is=690aa798&hm=a57...c79606aa1&]](https://cdn.discordapp.com/attachments/448835144564867094/1107478894120018011/image.png?ex=690bf918&is=690aa798&hm=a5775bd3b6688271acd497aa825a8b844228aa35b81a62bf4ce4885c79606aa1&)
Archived author: 0xCiBeR • Posted: 2023-05-15T01:25:44.374000+00:00
Original source
![[Image: image.png?ex=690bf918&is=690aa798&hm=a57...c79606aa1&]](https://cdn.discordapp.com/attachments/448835144564867094/1107478894120018011/image.png?ex=690bf918&is=690aa798&hm=a5775bd3b6688271acd497aa825a8b844228aa35b81a62bf4ce4885c79606aa1&)
espawnOrUnsummon( 0 )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()]
espawnOrUnsummon( 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```