Hi, i was wondering if anyone knew of a lua script that lets you spawn an npc. I basically want a player to be able to 'buy' an npc. +Rep for help
Thanks for any help,
Mackio
Hi, i was wondering if anyone knew of a lua script that lets you spawn an npc. I basically want a player to be able to 'buy' an npc. +Rep for help
Thanks for any help,
Mackio
if (intid == XXX) then
local x =player:GetX ()
local y =player:GetY ()
local z =player:GetZ ()
local o =player:GetO ()
player:SpawnCreature (XXXXX, x, y, z, o, 35, 70000) <-----35 is fraction which is friendly to everyone
player:GossipComplete()
end
thanks very much edded+rep