• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

PANIC: unprotected error in call to Lua API (bad argument #1 (function expected, got nil))

Status
Not open for further replies.

Xaver

Respected Member
PANIC: unprotected error in call to Lua API (bad argument #1 (function expected,
got nil))

i´m find this problem

what is dat ??
 

Xaver

Respected Member
ok think I found script where it could be

if I script this out then take no crash

where can be error?

Code:
-- request by Vitrex
-- Script by Rochet2 of EmuDevs
-- updated by slp13at420 of EmuDevs
-- drunken slurred outbursts by Bender
local npcid = 500017 -- 10000
local delay = 1*60*12000-- 60 seconds
local cycles = 1
local ANN = {};
-- {Statement, stated} statement in quotes "blah blah", stated // say = 0 // yell = 1
ANN[npcid] = {
	[1] = {"Hallo ich Verkaufe sachen die ihr mit einem Produkt Key bekommen könnt...", 0},
	[2] = {"Bei intresse meldet euch an unseren Entwickler und Inhaber Xaver..", 0},
	[3] = {"Diese sachen erhaltet ihr nirgend wo sonst !!", 1},
	[4] = {"Einmalige chance und nur für hilfsbereite Spiler die den Server unterstüzen..", 1},
		};
local function Drop_Event_On_Death(eventid, creature, killer)
ANN[creature:GetGUIDLow()] = nil;
creature:RemoveEvents()
end
RegisterCreatureEvent(npcid, 4, Drop_Event_On_Death)
local function TimedSay(eventId, delay, repeats, creature)
ANN[creature:GetGUIDLow()] = nil;
yell = math.random(1, #ANN[npcid])
if(ANN[npcid][yell][2] == 0)then
creature:SendUnitSay(ANN[npcid][yell][1], 0)
creature:CastSpell(creature, 58837, true)
else
creature:SendUnitYell(ANN[npcid][yell][1], 0)
creature:CastSpell(creature, 58837, true)
end
creature:RemoveEvents()
creature:RegisterEvent(TimedSay, delay, cycles) -- Constant
ANN[creature:GetGUIDLow()] = {reset = 1,}; -- Constant
end
local function OnMotion(event, creature, unit)
if(unit:GetObjectType()=="Creature")then
if(ANN[creature:GetGUIDLow()]==nil)then
ANN[creature:GetGUIDLow()] = {reset = 1,};
creature:RegisterEvent(TimedSay, delay, cycles)
else
end
else
end
end
RegisterCreatureEvent(npcid, 27, OnMotion)


pls help
 
Last edited by a moderator:

Xaver

Respected Member
eluna log problem

i have one problem

my core create no eluna log can help this problem or eluna script for this ?
 

Rochet2

Moderator / Eluna Dev
Could you compile with debug and get a crash log?
It is hard to tell what would cause it just by having an error with no indication where it happened and with the script without being able to reproduce.
 

Tommy

Founder
i have one problem

my core create no eluna log can help this problem or eluna script for this ?

~ Merged threads. Don't create a new thread regarding a question or other relevant actions towards a thread you already have opened. Just reply back to your opened thread...
 
Last edited:

Xaver

Respected Member
server crash wen im reload scripts (reload eluna) in 5 min time also i´m reload and 5 min later crash

im post today the crash dumps.
 

Xaver

Respected Member
xCVC5Kl.png


This error comme when panic error in console

when klick ignore or ready crash server

crash data:


Download Crash Dumps , dmp and text dump
 
Last edited by a moderator:

Rochet2

Moderator / Eluna Dev
The crash seems to be from the timed event system we had earlier.
The crashes you are having have been fixed over a month or so, however it seems that you are using some other core, older core.

You should update your eluna, however Im unsure if that is a private core and if you / the owner knows how to update to the new system.
 
Last edited:
Status
Not open for further replies.
Top