Witam mam problem ze skryptem , otoz biore od npc taska , zabijam potwory (nic nie wyswietla ile zabilem ) i po konczeniu taska nie otrzymuje nagrody . Pomoglby mi ktos edytowac ten skrypt tak zeby wyswietlala sie liczba zabitych potworow oraz zebym dostawal nagrode? z gory dziekuje . Przepraszam za pomylke 8.60 tibia
[LUA]local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
function onCreatureAppear(cid)
npcHandlernCreatureAppear(cid)
end
function onCreatureDisappear(cid)
npcHandlernCreatureDisappear(cid)
end
function onCreatureSay(cid, type, msg)
npcHandlernCreatureSay(cid, type, msg)
end
function onThink()
npcHandlernThink()
end
function say(param)
npcHandler:say(param.text,param.cid)
end
function delayedSay(text, delay, cid)
if(not npcHandler:isFocused(cid)) then
return FALSE
else
local param = {cid = cid, text = text}
local delay = delay or 0
local cid = cid or 0
local nid = getNpcCid()
addEvent(say, delay, param)
end
end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
if msgcontains(msg, 'mission') then
npcHandler:say('If you\'ll be a serial murder, you must do many missions for me. Select oneself mission of {rotworms}, {vampire}, {necromancer}, {quara}, {lizard}, {dragon}, {bog raider}, {giant spider}, {dragon lord}, {juggernauts}, {frost dragon}, {hydra}, {nightmare}, {draken}, {behemoth}, {hellspawn}, {serpent}, {infernalist}, {phantasm}, {fury}, {dark torturer}, {hand of cursed fate}, {grim reaper}, {demon}, {hellhound}, {undead dragon}, {juggernaut}, {orshabaal} or {ferumbras}.', cid)
if getPlayerStorageValue(cid, 47666) == -1 then
setPlayerStorageValue(cid, 47666, 1)
end
talk_state = 0
elseif msgcontains(msg, 'juggernaut') or msgcontains(msg, 'juggernauts') then
if getPlayerStorageValue(cid,46020) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 111 juggernauts. Reward is {Piece of Massare\'s Shell} and {5,000,000 expirence}}.', cid)
setPlayerStorageValue(cid, 46020, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46020) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6540,1)
doPlayerAddExp(cid, 5000000)
setPlayerStorageValue(cid, 46020, 3)
talk_state = 0
end
elseif msgcontains(msg, 'dark torturer') or msgcontains(msg, 'dark torturers') then
if getPlayerStorageValue(cid,46021) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 300 dark torturers. Reward is {Mr. Punish\'s Handcuffs} and {3,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46021, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46021) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6537,1)
doPlayerAddExp(cid, 3500000)
setPlayerStorageValue(cid, 46021, 3)
talk_state = 0
end
elseif msgcontains(msg, 'bog raider') or msgcontains(msg, 'bog raiders') then
if getPlayerStorageValue(cid,46022) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 1111 bog riders. Reward is {Plasmother\'s Remains} and {2,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46022, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46022) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6535,1)
doPlayerAddExp(cid, 2500000)
setPlayerStorageValue(cid, 46022, 3)
talk_state = 0
end
elseif msgcontains(msg, 'undead dragon') or msgcontains(msg, 'undead dragons') then
if getPlayerStorageValue(cid,46023) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 500 undead dragons. Reward is {Dracola\'s Eye} and {3,800,000 expirence}.', cid)
setPlayerStorageValue(cid, 46023, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46023) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6546,1)
doPlayerAddExp(cid, 3800000)
setPlayerStorageValue(cid, 46023, 3)
talk_state = 0
end
elseif msgcontains(msg, 'vampire') or msgcontains(msg, 'vampires') then
if getPlayerStorageValue(cid,46024) == -1 then
npcHandler:say('If you kill 600 vampires Reward is {Stamine Doll} and {1,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46024, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46024) == 2 then
npcHandler:say('Great job! Here is your token.', cid)
doPlayerAddItem(cid,9019,1)
doPlayerAddExp(cid, 1500000)
setPlayerStorageValue(cid, 46024, 1)
setPlayerStorageValue(cid, 45024, 1)
talk_state = 0
end
elseif msgcontains(msg, 'hand of cursed fate') or msgcontains(msg, 'hand of cursed fates') then
if getPlayerStorageValue(cid,46026) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 300 hand of cursed fates. Reward is {Handmaiden\'s Protector} and {3,400,000 expirence}.', cid)
setPlayerStorageValue(cid, 46026, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46026) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6539,1)
doPlayerAddExp(cid, 3400000)
setPlayerStorageValue(cid, 46026, 3)
talk_state = 0
end
elseif msgcontains(msg, 'phantasm') or msgcontains(msg, 'phantasms') then
if getPlayerStorageValue(cid,46027) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 360 phantasms. Reward is {Countess Sorrow\'s Frozen Tear} and {2,200,000 expirence}.', cid)
setPlayerStorageValue(cid, 46027, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46027) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6536,1)
doPlayerAddExp(cid, 2500000)
setPlayerStorageValue(cid, 46027, 3)
talk_state = 0
end
elseif msgcontains(msg, 'infernalist') or msgcontains(msg, 'infernalists') then
if getPlayerStorageValue(cid,46028) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 400 inferlaists. Reward is {Imperor\'s Trident} and {2,100,000 expirence}.', cid)
setPlayerStorageValue(cid, 46028, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46028) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6534,1)
doPlayerAddExp(cid, 1500000)
setPlayerStorageValue(cid, 46028, 3)
talk_state = 0
end
elseif msgcontains(msg, 'serpent') or msgcontains(msg, 'serpents') then
if getPlayerStorageValue(cid,46029) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 400 serpents. Reward is {Sea Serpent Trophy}, {25 crystal coins} and {2,800,000 expirence}.', cid)
setPlayerStorageValue(cid, 46029, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46029) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,10529,1)
doPlayerAddExp(cid, 2800000)
doPlayerAddItem(cid,2160,25)
setPlayerStorageValue(cid, 46029, 3)
talk_state = 0
end
elseif msgcontains(msg, 'nightmare') or msgcontains(msg, 'nightmares') then
if getPlayerStorageValue(cid,46030) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 800 nightmares. Reward is {Bear}, {4,000,000 expirence} and {30 crystal coins}.', cid)
setPlayerStorageValue(cid, 46030, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46030) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,3954,1)
doPlayerAddExp(cid, 4000000)
doPlayerAddItem(cid,2160,30)
setPlayerStorageValue(cid, 46030, 3)
talk_state = 0
end
elseif msgcontains(msg, 'hellspawn') or msgcontains(msg, 'hellspawns') then
if getPlayerStorageValue(cid,46032) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 600 hellspawns. Reward is {Nose Ring}, {3,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46032, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46032) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,5804,1)
doPlayerAddExp(cid, 3500000)
setPlayerStorageValue(cid, 46032, 3)
talk_state = 0
end
elseif msgcontains(msg, 'necromancer') or msgcontains(msg, 'necromancers') then
if getPlayerStorageValue(cid,46033) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 500 necormancers. Reward is {Soul Stone} and {1,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46033, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46033) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,5809,1)
doPlayerAddExp(cid, 1500000)
setPlayerStorageValue(cid, 46033, 3)
talk_state = 0
end
elseif msgcontains(msg, 'quara') or msgcontains(msg, 'quara') then
if getPlayerStorageValue(cid,46034) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 400 quara. Reward is {Marlin Trophy}, {3,600,000 expirence} and {15 crystal coins}.', cid)
setPlayerStorageValue(cid, 46034, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46034) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7964,1)
doPlayerAddExp(cid, 3600000)
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid, 46034, 3)
talk_state = 0
end
elseif msgcontains(msg, 'dragon lord') or msgcontains(msg, 'dragon lords') then
if getPlayerStorageValue(cid,46036) == -1 then
npcHandler:say('You selected easy mission. Yours job rest at killing 1111 dragon lords. Reward is {Dragon Claw}, {3,800,000 expirence}.', cid)
setPlayerStorageValue(cid, 46036, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46036) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,5919,1)
doPlayerAddExp(cid, 3800000)
setPlayerStorageValue(cid, 46036, 3)
talk_state = 0
end
elseif msgcontains(msg, 'grim reaper') or msgcontains(msg, 'grim reapers') then
if getPlayerStorageValue(cid,46037) == -1 then
npcHandler:say('You selected very easy mission. Yours job rest at killing 600 grim reapers. Reward is {2,800,000 expirence} and {50 crystal coins}.', cid)
setPlayerStorageValue(cid, 46037, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46037) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2800000)
doPlayerAddItem(cid,2160,50)
setPlayerStorageValue(cid, 46037, 3)
talk_state = 0
end
elseif msgcontains(msg, 'fury') or msgcontains(msg, 'furys') then
if getPlayerStorageValue(cid,46038) == -1 then
npcHandler:say('You selected very easy mission. Yours job rest at killing 666 furys. Reward is {3,000,000 expirence} and {66 crystal coins}.', cid)
setPlayerStorageValue(cid, 46038, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46038) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 3000000)
doPlayerAddItem(cid,2160,66)
setPlayerStorageValue(cid, 46038, 3)
talk_state = 0
end
elseif msgcontains(msg, 'rotworm') or msgcontains(msg, 'rotworms') then
if getPlayerStorageValue(cid,46039) == -1 then
npcHandler:say('You selected very easy mission. Yours job rest at killing 100 rotworms. Reward is {300,000 expirence} and {8 crystal coins}.', cid)
setPlayerStorageValue(cid, 46039, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46039) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,2160,8)
doPlayerAddExp(cid, 300000)
setPlayerStorageValue(cid, 46039, 3)
talk_state = 0
end
elseif msgcontains(msg, 'behemoth') or msgcontains(msg, 'behemoths') then
if getPlayerStorageValue(cid,14251) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 400 behemoth. Reward is {behemoth trophy}, {2,990,000 expirence} and {25 crystal coins}.', cid)
setPlayerStorageValue(cid, 14251, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14251) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7396,1)
doPlayerAddExp(cid, 2990000)
doPlayerAddItem(cid,2160,25)
setPlayerStorageValue(cid, 14251, 3)
talk_state = 0
end
elseif msgcontains(msg, 'draken') or msgcontains(msg, 'drakens') then
if getPlayerStorageValue(cid,14253) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 800 drakens. Reward is {draken trophy}, {3,400,000 expirence} and {40 crystal coins}.', cid)
setPlayerStorageValue(cid, 14253, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14253) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,11315,1)
doPlayerAddItem(cid,2160,40)
doPlayerAddExp(cid, 3400000)
setPlayerStorageValue(cid, 14253, 3)
talk_state = 0
end
elseif msgcontains(msg, 'lizard') or msgcontains(msg, 'lizards') then
if getPlayerStorageValue(cid,14255) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 600 lizards. Reward is {lizard trophy}, {2,600,000 expirence} and {30 crystal coins}.', cid)
setPlayerStorageValue(cid, 14255, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14255) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,11336,1)
doPlayerAddItem(cid,2160,30)
doPlayerAddExp(cid, 2600000)
setPlayerStorageValue(cid, 14255, 3)
talk_state = 0
end
elseif msgcontains(msg, 'giant spider') or msgcontains(msg, 'giant spiders') then
if getPlayerStorageValue(cid,14257) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 500 giant spiders. Reward is {spiderwebs}, {2,100,000 expirence} and {15 crystal coins}.', cid)
setPlayerStorageValue(cid, 14257, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14257) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,8860,1)
doPlayerAddItem(cid,2160,15)
doPlayerAddExp(cid, 2100000)
setPlayerStorageValue(cid, 14257, 3)
talk_state = 0
end
elseif msgcontains(msg, 'hellhound') or msgcontains(msg, 'hellhounds') then
if getPlayerStorageValue(cid,14259) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 500 hellhounds. Reward is {3,200,000 expirence} and {40 crystal coins}.', cid)
setPlayerStorageValue(cid, 14259, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14259) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,2160,40)
doPlayerAddExp(cid, 3200000)
setPlayerStorageValue(cid, 14259, 3)
talk_state = 0
end
elseif msgcontains(msg, 'ferumbras') then
if getPlayerStorageValue(cid,14261) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 1 ferumbras. Reward is {fireflanz}, {400,000 expirence} and {10 crystal coins}.', cid)
setPlayerStorageValue(cid, 14261, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14261) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7959,1)
doPlayerAddExp(cid, 400000)
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid, 14261, 3)
talk_state = 0
end
elseif msgcontains(msg, 'frost dragon') or msgcontains(msg, 'frost dragons') then
if getPlayerStorageValue(cid,14263) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 1111 frost dragons. Reward is {bonebreaker}, {3,800,000 expirence} and {50 crystal coins}.', cid)
setPlayerStorageValue(cid, 14263, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14263) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7428,1)
doPlayerAddExp(cid, 3800000)
doPlayerAddItem(cid,2160,50)
setPlayerStorageValue(cid, 14263, 3)
talk_state = 0
end
elseif msgcontains(msg, 'demon') or msgcontains(msg, 'demons') then
if getPlayerStorageValue(cid,14273) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 666 demons. Reward is {2,666,000 expirence} and {80 crystal coins}.', cid)
setPlayerStorageValue(cid, 14273, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14273) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2666000)
doPlayerAddItem(cid,2160,80)
setPlayerStorageValue(cid, 14273, 3)
talk_state = 0
end
elseif msgcontains(msg, 'hydra') or msgcontains(msg, 'hydras') then
if getPlayerStorageValue(cid,14275) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 800 hydras. Reward is {2,600,000 expirence} and {100 crystal coins}.', cid)
setPlayerStorageValue(cid, 14275, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14275) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2600000)
doPlayerAddItem(cid,2160,100)
setPlayerStorageValue(cid, 14275, 3)
talk_state = 0
end
elseif msgcontains(msg, 'dragon') or msgcontains(msg, 'dragons') then
if getPlayerStorageValue(cid,14277) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 1200 dragons. Reward is {Dragon Robe}, {1,200,000 expirence} and {25 crystal coins}.', cid)
setPlayerStorageValue(cid, 14277, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14277) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2666000)
doPlayerAddItem(cid,2160,25)
doPlayerAddItem(cid,8867,1)
setPlayerStorageValue(cid, 14277, 3)
talk_state = 0
end
elseif msgcontains(msg, 'orshabaal') then
if getPlayerStorageValue(cid,14279) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 10 orshabaals. Reward is {500,000 expirence} and {15 crystal coins}.', cid)
setPlayerStorageValue(cid, 14279, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14279) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 500000)
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid, 14279, 3)
talk_state = 0
end
elseif msgcontains(msg, 'no') then
npcHandler:say('Ok, then not.', cid)
talk_state = 0
end
return 1
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
[/LUA]
[LUA]local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
function onCreatureAppear(cid)
npcHandlernCreatureAppear(cid)
end
function onCreatureDisappear(cid)
npcHandlernCreatureDisappear(cid)
end
function onCreatureSay(cid, type, msg)
npcHandlernCreatureSay(cid, type, msg)
end
function onThink()
npcHandlernThink()
end
function say(param)
npcHandler:say(param.text,param.cid)
end
function delayedSay(text, delay, cid)
if(not npcHandler:isFocused(cid)) then
return FALSE
else
local param = {cid = cid, text = text}
local delay = delay or 0
local cid = cid or 0
local nid = getNpcCid()
addEvent(say, delay, param)
end
end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
if msgcontains(msg, 'mission') then
npcHandler:say('If you\'ll be a serial murder, you must do many missions for me. Select oneself mission of {rotworms}, {vampire}, {necromancer}, {quara}, {lizard}, {dragon}, {bog raider}, {giant spider}, {dragon lord}, {juggernauts}, {frost dragon}, {hydra}, {nightmare}, {draken}, {behemoth}, {hellspawn}, {serpent}, {infernalist}, {phantasm}, {fury}, {dark torturer}, {hand of cursed fate}, {grim reaper}, {demon}, {hellhound}, {undead dragon}, {juggernaut}, {orshabaal} or {ferumbras}.', cid)
if getPlayerStorageValue(cid, 47666) == -1 then
setPlayerStorageValue(cid, 47666, 1)
end
talk_state = 0
elseif msgcontains(msg, 'juggernaut') or msgcontains(msg, 'juggernauts') then
if getPlayerStorageValue(cid,46020) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 111 juggernauts. Reward is {Piece of Massare\'s Shell} and {5,000,000 expirence}}.', cid)
setPlayerStorageValue(cid, 46020, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46020) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6540,1)
doPlayerAddExp(cid, 5000000)
setPlayerStorageValue(cid, 46020, 3)
talk_state = 0
end
elseif msgcontains(msg, 'dark torturer') or msgcontains(msg, 'dark torturers') then
if getPlayerStorageValue(cid,46021) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 300 dark torturers. Reward is {Mr. Punish\'s Handcuffs} and {3,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46021, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46021) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6537,1)
doPlayerAddExp(cid, 3500000)
setPlayerStorageValue(cid, 46021, 3)
talk_state = 0
end
elseif msgcontains(msg, 'bog raider') or msgcontains(msg, 'bog raiders') then
if getPlayerStorageValue(cid,46022) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 1111 bog riders. Reward is {Plasmother\'s Remains} and {2,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46022, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46022) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6535,1)
doPlayerAddExp(cid, 2500000)
setPlayerStorageValue(cid, 46022, 3)
talk_state = 0
end
elseif msgcontains(msg, 'undead dragon') or msgcontains(msg, 'undead dragons') then
if getPlayerStorageValue(cid,46023) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 500 undead dragons. Reward is {Dracola\'s Eye} and {3,800,000 expirence}.', cid)
setPlayerStorageValue(cid, 46023, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46023) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6546,1)
doPlayerAddExp(cid, 3800000)
setPlayerStorageValue(cid, 46023, 3)
talk_state = 0
end
elseif msgcontains(msg, 'vampire') or msgcontains(msg, 'vampires') then
if getPlayerStorageValue(cid,46024) == -1 then
npcHandler:say('If you kill 600 vampires Reward is {Stamine Doll} and {1,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46024, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46024) == 2 then
npcHandler:say('Great job! Here is your token.', cid)
doPlayerAddItem(cid,9019,1)
doPlayerAddExp(cid, 1500000)
setPlayerStorageValue(cid, 46024, 1)
setPlayerStorageValue(cid, 45024, 1)
talk_state = 0
end
elseif msgcontains(msg, 'hand of cursed fate') or msgcontains(msg, 'hand of cursed fates') then
if getPlayerStorageValue(cid,46026) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 300 hand of cursed fates. Reward is {Handmaiden\'s Protector} and {3,400,000 expirence}.', cid)
setPlayerStorageValue(cid, 46026, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46026) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6539,1)
doPlayerAddExp(cid, 3400000)
setPlayerStorageValue(cid, 46026, 3)
talk_state = 0
end
elseif msgcontains(msg, 'phantasm') or msgcontains(msg, 'phantasms') then
if getPlayerStorageValue(cid,46027) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 360 phantasms. Reward is {Countess Sorrow\'s Frozen Tear} and {2,200,000 expirence}.', cid)
setPlayerStorageValue(cid, 46027, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46027) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6536,1)
doPlayerAddExp(cid, 2500000)
setPlayerStorageValue(cid, 46027, 3)
talk_state = 0
end
elseif msgcontains(msg, 'infernalist') or msgcontains(msg, 'infernalists') then
if getPlayerStorageValue(cid,46028) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 400 inferlaists. Reward is {Imperor\'s Trident} and {2,100,000 expirence}.', cid)
setPlayerStorageValue(cid, 46028, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46028) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,6534,1)
doPlayerAddExp(cid, 1500000)
setPlayerStorageValue(cid, 46028, 3)
talk_state = 0
end
elseif msgcontains(msg, 'serpent') or msgcontains(msg, 'serpents') then
if getPlayerStorageValue(cid,46029) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 400 serpents. Reward is {Sea Serpent Trophy}, {25 crystal coins} and {2,800,000 expirence}.', cid)
setPlayerStorageValue(cid, 46029, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46029) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,10529,1)
doPlayerAddExp(cid, 2800000)
doPlayerAddItem(cid,2160,25)
setPlayerStorageValue(cid, 46029, 3)
talk_state = 0
end
elseif msgcontains(msg, 'nightmare') or msgcontains(msg, 'nightmares') then
if getPlayerStorageValue(cid,46030) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 800 nightmares. Reward is {Bear}, {4,000,000 expirence} and {30 crystal coins}.', cid)
setPlayerStorageValue(cid, 46030, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46030) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,3954,1)
doPlayerAddExp(cid, 4000000)
doPlayerAddItem(cid,2160,30)
setPlayerStorageValue(cid, 46030, 3)
talk_state = 0
end
elseif msgcontains(msg, 'hellspawn') or msgcontains(msg, 'hellspawns') then
if getPlayerStorageValue(cid,46032) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 600 hellspawns. Reward is {Nose Ring}, {3,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46032, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46032) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,5804,1)
doPlayerAddExp(cid, 3500000)
setPlayerStorageValue(cid, 46032, 3)
talk_state = 0
end
elseif msgcontains(msg, 'necromancer') or msgcontains(msg, 'necromancers') then
if getPlayerStorageValue(cid,46033) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 500 necormancers. Reward is {Soul Stone} and {1,500,000 expirence}.', cid)
setPlayerStorageValue(cid, 46033, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46033) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,5809,1)
doPlayerAddExp(cid, 1500000)
setPlayerStorageValue(cid, 46033, 3)
talk_state = 0
end
elseif msgcontains(msg, 'quara') or msgcontains(msg, 'quara') then
if getPlayerStorageValue(cid,46034) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 400 quara. Reward is {Marlin Trophy}, {3,600,000 expirence} and {15 crystal coins}.', cid)
setPlayerStorageValue(cid, 46034, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46034) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7964,1)
doPlayerAddExp(cid, 3600000)
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid, 46034, 3)
talk_state = 0
end
elseif msgcontains(msg, 'dragon lord') or msgcontains(msg, 'dragon lords') then
if getPlayerStorageValue(cid,46036) == -1 then
npcHandler:say('You selected easy mission. Yours job rest at killing 1111 dragon lords. Reward is {Dragon Claw}, {3,800,000 expirence}.', cid)
setPlayerStorageValue(cid, 46036, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46036) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,5919,1)
doPlayerAddExp(cid, 3800000)
setPlayerStorageValue(cid, 46036, 3)
talk_state = 0
end
elseif msgcontains(msg, 'grim reaper') or msgcontains(msg, 'grim reapers') then
if getPlayerStorageValue(cid,46037) == -1 then
npcHandler:say('You selected very easy mission. Yours job rest at killing 600 grim reapers. Reward is {2,800,000 expirence} and {50 crystal coins}.', cid)
setPlayerStorageValue(cid, 46037, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46037) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2800000)
doPlayerAddItem(cid,2160,50)
setPlayerStorageValue(cid, 46037, 3)
talk_state = 0
end
elseif msgcontains(msg, 'fury') or msgcontains(msg, 'furys') then
if getPlayerStorageValue(cid,46038) == -1 then
npcHandler:say('You selected very easy mission. Yours job rest at killing 666 furys. Reward is {3,000,000 expirence} and {66 crystal coins}.', cid)
setPlayerStorageValue(cid, 46038, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46038) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 3000000)
doPlayerAddItem(cid,2160,66)
setPlayerStorageValue(cid, 46038, 3)
talk_state = 0
end
elseif msgcontains(msg, 'rotworm') or msgcontains(msg, 'rotworms') then
if getPlayerStorageValue(cid,46039) == -1 then
npcHandler:say('You selected very easy mission. Yours job rest at killing 100 rotworms. Reward is {300,000 expirence} and {8 crystal coins}.', cid)
setPlayerStorageValue(cid, 46039, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,46039) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,2160,8)
doPlayerAddExp(cid, 300000)
setPlayerStorageValue(cid, 46039, 3)
talk_state = 0
end
elseif msgcontains(msg, 'behemoth') or msgcontains(msg, 'behemoths') then
if getPlayerStorageValue(cid,14251) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 400 behemoth. Reward is {behemoth trophy}, {2,990,000 expirence} and {25 crystal coins}.', cid)
setPlayerStorageValue(cid, 14251, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14251) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7396,1)
doPlayerAddExp(cid, 2990000)
doPlayerAddItem(cid,2160,25)
setPlayerStorageValue(cid, 14251, 3)
talk_state = 0
end
elseif msgcontains(msg, 'draken') or msgcontains(msg, 'drakens') then
if getPlayerStorageValue(cid,14253) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 800 drakens. Reward is {draken trophy}, {3,400,000 expirence} and {40 crystal coins}.', cid)
setPlayerStorageValue(cid, 14253, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14253) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,11315,1)
doPlayerAddItem(cid,2160,40)
doPlayerAddExp(cid, 3400000)
setPlayerStorageValue(cid, 14253, 3)
talk_state = 0
end
elseif msgcontains(msg, 'lizard') or msgcontains(msg, 'lizards') then
if getPlayerStorageValue(cid,14255) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 600 lizards. Reward is {lizard trophy}, {2,600,000 expirence} and {30 crystal coins}.', cid)
setPlayerStorageValue(cid, 14255, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14255) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,11336,1)
doPlayerAddItem(cid,2160,30)
doPlayerAddExp(cid, 2600000)
setPlayerStorageValue(cid, 14255, 3)
talk_state = 0
end
elseif msgcontains(msg, 'giant spider') or msgcontains(msg, 'giant spiders') then
if getPlayerStorageValue(cid,14257) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 500 giant spiders. Reward is {spiderwebs}, {2,100,000 expirence} and {15 crystal coins}.', cid)
setPlayerStorageValue(cid, 14257, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14257) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,8860,1)
doPlayerAddItem(cid,2160,15)
doPlayerAddExp(cid, 2100000)
setPlayerStorageValue(cid, 14257, 3)
talk_state = 0
end
elseif msgcontains(msg, 'hellhound') or msgcontains(msg, 'hellhounds') then
if getPlayerStorageValue(cid,14259) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 500 hellhounds. Reward is {3,200,000 expirence} and {40 crystal coins}.', cid)
setPlayerStorageValue(cid, 14259, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14259) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,2160,40)
doPlayerAddExp(cid, 3200000)
setPlayerStorageValue(cid, 14259, 3)
talk_state = 0
end
elseif msgcontains(msg, 'ferumbras') then
if getPlayerStorageValue(cid,14261) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 1 ferumbras. Reward is {fireflanz}, {400,000 expirence} and {10 crystal coins}.', cid)
setPlayerStorageValue(cid, 14261, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14261) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7959,1)
doPlayerAddExp(cid, 400000)
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid, 14261, 3)
talk_state = 0
end
elseif msgcontains(msg, 'frost dragon') or msgcontains(msg, 'frost dragons') then
if getPlayerStorageValue(cid,14263) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 1111 frost dragons. Reward is {bonebreaker}, {3,800,000 expirence} and {50 crystal coins}.', cid)
setPlayerStorageValue(cid, 14263, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14263) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddItem(cid,7428,1)
doPlayerAddExp(cid, 3800000)
doPlayerAddItem(cid,2160,50)
setPlayerStorageValue(cid, 14263, 3)
talk_state = 0
end
elseif msgcontains(msg, 'demon') or msgcontains(msg, 'demons') then
if getPlayerStorageValue(cid,14273) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 666 demons. Reward is {2,666,000 expirence} and {80 crystal coins}.', cid)
setPlayerStorageValue(cid, 14273, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14273) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2666000)
doPlayerAddItem(cid,2160,80)
setPlayerStorageValue(cid, 14273, 3)
talk_state = 0
end
elseif msgcontains(msg, 'hydra') or msgcontains(msg, 'hydras') then
if getPlayerStorageValue(cid,14275) == -1 then
npcHandler:say('You selected hard mission. Yours job rest at killing 800 hydras. Reward is {2,600,000 expirence} and {100 crystal coins}.', cid)
setPlayerStorageValue(cid, 14275, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14275) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2600000)
doPlayerAddItem(cid,2160,100)
setPlayerStorageValue(cid, 14275, 3)
talk_state = 0
end
elseif msgcontains(msg, 'dragon') or msgcontains(msg, 'dragons') then
if getPlayerStorageValue(cid,14277) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 1200 dragons. Reward is {Dragon Robe}, {1,200,000 expirence} and {25 crystal coins}.', cid)
setPlayerStorageValue(cid, 14277, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14277) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 2666000)
doPlayerAddItem(cid,2160,25)
doPlayerAddItem(cid,8867,1)
setPlayerStorageValue(cid, 14277, 3)
talk_state = 0
end
elseif msgcontains(msg, 'orshabaal') then
if getPlayerStorageValue(cid,14279) == -1 then
npcHandler:say('You selected very hard mission. Yours job rest at killing 10 orshabaals. Reward is {500,000 expirence} and {15 crystal coins}.', cid)
setPlayerStorageValue(cid, 14279, 1)
talk_state = 0
elseif getPlayerStorageValue(cid,14279) == 2 then
npcHandler:say('Great job! Here is your reward.', cid)
doPlayerAddExp(cid, 500000)
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid, 14279, 3)
talk_state = 0
end
elseif msgcontains(msg, 'no') then
npcHandler:say('Ok, then not.', cid)
talk_state = 0
end
return 1
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
[/LUA]