• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved unknown event name error

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
Hello guys, my server is otx 2.52 (tfs 0.3 i think)
and i have this huge and terrible problem with daily mission npc
i beg for help plzzzz i tried but i can't figure to work this out

Also if i remove the tag script at the monster the error stop but the npc doesn't work properly

d8ab0e12e3e7dd11334bc767185eff20.png


i am basically using this guy Astra for making several npcs (daily quest killing, daily quest killing pr1, pr5, pr10, pr15 and pr20)
NPC - [FIXED] NPC with daily quests, fully configurable! by andu




i'll post what i have
creaturescripts.xml

LUA:
<event type="kill" name="Daily quests killing" event="script" value="dailyQuestsKilling.lua"/>
    <event type="kill" name="Daily quests killing pr1" event="script" value="dailyQuestsKillingpr1.lua"/>
    <event type="kill" name="Daily quests killing pr5" event="script" value="dailyQuestsKillingpr5.lua"/>
    <event type="kill" name="Daily quests killing pr10" event="script" value="dailyQuestsKillingpr10.lua"/>
    <event type="kill" name="Daily quests killing pr15" event="script" value="dailyQuestsKillingpr15.lua"/>
    <event type="kill" name="Daily quests killing pr20" event="script" value="dailyQuestsKillingpr20.lua"/>

login.lua

Code:
    registerCreatureEvent(cid, "Daily quests killing")
    registerCreatureEvent(cid, "Daily quests killing pr1")
    registerCreatureEvent(cid, "Daily quests killing pr5")
    registerCreatureEvent(cid, "Daily quests killing pr10")
    registerCreatureEvent(cid, "Daily quests killing pr15")
    registerCreatureEvent(cid, "Daily quests killing pr20")

monster dragon in daily quest killing event

LUA:
    registerCreatureEvent(cid, "Daily quests killing")
    registerCreatureEvent(cid, "Daily quests killing pr1")
    registerCreatureEvent(cid, "Daily quests killing pr5")
    registerCreatureEvent(cid, "Daily quests killing pr10")
    registerCreatureEvent(cid, "Daily quests killing pr15")
    registerCreatureEvent(cid, "Daily quests killing pr20")


and this is dailyQuestsKilling.lua and dailyQuestsKillingpr1.lua
LUA:
local mobsList = {
    ["dragon"] = {storage = 345673, raceName = "Dragons"}, -- storage have to be exacly the same as in your npc file!
    ["demon"] = {storage = 345674, raceName = "Demons"},
    ["goku"] = {storage = 345675, raceName = "Gokus"},
    ["ozaru"] = {storage = 345676, raceName = "ozarus"}
}

function onKill(cid, target, lastHit)
local mob = mobsList[getCreatureName(target):lower()]

if isPlayer(cid) then
    if mob then
    local check = getCreatureStorage(cid, mob.storage)
        if check >= 0 and check < 5000 then
            doPlayerSetStorageValue(cid, mob.storage, check + 1)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mob.raceName .. " killed: " .. (check + 1) .. ".")
        end
    end
end
return true
end

LUA:
local mobsList = {
    ["Lord of Fire"] = {storage = 345679, raceName = "Lord of Fire"}, -- storage have to be exacly the same as in your npc file!
    ["rosemarie"] = {storage = 345680, raceName = "rosemarie"},
    ["dark cucka"] = {storage = 345681, raceName = "dark cucka"},
    ["alien"] = {storage = 345682, raceName = "alien"},
    ["alien destructor"] = {storage = 345683, raceName = "alien destructor"}
}

function onKill(cid, target, lastHit)
local mob = mobsList[getCreatureName(target):lower()]

if isPlayer(cid) then
    if mob then
    local check = getCreatureStorage(cid, mob.storage)
        if check >= 0 and check < 5000 then
            doPlayerSetStorageValue(cid, mob.storage, check + 1)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mob.raceName .. " killed: " .. (check + 1) .. ".")
        end
    end
end
return true
end



plz guys someone help me fix this thing :(
 
Solution
X
i did check that from the beginning, i was very careful not to mess this up :/
Code:
-------Unknown event name - Daily Quest Killing pr10
registerCreatureEvent(cid, "Daily quests killing pr10")
---<event type="kill" name="Daily quests killing pr10" event="script" value="dailyQuestsKillingpr10.lua"/>

Line 1 = error
Line 2 = login.lua
Line 3 = creaturescripts.xml

Your error is telling you that your monsters tags are trying to find a creaturescript "name" which doesn't exist.

The tags in your monsters are incorrect compared to your login.lua and creaturescripts.xml

So either go through your monsters and redo your tags..

Or change login.lua and creaturescripts.xml to match the tags in your monsters.

:P
If scripts are ok then make sure that every letter is the same as in name of script etc. for example. quest -> quest not quest -> Quest
 
If scripts are ok then make sure that every letter is the same as in name of script etc. for example. quest -> quest not quest -> Quest
i did check that from the beginning, i was very careful not to mess this up :/
 
i did check that from the beginning, i was very careful not to mess this up :/
Code:
-------Unknown event name - Daily Quest Killing pr10
registerCreatureEvent(cid, "Daily quests killing pr10")
---<event type="kill" name="Daily quests killing pr10" event="script" value="dailyQuestsKillingpr10.lua"/>

Line 1 = error
Line 2 = login.lua
Line 3 = creaturescripts.xml

Your error is telling you that your monsters tags are trying to find a creaturescript "name" which doesn't exist.

The tags in your monsters are incorrect compared to your login.lua and creaturescripts.xml

So either go through your monsters and redo your tags..

Or change login.lua and creaturescripts.xml to match the tags in your monsters.

:P
 
Solution
Code:
-------Unknown event name - Daily Quest Killing pr10
registerCreatureEvent(cid, "Daily quests killing pr10")
---<event type="kill" name="Daily quests killing pr10" event="script" value="dailyQuestsKillingpr10.lua"/>

Line 1 = error
Line 2 = login.lua
Line 3 = creaturescripts.xml

Your error is telling you that your monsters tags are trying to find a creaturescript "name" which doesn't exist.

The tags in your monsters are incorrect compared to your login.lua and creaturescripts.xml

So either go through your monsters and redo your tags..

Or change login.lua and creaturescripts.xml to match the tags in your monsters.

:p

oohhh fool me! i missed that! thanks man i will try again, i hope it works now! :D thanks


ok still didn't work i just change the tags in dragon and got this
Code:
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing

6ac399f46e9736121752d2df6f2f7a22.png



:(
 
Last edited:
oohhh fool me! i missed that! thanks man i will try again, i hope it works now! :D thanks


ok still didn't work i just change the tags in dragon and got this
Code:
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing
[19/6/2017 11:33:51] [Warning - Monster::Monster] Unknown event name - Daily quest killing

6ac399f46e9736121752d2df6f2f7a22.png



:(
Daily quests killing
 
I dont know if will help, but you can try it:

  1. <event type="kill" name="Daily quests killing" script="dailyQuestsKilling.lua"/>
  2. <event type="kill" name="Daily quests killing pr1" script="dailyQuestsKillingpr1.lua"/>
  3. <event type="kill" name="Daily quests killing pr5" script="dailyQuestsKillingpr5.lua"/>
  4. <event type="kill" name="Daily quests killing pr10" script="dailyQuestsKillingpr10.lua"/>
  5. <event type="kill" name="Daily quests killing pr15" script="dailyQuestsKillingpr15.lua"/>
  6. <event type="kill" name="Daily quests killing pr20" script="dailyQuestsKillingpr20.lua"/>
Are you sure is using (tfs 0.3) ?
 
Daily quests killing
omg no errors now!! i hope this works thanks a lot man i didn't see the s, thanks!!
I dont know if will help, but you can try it:

  1. <event type="kill" name="Daily quests killing" script="dailyQuestsKilling.lua"/>
  2. <event type="kill" name="Daily quests killing pr1" script="dailyQuestsKillingpr1.lua"/>
  3. <event type="kill" name="Daily quests killing pr5" script="dailyQuestsKillingpr5.lua"/>
  4. <event type="kill" name="Daily quests killing pr10" script="dailyQuestsKillingpr10.lua"/>
  5. <event type="kill" name="Daily quests killing pr15" script="dailyQuestsKillingpr15.lua"/>
  6. <event type="kill" name="Daily quests killing pr20" script="dailyQuestsKillingpr20.lua"/>
Are you sure is using (tfs 0.3) ?
im not sure if it's tfs 0.3, im sure it's otx 2.52 and i'll try renaming properly first then if it doesn't work i'll try this thanks! =)
 
omg no errors now!! i hope this works thanks a lot man i didn't see the s, thanks!!

im not sure if it's tfs 0.3, im sure it's otx 2.52 and i'll try renaming properly first then if it doesn't work i'll try this thanks! =)

A tip is to always use lower cases and put them in one word ex (myScript.lua) that seems to always help me atleast.
We all have our own ways to "fix" things that are hard to remember or check.
And IMO avoid using spaces, either do as I said and put them all in one word or like this (my_script.lua)

Another thing is to always copy paste even if it would be quicker to write it's really easy to write the wrong character or as you did use a capital or not use a captial letter where you should.
 
Back
Top