kyoushirou
I like trains
- Joined
- Apr 29, 2009
- Messages
- 224
- Reaction score
- 59
Getting the following error every time a globalevent loads:
Here's the script:
Trying to find what causes the error but not finding anything.
Code:
[Error - GlobalEvents::think] Failed to execute event: NPCTalk
Here's the script:
Code:
local ZornLines = {
'Hmm.. If I cast this spell and then.. <mumbles>',
'Perhaps the essence.. <mumbles>',
'I knew it! Thats how.. <mumbles>'
}
local HubertLines = {
'Fresh fruit!',
'Fruit straight from the jungle! Right here!'
}
local LuciusLines = {
'Arrow to the god d@m# knee...',
'I used to be an adventurer like you!'
}
local NimeaLines = {
'<grmbl> I hate spiders.',
'Now where did I put that book on the ancient tombs?'
}
local ZealoLines = {
'Get your map marks here!',
'I\'ll mark your map for free!'
}
local ZannLines = {
'Help me cleanse the Crypts!',
'Help me sanctify any undead creature products. I\'ll trade you for them!'
}
function onThink(interval)
-- Zorn
local ZornLine = ZornLines[math.random(#ZornLines)]
local ZornID = Npc("Archmage Zorn")
ZornID:say(ZornLine, TALKTYPE_SAY)
-- Hubert
local HubertLine = HubertLines[math.random(#HubertLines)]
local HubertID = Npc("Hubert")
HubertID:say(HubertLine, TALKTYPE_SAY)
-- Lucius
local LuciusLine = LuciusLines[math.random(#LuciusLines)]
local LuciusID = Npc("Lucius")
LuciusID:say(LuciusLine, TALKTYPE_SAY)
local NimeaLine = NimeaLines[math.random(#NimeaLines)]
local NimeaID = Npc("Nimea")
NimeaID:say(NimeaLine, TALKTYPE_SAY)
local ZealoLine = ZealoLines[math.random(#ZealoLines)]
local ZealoID = Npc("Guide Zealo")
ZealoID:say(ZealoLine, TALKTYPE_SAY)
local ZannLine = ZannLines[math.random(#ZannLines)]
local ZannID = Npc("Zann")
ZannID:say(ZannLine, TALKTYPE_SAY)
end
Trying to find what causes the error but not finding anything.