Animera
* * * * *
whats wrong with this?
PHP:
[18/02/2010 23:01:28] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/frieza.lua
[18/02/2010 23:01:28] data/npc/scripts/frieza.lua:19: unexpected symbol near 'if'
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
npcHandler:addModule(FocusModule:new())
if(msgcontains(msg, 'problems') or msgcontains(msg, 'mission')) then
selfSay('Goku defeated me please take revenge for me.', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'goku') and talkState[talkUser] == 1) then
selfSay('Goku is east of here please defeat him! Just open the door.', cid)
setPlayerStorageValue(cid, 30000, 1)
talkState[talkUser] = 2
elseif(msgcontains(msg, 'revenged') and if setPlayerStorageValue(cid, 40000, 16) and talkState[talkUser] == 2)then
selfSay('Thanks a lot now i can continue take over universe, here the supernova technique have fun.', cid)
doPlayerLearnInstantSpell(cid, supernova)
talkState[talkUser] = 3
else
selfSay('What are you lying to me, you monkey!.', cid)
talkState[talkUser] = 4
end
Last edited: