I keep getting an error in my 'arcemu-world.exe' saying:
scripts\Evan.lua:28: attempt to call method 'SpawnAndEnterVehicle' <a nil value>
And now my .lua file (where it shows the error):
function Evan_Click(pUnit, event, player, id, intid, code)
if(intid == 17) then
player:GossipComplete()
pUnit:SpawnAndEnterVehicle(12367, 2000)
RegisterTimedEvent("EnterVehicle_Unit", 2000, 1, pUnit)
RegisterTimedEvent("EnterVehicle_Player", 3000, 1, player)
end
if(intid == 1) then
player:GossipComplete()
end
Any idea why it shows the this error, anyone?
I found the SpawnAndEnterVehicle thing on arcemu.org, so I'm assusing nothing is wrong with that.