Darkhaos
(:
Lua:
[1] = {questStarted = 1512, questStorage = 65002, killsRequired = 300, raceName = "Rotworms", rewards = {{enable = true, type = "exp", values = 1000}, {enable = true, type = "item", values = {2157, 10}}}},
[1] = {questStarted = 1512, questStorage = 65002, killsRequired = 300, raceName = "Rotworms", rewards = {{enable = true, type = "exp", values = 1000}, {enable = true, type = "item", values = {2157, 10}}}},
The following errors occurred with your submission
Darkhaos has exceeded their stored private messages quota and cannot accept further messages until they clear some space.
Hey For some odd reason I'm reading your Killing in the name of quest script, I would enjoy using it for my server but for some odd reason I don't have "Data/Lib/Actions" I've had this issue with my Offline train too, should I just add the folder? or does it go into Data/Actions/Lib?
Sorry for the noob question.
local tasks =
{
[1] = {questStarted = 1522, questStorage = 65012, killsRequired = 130, raceName = "Hellspawns", rewards = {{enable = true, type = "exp", values = 2000100}, {enable = true, type = "item", values = 7730,1}}},
[2] = {questStarted = 1523, questStorage = 65013, killsRequired = 100, raceName = "Heros", rewards = {{enable = true, type = "exp", values = 1500000}, {enable = true, type = "item", values = 2160,30}, {enable = true, type = "item", values = 5911,100}}},
[3] = {questStarted = 1524, questStorage = 65014, killsRequired = 700, raceName = "Undead Dragons", rewards = {{enable = true, type = "exp", values = 8500000}, {enable = true, type = "item", values = 2160,75}, {enable = true, type = "item", values = 6433,1}}},
[4] = {questStarted = 1525, questStorage = 65015, killsRequired = 70, raceName = "Ghastly Dragons", rewards = {{enable = true, type = "exp", values = 600000}, {enable = true, type = "item", values = 11296,1}}},
[5] = {questStarted = 1526, questStorage = 65016, killsRequired = 500, raceName = "Draken Abominations", rewards = {{enable = true, type = "exp", values = 800000}, {enable = true, type = "item", values = 8903,1}, {enable = true, type = "points", values = 2}}},
[6] = {questStarted = 1527, questStorage = 65017, killsRequired = 500, raceName = "Giant Spiders", rewards = {{enable = true, type = "exp", values = 5000}, {enable = true, type = "item", values = 5879,100}, {enable = true, type = "points", values = 2}}},
[7] = {questStarted = 1528, questStorage = 65018, killsRequired = 6000, raceName = "Hydras", rewards = {{enable = true, type = "exp", values = 5550000}, {enable = true, type = "item", values = 2469,1}}},
[8] = {questStarted = 1529, questStorage = 65019, killsRequired = 900, raceName = "Medusas", rewards = {{enable = true, type = "exp", values = 5550000}, {enable = true, type = "item", values = 8880,1}}},
[9] = {questStarted = 1530, questStorage = 65020, killsRequired = 2000, raceName = "Behemoths", rewards = {{enable = true, type = "exp", values = 3605100}, {enable = true, type = "item", values = 4}}},
[10] = {questStarted = 1531, questStorage = 65021, killsRequired = 900, raceName = "Serpents Spawn", rewards = {{enable = true, type = "exp", values = 7605100}, {enable = true, type = "item", values = 2160,10}}},
[11] = {questStarted = 1532, questStorage = 65022, killsRequired = 500, raceName = "Quara Predator Scouts", rewards = {{enable = true, type = "exp", values = 1000000}, {enable = true, type = "money", values = 50000}}},
[12] = {questStarted = 1533, questStorage = 65023, killsRequired = 500, raceName = "Bog Raiders", rewards = {{enable = true, type = "exp", values = 1000000}, {enable = true, type = "money", values = 50000}, {enable = true, type = "item", values = 2141,1}}},
[13] = {questStarted = 1534, questStorage = 65024, killsRequired = 1000, raceName = "Wyrms", rewards = {{enable = true, type = "exp", values = 3000000}, {enable = true, type = "item", values = 8908,1}, {enable = true, type = "item", values = 2508,1}}},
[14] = {questStarted = 1535, questStorage = 65025, killsRequired = 1000, raceName = "Grim Reapers", rewards = {{enable = true, type = "exp", values = 8685450}, {enable = true, type = "item", values = 6300,1}}},
[15] = {questStarted = 1536, questStorage = 65026, killsRequired = 1500, raceName = "Dragons", rewards = {{enable = true, type = "exp", values = 1070100}, {enable = true, type = "item", values = 7708,1}}},
[16] = {questStarted = 1537, questStorage = 65027, killsRequired = 2000, raceName = "Dragon Lords", rewards = {{enable = true, type = "exp", values = 3605100}, {enable = true, type = "item", values = 6132,1}}},
[17] = {questStarted = 1538, questStorage = 65028, killsRequired = 2500, raceName = "Frost Dragons", rewards = {{enable = true, type = "item", values = 7902,1}, {enable = true, type = "exp", values = 4605100}}},
[18] = {questStarted = 1539, questStorage = 65029, killsRequired = 4000, raceName = "Demons", rewards = {{enable = true, type = "exp", values = 9505100}, {enable = true, type = "storage", values = {65535, 1}}},
}
local rankStorage = 32150
local choose = {}
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
local voc = {}
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
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_PRIVATE and 0 or cid
if msgcontains(msg, "task") then
selfSay("There you can see the following tasks, please tell me the number of the task that you want to do.", cid)
local text = "Number - Name"
for i = 1, table.maxn(tasks) do
text = text .. "\n" .. i .. " - " .. tasks[i].raceName .. (getCreatureStorage(cid, tasks[i].questStarted) == 2 and " [Done]" or "")
end
doShowTextDialog(cid, 5956, text)
elseif tasks[tonumber(msg)] then
msg = tonumber(msg)
if getCreatureStorage(cid, tasks[msg].questStarted) == 1 then
selfSay("You are already making this task.", cid)
talkState[talkUser] = 0
return true
end
if getCreatureStorage(cid, tasks[msg].questStarted) == 2 then
selfSay("You already finished this task.", cid)
talkState[talkUser] = 0
return true
end
if tasks[msg].level and getPlayerLevel(cid) < tasks[msg].level then
selfSay("You need level " .. tasks[msg].level .. " or higher to make this task.", cid)
talkState[talkUser] = 0
return true
end
for k, v in pairs(tasks) do
if getCreatureStorage(cid, v.questStarted) == 1 and tasks[msg] ~= k then
selfSay("You are already making a task.", cid)
talkState[talkUser] = 0
return true
end
end
selfSay("Are you sure that do you want to start the task number " .. msg .. "?. In this task you will need to defeat " .. tasks[msg].killsRequired .. " " .. tasks[msg].raceName .. ".", cid)
choose[cid] = msg
talkState[talkUser] = 1
elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then
doCreatureSetStorage(cid, tasks[choose[cid]].questStarted, 1)
selfSay("You have started the task number " .. choose[cid] .. ", remember... in this task you will need to defeat " .. tasks[choose[cid]].killsRequired .. " " .. tasks[choose[cid]].raceName .. ". Good luck!", cid)
talkState[talkUser] = 0
elseif msgcontains(msg, "report") then
for k, v in pairs(tasks) do
if getCreatureStorage(cid, v.questStarted) == 1 then
if getCreatureStorage(cid, v.questStorage) >= v.killsRequired then
for i = 1, table.maxn(v.rewards) do
if(v.rewards[i].enable) then
if isInArray({"boss", "teleport", 1}, v.rewards[i].type) then
doTeleportThing(cid, v.rewards[i].values)
elseif isInArray({"exp", "experience", 2}, v.rewards[i].type) then
doPlayerAddExperience(cid, v.rewards[i].values)
elseif isInArray({"item", 3}, v.rewards[i].type) then
doPlayerAddItem(cid, v.rewards[i].values[1], v.rewards[i].values[2])
elseif isInArray({"money", 4}, v.rewards[i].type) then
doPlayerAddMoney(cid, v.rewards[i].values)
elseif isInArray({"storage", "stor", 5}, v.rewards[i].type) then
doCreatureSetStorage(cid, v.rewards[i].values[1], v.rewards[i].values[2])
elseif isInArray({"points", "rank", 2}, v.rewards[i].type) then
doCreatureSetStorage(cid, rankStorage, getCreatureStorage(cid, rankStorage) + v.rewards[i].values)
else
print("[Warning - Error::Killing in the name of::Tasks config] Bad reward type: " .. v.rewards[i].type .. ", reward could not be loaded.")
end
end
end
local rank = getCreatureStorage(cid, rankStorage)
selfSay("Great!... you have finished the task number " .. k .. "" .. (rank > 4 and ", you are a " or "") .. "" .. (((rank > 4 and rank < 10) and ("Huntsman") or (rank > 9 and rank < 20) and ("Ranger") or (rank > 19 and rank < 30) and ("Big Game Hunter") or (rank > 29 and rank < 50) and ("Trophy Hunter") or (rank > 49) and ("Elite Hunter")) or "") .. ". Good job.", cid)
doCreatureSetStorage(cid, v.questStarted, 2)
break
else
if getCreatureStorage(cid, v.questStorage) < 0 then
doCreatureSetStorage(cid, v.questStorage, 0)
end
selfSay("Current " .. getCreatureStorage(cid, v.questStorage) .. " " .. v.raceName .. " killed, you need to kill " .. v.killsRequired .. ".", cid)
break
end
end
end
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
local questCreatures =
{
["rotworm queen"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 250, raceName = "Rotworm Queens"},
["dragon"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15001, killsRequired = 2500, raceName = "Dragons"},
["dragon lord"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15002, killsRequired = 4000, raceName = "Dragon Lords"},
["hero"] = {questStarted = 1512, questStorage = 65003, creatureStorage = 15003, killsRequired = 5000, raceName = "Heroes"},
["black knight"] = {questStarted = 1513, questStorage = 65004, creatureStorage = 15004, killsRequired = 5000, raceName = "Black Knights"},
["behemoth"] = {questStarted = 1514, questStorage = 65005, creatureStorage = 15005, killsRequired = 3000, raceName = "Behemoths"},
["bog raider"] = {questStarted = 1515, questStorage = 65006, creatureStorage = 15006, killsRequired = 1550, raceName = "Bog Raiders"},
["destroyer"] = {questStarted = 1516, questStorage = 65007, creatureStorage = 15007, killsRequired = 1050, raceName = "Destroyers"},
["diabolic Imp"] = {questStarted = 1517, questStorage = 65008, creatureStorage = 15008, killsRequired = 3000, raceName = "Diabolic Imps"},
["fury"] = {questStarted = 1518, questStorage = 65009, creatureStorage = 15009, killsRequired = 3600, raceName = "Fury"},
["ghastly dragon"] = {questStarted = 1519, questStorage = 65010, creatureStorage = 15010, killsRequired = 2500, raceName = "Ghastly Dragons"},
["grim reaper"] = {questStarted = 1520, questStorage = 65011, creatureStorage = 15011, killsRequired = 5550, raceName = "Grim Reapers"},
["giant spider"] = {questStarted = 1521, questStorage = 65012, creatureStorage = 15012, killsRequired = 8000, raceName = "Giant Spiders"},
["hand of cursed fate"] = {questStarted = 1522, questStorage = 65013, creatureStorage = 15013, killsRequired = 2300, raceName = "Hands of Cursed Fates"},
["hellfire fighter"] = {questStarted = 1523, questStorage = 65014, creatureStorage = 15014, killsRequired = 5000, raceName = "Hellfire Fighters"},
["insected rat"] = {questStarted = 1524, questStorage = 65015, creatureStorage = 15015, killsRequired = 3000, raceName = "Insected Rats"},
["hydra"] = {questStarted = 1525, questStorage = 65016, creatureStorage = 15016, killsRequired = 7000, raceName = "Hydras"},
["medusa"] = {questStarted = 1526, questStorage = 65017, creatureStorage = 15017, killsRequired = 6000, raceName = "Medusas"},
["hellhound"] = {questStarted = 1527, questStorage = 65018, creatureStorage = 15018, killsRequired = 5500, raceName = "Hellhounds"},
["plaguesmith"] = {questStarted = 1528, questStorage = 65019, creatureStorage = 15019, killsRequired = 2500, raceName = "Plaguesmiths"},
["serpent spawn"] = {questStarted = 1529, questStorage = 65020, creatureStorage = 15020, killsRequired = 2000, raceName = "Serpent Spawns"},
["undead dragon"] = {questStarted = 1530, questStorage = 65021, creatureStorage = 15021, killsRequired = 3000, raceName = "Undead Dragons"},
["warlock"] = {questStarted = 1531, questStorage = 65022, creatureStorage = 15022, killsRequired = 3000, raceName = "Warlocks"},
["demon"] = {questStarted = 1532, questStorage = 65023, creatureStorage = 15023, killsRequired = 5000, raceName = "Demons"},
["wyrm"] = {questStarted = 1533, questStorage = 65024, creatureStorage = 15024, killsRequired = 3000, raceName = "Wyrms"},
["nightmare"] = {questStarted = 1533, questStorage = 65025, creatureStorage = 15025, killsRequired = 8000, raceName = "Nightmares"}
}
local msgType = MESSAGE_STATUS_CONSOLE_ORANGE
function onKill(cid, target, lastHit)
local creature = questCreatures[getCreatureName(target):lower()]
if creature then
if isPlayer(target) or isSummon(target) then return true end
if getCreatureStorage(cid, creature.questStarted) > 0 then
if getCreatureStorage(cid, creature.questStorage) < creature.killsRequired then
if getCreatureStorage(cid, creature.questStorage) < 0 then
doCreatureSetStorage(cid, creature.questStorage, 0)
end
if getCreatureStorage(cid, creature.creatureStorage) < 0 then
doCreatureSetStorage(cid, creature.creatureStorage, 0)
end
doCreatureSetStorage(cid, creature.questStorage, getCreatureStorage(cid, creature.questStorage) + 1)
doCreatureSetStorage(cid, creature.creatureStorage, getCreatureStorage(cid, creature.creatureStorage) + 1)
doPlayerSendTextMessage(cid, msgType, getCreatureStorage(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getCreatureStorage(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".")
end
end
end
return true
end
local tasks =
{
[1] = {questStarted = 1510, questStorage = 65000, killsRequired = 250, raceName = "Rotworm Queens", rewards = {{enable = true, type = "exp", values = 10000}, {enable = true, type = "money", values = 200000}}},
[2] = {questStarted = 1511, questStorage = 65001, killsRequired = 2500, raceName = "Dragons", rewards = {{enable = true, type = "exp", values = 1070100}, {enable = true, type = "item", values = {2492, 1}}, {enable = true, type = "item", values = {2498, 1}}, {enable = true, type = "money", values = 500000}}},
[3] = {questStarted = 1512, questStorage = 65002, killsRequired = 4000, raceName = "Dragon Lords", rewards = {{enable = true, type = "exp", values = 3605100}, {enable = true, type = "item", values = {2640, 1}}, {enable = true, type = "money", values = 1500000}}},
[4] = {questStarted = 1513, questStorage = 65003, killsRequired = 5000, raceName = "Heroes", rewards = {{enable = true, type = "exp", values = 1070100}, {enable = true, type = "item", values = {2491, 1}}, {enable = true, type = "item", values = {2487, 1}}, {enable = true, type = "item", values = {2488, 1}}, {enable = true, type = "item", values = {2519, 1}}, {enable = true, type = "money", values = 300000}}},
[5] = {questStarted = 1514, questStorage = 65004, killsRequired = 5000, raceName = "Black Knights", rewards = {{enable = true, type = "exp", values = 1605100}, {enable = true, type = "item", values = {2471, 1}}, {enable = true, type = "money", values = 800000}}},
[6] = {questStarted = 1515, questStorage = 65005, killsRequired = 3000, raceName = "Behemoths", rewards = {{enable = true, type = "exp", values = 3605100}, {enable = true, type = "item", values = {9969, 1}}, {enable = true, type = "money", values = 1000000}}},
[7] = {questStarted = 1516, questStorage = 65006, killsRequired = 1550, raceName = "Bog Raiders", rewards = {{enable = true, type = "exp", values = 2605100}, {enable = true, type = "item", values = {2506, 1}}, {enable = true, type = "money", values = 450000}}},
[8] = {questStarted = 1517, questStorage = 65007, killsRequired = 1050, raceName = "Destroyers", rewards = {{enable = true, type = "exp", values = 2000000}, {enable = true, type = "item", values = {2349, 1}}, {enable = true, type = "money", values = 150000}}},
[9] = {questStarted = 1518, questStorage = 65008, killsRequired = 3000, raceName = "Diabolic Imps", rewards = {{enable = true, type = "exp", values = 9168750}, {enable = true, type = "points", values = 5}, {enable = true, type = "money", values = 1000000}}},
[10] = {questStarted = 1519, questStorage = 65009, killsRequired = 3600, raceName = "Fury", rewards = {{enable = true, type = "exp", values = 4456000}, {enable = true, type = "item", values = {11302, 1}}, {enable = true, type = "money", values = 250000}}},
[11] = {questStarted = 1520, questStorage = 65010, killsRequired = 2500, raceName = "Ghastly Dragons", rewards = {{enable = true, type = "exp", values = 600000}, {enable = true, type = "item", values = {11301, 1}}, {enable = true, type = "item", values = {11304, 1}}}},
[12] = {questStarted = 1521, questStorage = 65011, killsRequired = 5550, raceName = "Grim Reapers", rewards = {{enable = true, type = "exp", values = 8685450}, {enable = true, type = "money", values = 1500000}}},
[13] = {questStarted = 1522, questStorage = 65012, killsRequired = 8000, raceName = "Giant Spiders", rewards = {{enable = true, type = "exp", values = 3605100},{enable = true, type = "money", values = 800000}}},
[14] = {questStarted = 1523, questStorage = 65013, killsRequired = 2300, raceName = "Hands of Cursed Fates", rewards = {{enable = true, type = "exp", values = 9500000}, {enable = true, type = "item", values = {6544, 100}}, {enable = true, type = "money", values = 150000}}},
[15] = {questStarted = 1524, questStorage = 65014, killsRequired = 5000, raceName = "Hellfire Fighters", rewards = {{enable = true, type = "exp", values = 7500000}, {enable = true, type = "item", values = {6544, 50}}, {enable = true, type = "item", values = {6542, 50}}, {enable = true, type = "money", values = 400000}}},
[16] = {questStarted = 1525, questStorage = 65015, killsRequired = 3000, raceName = "Insected Rats", rewards = {{enable = true, type = "exp", values = 2000100}, {enable = true, type = "item", values = {6542, 50}}, {enable = true, type = "money", values = 100000}}},
[17] = {questStarted = 1526, questStorage = 65016, killsRequired = 7000, raceName = "Hydras", rewards = {{enable = true, type = "exp", values = 5550000}, {enable = true, type = "item", values = {2469, 1}}, {enable = true, type = "money", values = 300000}}},
[18] = {questStarted = 1527, questStorage = 65017, killsRequired = 6000, raceName = "Medusas", rewards = {{enable = true, type = "exp", values = 7550000}, {enable = true, type = "money", values = 800000}}},
[19] = {questStarted = 1528, questStorage = 65018, killsRequired = 5500, raceName = "Hellhounds", rewards = {{enable = true, type = "exp", values = 8000000}, {enable = true, type = "money", values = 500000}}},
[20] = {questStarted = 1529, questStorage = 65019, killsRequired = 2500, raceName = "Plaguesmiths", rewards = {{enable = true, type = "exp", values = 6355000}, {enable = true, type = "money", values = 150000}}},
[21] = {questStarted = 1530, questStorage = 65020, killsRequired = 2000, raceName = "Serpent Spawns", rewards = {{enable = true, type = "exp", values = 7605100}, {enable = true, type = "item", values = {9969, 1}}, {enable = true, type = "money", values = 100000}}},
[22] = {questStarted = 1531, questStorage = 65021, killsRequired = 3000, raceName = "Undead Dragons", rewards = {{enable = true, type = "exp", values = 8500000}, {enable = true, type = "item", values = {6433, 1}}, {enable = true, type = "money", values = 750000}}},
[23] = {questStarted = 1532, questStorage = 65022, killsRequired = 3000, raceName = "Warlocks", rewards = {{enable = true, type = "exp", values = 6000000}, {enable = true, type = "item", values = {8909, 1}}, {enable = true, type = "money", values = 200000}}},
[24] = {questStarted = 1533, questStorage = 65023, killsRequired = 5000, raceName = "Demons", rewards = {{enable = true, type = "exp", values = 9505100}, {enable = true, type = "item", values = {10518, 1}}, {enable = true, type = "money", values = 800000}}},
[25] = {questStarted = 1534, questStorage = 65024, killsRequired = 3000, raceName = "Wyrms", rewards = {{enable = true, type = "exp", values = 3000000}, {enable = true, type = "item", values = {8908, 1}}, {enable = true, type = "money", values = 200000}}},
[26] = {questStarted = 1535, questStorage = 65025, killsRequired = 8000, raceName = "Nightmares", rewards = {{enable = true, type = "exp", values = 8000000}, {enable = true, type = "item", values = {6391, 1}}, {enable = true, type = "money", values = 350000}}},
}
local rankStorage = 32150
local choose = {}
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
local voc = {}
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
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_PRIVATE and 0 or cid
if msgcontains(msg, "task") then
selfSay("Mozesz teraz obejrzec liste zadan ktore mam dla Ciebie. Powiedz mi ktory numerow misji Cie interesuje?", cid)
local text = "Numer - Nazwa"
for i = 1, table.maxn(tasks) do
text = text .. "\n" .. i .. " - " .. tasks[i].raceName .. (getCreatureStorage(cid, tasks[i].questStarted) == 2 and " [Done]" or "")
end
doShowTextDialog(cid, 5956, text)
elseif tasks[tonumber(msg)] then
msg = tonumber(msg)
if getCreatureStorage(cid, tasks[msg].questStarted) == 1 then
selfSay("Obecnie wykonujesz ta misje.", cid)
talkState[talkUser] = 0
return true
end
if getCreatureStorage(cid, tasks[msg].questStarted) == 2 then
selfSay("Ukonczyles ta misje.", cid)
talkState[talkUser] = 0
return true
end
if tasks[msg].level and getPlayerLevel(cid) < tasks[msg].level then
selfSay("Musisz osiagnac level " .. tasks[msg].level .. " lub wyzszy by podjac sie tej misji.", cid)
talkState[talkUser] = 0
return true
end
for k, v in pairs(tasks) do
if getCreatureStorage(cid, v.questStarted) == 1 and tasks[msg] ~= k then
selfSay("Obecnie realizujesz misje.", cid)
talkState[talkUser] = 0
return true
end
end
selfSay("Czy jestes pewien ze chcesz rozpoczac misje numer " .. msg .. "?. Misja polega na pokonaniu " .. tasks[msg].killsRequired .. " " .. tasks[msg].raceName .. ".", cid)
choose[cid] = msg
talkState[talkUser] = 1
elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then
doCreatureSetStorage(cid, tasks[choose[cid]].questStarted, 1)
selfSay("Rozpoczales misje numer " .. choose[cid] .. ", pamietaj... Twoim zadaniem jest pokonac " .. tasks[choose[cid]].killsRequired .. " " .. tasks[choose[cid]].raceName .. ". Powodzenia!", cid)
talkState[talkUser] = 0
elseif msgcontains(msg, "report") then
for k, v in pairs(tasks) do
if getCreatureStorage(cid, v.questStarted) == 1 then
if getCreatureStorage(cid, v.questStorage) >= v.killsRequired then
for i = 1, table.maxn(v.rewards) do
if(v.rewards[i].enable) then
if isInArray({"boss", "teleport", 1}, v.rewards[i].type) then
doTeleportThing(cid, v.rewards[i].values)
elseif isInArray({"exp", "experience", 2}, v.rewards[i].type) then
doPlayerAddExperience(cid, v.rewards[i].values)
elseif isInArray({"item", 3}, v.rewards[i].type) then
doPlayerAddItem(cid, v.rewards[i].values[1], v.rewards[i].values[2])
elseif isInArray({"money", 4}, v.rewards[i].type) then
doPlayerAddMoney(cid, v.rewards[i].values)
elseif isInArray({"storage", "stor", 5}, v.rewards[i].type) then
doCreatureSetStorage(cid, v.rewards[i].values[1], v.rewards[i].values[2])
elseif isInArray({"points", "rank", 2}, v.rewards[i].type) then
doCreatureSetStorage(cid, rankStorage, getCreatureStorage(cid, rankStorage) + v.rewards[i].values)
else
print("[Warning - Error::Killing in the name of::Tasks config] Bad reward type: " .. v.rewards[i].type .. ", reward could not be loaded.")
end
end
end
local rank = getCreatureStorage(cid, rankStorage)
selfSay("Brawo!... ukonczyles misje numer " .. k .. "" .. (rank > 4 and ", you are a " or "") .. "" .. (((rank > 4 and rank < 10) and ("Huntsman") or (rank > 9 and rank < 20) and ("Ranger") or (rank > 19 and rank < 30) and ("Big Game Hunter") or (rank > 29 and rank < 50) and ("Trophy Hunter") or (rank > 49) and ("Elite Hunter")) or "") .. ". Dobra Robota.", cid)
doCreatureSetStorage(cid, v.questStarted, 2)
break
else
if getCreatureStorage(cid, v.questStorage) < 0 then
doCreatureSetStorage(cid, v.questStorage, 0)
end
selfSay("Obecnie " .. getCreatureStorage(cid, v.questStorage) .. " " .. v.raceName .. " zabito, potrzebujesz pokonac " .. v.killsRequired .. ".", cid)
break
end
end
end
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
<quest name="Killing in the Name of..." startstorageid="33150" startstoragevalue="1">
<mission name="Paw and Fur - Hunting Elite" storageid="33150" startvalue="0" endvalue="2">
<missionstate id="1-10" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already gained |STORAGE:35150| points. You currently have |STORAGE:36150| boss points. You made |STORAGE:37150| tasks."/>
</mission>
<mission name="Paw and Fur - Rank" storageid="32150" startvalue="0" endvalue="6">
<missionstate id="0" description="You have been promoted to the rank of a 'Huntsman' in the 'Paw and Fur - Hunting Elite'."/>
<missionstate id="1" description="You have been promoted to the rank of a 'Huntsman' in the 'Paw and Fur - Hunting Elite'."/>
<missionstate id="2" description="You have been promoted to the rank of a 'Ranger' in the 'Paw and Fur - Hunting Elite'."/>
<missionstate id="3" description="You have been promoted to the rank of a 'Big Game Hunter' in the 'Paw and Fur - Hunting Elite'."/>
<missionstate id="4" description="You have been promoted to the rank of a 'Trophy Hunter' in the 'Paw and Fur - Hunting Elite'."/>
<missionstate id="5" description="You have been promoted to the rank of a 'Elite Hunter' in the 'Paw and Fur - Hunting Elite'. This is the highest rank you can get."/>
</mission>
<mission name="Paw and Fur: Trolls" storageid="1510" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65000| trolls. You are supposed to kill 100 in total."/>
<missionstate id="2" description="You killed 100 trolls."/>
</mission>
<mission name="Paw and Fur: Goblins" storageid="1511" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65001| goblins. You are supposed to kill 150 in total."/>
<missionstate id="2" description="You killed 150 goblins."/>
</mission>
<mission name="Paw and Fur: Rotworms" storageid="1512" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65002| rotworms. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 rotworms."/>
</mission>
<mission name="Paw and Fur: Cyclops" storageid="1513" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65003| cyclops. You are supposed to kill 500 in total."/>
<missionstate id="2" description="You killed 500 cyclops."/>
</mission>
<mission name="Paw and Fur: Green Djinns" storageid="1514" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65004| green djinns. You are supposed to kill 500 in total."/>
<missionstate id="2" description="You killed 500 green djinns."/>
</mission>
<mission name="Paw and Fur: Blue Djinns" storageid="1515" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65005| blue djinns. You are supposed to kill 500 in total."/>
<missionstate id="2" description="You killed 500 blue djinns."/>
</mission>
<mission name="Paw and Fur: Pirates" storageid="1516" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65006| pirates. You are supposed to kill 3000 in total."/>
<missionstate id="2" description="You killed 3000 pirates."/>
</mission>
<mission name="Paw and Fur: Pirates" storageid="1517" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65007| pirates. You are supposed to kill 3000 in total."/>
<missionstate id="2" description="You killed 3000 pirates."/>
</mission>
<mission name="Paw and Fur: Minotaurs" storageid="1518" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65008| minotaurs. You are supposed to kill 5000 in total."/>
<missionstate id="2" description="You killed 5000 minotaurs."/>
</mission>
<mission name="Paw and Fur: Necromancers" storageid="1519" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65009| necromancers. You are supposed to kill 4000 in total."/>
<missionstate id="2" description="You killed 4000 necromancers."/>
</mission>
<mission name="Paw and Fur: Necromancers" storageid="1520" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65010| necromancers. You are supposed to kill 1000 in total."/>
<missionstate id="2" description="You killed 1000 necromancers."/>
</mission>
<mission name="Paw and Fur: Crocodiles" storageid="1521" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65011| crocodiles. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 crocodiles."/>
</mission>
<mission name="Paw and Fur: Badgers" storageid="1522" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65012| badgers. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 badgers."/>
</mission>
<mission name="Paw and Fur: Tarantulas" storageid="1523" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65013| tarantulas. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 tarantulas."/>
</mission>
<mission name="Paw and Fur: Carniphilas" storageid="1524" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65014| carniphilas. You are supposed to kill 150 in total."/>
<missionstate id="2" description="You killed 150 carniphilas."/>
</mission>
<mission name="Paw and Fur: Stone Golems" storageid="1525" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65015| stone golems. You are supposed to kill 200 in total."/>
<missionstate id="2" description="You killed 200 stone golems."/>
</mission>
<mission name="Paw and Fur: Mammoths" storageid="1526" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65016| mammoths. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 mammoths."/>
</mission>
<mission name="Paw and Fur: Gnarlhounds" storageid="1527" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65017| gnarlhounds. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 gnarlhounds."/>
</mission>
<mission name="Paw and Fur: Terramites" storageid="1528" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65018| terramites. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 terramites."/>
</mission>
<mission name="Paw and Fur: Apes" storageid="1529" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65019| apes. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 apes."/>
</mission>
<mission name="Paw and Fur: thornback tortoises" storageid="1530" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65020| thornback tortoises. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 thornback tortoises."/>
</mission>
<mission name="Paw and Fur: Gargoyles" storageid="1531" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65021| gargoyles. You are supposed to kill 200 in total."/>
<missionstate id="2" description="You killed 200 gargoyles."/>
</mission>
<mission name="Paw and Fur: Ice Golems" storageid="1532" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65022| ice golems. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 ice golems."/>
</mission>
<mission name="Paw and Fur: Quara Scouts" storageid="1533" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65023| quara scouts. You are supposed to kill 400 in total."/>
<missionstate id="2" description="You killed 400 quara scouts."/>
</mission>
<mission name="Paw and Fur: Mutated Rats" storageid="1534" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65024| mutated rats. You are supposed to kill 400 in total."/>
<missionstate id="2" description="You killed 400 mutated rats."/>
</mission>
<mission name="Paw and Fur: Ancient Scarabs" storageid="1535" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65025| ancient scarabs. You are supposed to kill 250 in total."/>
<missionstate id="2" description="You killed 250 ancient scarabs."/>
</mission>
<mission name="Paw and Fur: Wyverns" storageid="1536" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65026| wyverns. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 wyverns."/>
</mission>
<mission name="Paw and Fur: Lancer Beetles" storageid="1537" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65027| lancer beetles. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 lancer beetles."/>
</mission>
<mission name="Paw and Fur: Wailing Widows" storageid="1538" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65028| wailing widows. You are supposed to kill 400 in total."/>
<missionstate id="2" description="You killed 400 wailing widows."/>
</mission>
<mission name="Paw and Fur: Killer Caimans" storageid="1539" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65029| killer caimans. You are supposed to kill 250 in total."/>
<missionstate id="2" description="You killed 250 killer caimans."/>
</mission>
<mission name="Paw and Fur: Bonebeasts" storageid="1540" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65030| bonebeasts. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 killer bonebeasts."/>
</mission>
<mission name="Paw and Fur: Crystal Spiders" storageid="1541" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65031| crystal spiders. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 crystal spiders."/>
</mission>
<mission name="Paw and Fur: Mutated Tigers" storageid="1542" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65032| mutated tigers. You are supposed to kill 250 in total."/>
<missionstate id="2" description="You killed 250 mutated tigers."/>
</mission>
<mission name="Paw and Fur: Underwater Quaras" storageid="1543" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65033| underwater quaras. You are supposed to kill 600 in total."/>
<missionstate id="2" description="You killed 600 underwater quaras."/>
</mission>
<mission name="Paw and Fur: Giant Spiders" storageid="1544" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65034| giant spiders. You are supposed to kill 500 in total."/>
<missionstate id="2" description="You killed 500 giant spiders."/>
</mission>
<mission name="Paw and Fur: Werewolves" storageid="1545" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65035| werewolves. You are supposed to kill 300 in total."/>
<missionstate id="2" description="You killed 300 werewolves."/>
</mission>
<mission name="Paw and Fur: Nightmares" storageid="1546" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65036| nightmares. You are supposed to kill 400 in total."/>
<missionstate id="2" description="You killed 400 nightmares."/>
</mission>
<mission name="Paw and Fur: Hellspawns" storageid="1547" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65037| hellspawns. You are supposed to kill 600 in total."/>
<missionstate id="2" description="You killed 600 hellspawns."/>
</mission>
<mission name="Paw and Fur: High Class Lizards" storageid="1548" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65038| high class lizards. You are supposed to kill 800 in total."/>
<missionstate id="2" description="You killed 800 high class lizards."/>
</mission>
<mission name="Paw and Fur: Brimstone Bugs" storageid="1549" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65039| brimstone bugs. You are supposed to kill 600 in total."/>
<missionstate id="2" description="You killed 600 brimstone bugs."/>
</mission>
<mission name="Paw and Fur: Mutated Bats" storageid="1550" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65040| mutated bats. You are supposed to kill 400 in total."/>
<missionstate id="2" description="You killed 400 mutated bats."/>
</mission>
<mission name="Paw and Fur: Hydras" storageid="1551" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65041| hydras. You are supposed to kill 650 in total."/>
<missionstate id="2" description="You killed 650 hydras."/>
</mission>
<mission name="Paw and Fur: Serpent Spawns" storageid="1552" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65042| serpent spawns. You are supposed to kill 800 in total."/>
<missionstate id="2" description="You killed 800 serpent spawns."/>
</mission>
<mission name="Paw and Fur: Medusas" storageid="1553" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65043| medusas. You are supposed to kill 500 in total."/>
<missionstate id="2" description="You killed 500 medusas."/>
</mission>
<mission name="Paw and Fur: Behemoths" storageid="1554" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65044| behemoths. You are supposed to kill 700 in total."/>
<missionstate id="2" description="You killed 700 behemoths."/>
</mission>
<mission name="Paw and Fur: Sea Serpents" storageid="1555" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65045| sea serpents. You are supposed to kill 900 in total."/>
<missionstate id="2" description="You killed 900 sea serpents."/>
</mission>
<mission name="Paw and Fur: Hellhounds" storageid="1556" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65046| hellhounds. You are supposed to kill 250 in total."/>
<missionstate id="2" description="You killed 250 hellhounds."/>
</mission>
<mission name="Paw and Fur: Ghastly Dragons" storageid="1557" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65047| ghastly dragons. You are supposed to kill 500 in total."/>
<missionstate id="2" description="You killed 500 ghastly dragons."/>
</mission>
<mission name="Paw and Fur: Drakens" storageid="1558" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65048| drakens. You are supposed to kill 900 in total."/>
<missionstate id="2" description="You killed 900 drakens."/>
</mission>
<mission name="Paw and Fur: Destroyers" storageid="1559" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65049| destroyers. You are supposed to kill 650 in total."/>
<missionstate id="2" description="You killed 650 destroyers."/>
</mission>
<mission name="Paw and Fur: Undead Dragons" storageid="1560" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65050| undead dragons. You are supposed to kill 400 in total."/>
<missionstate id="2" description="You killed 400 undead dragons."/>
</mission>
<mission name="Paw and Fur: Tiquandas Revenge" storageid="1561" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65051| tiquandas revenge. You are supposed to kill 1 in total."/>
<missionstate id="2" description="You killed 1 tiquandas revenge."/>
</mission>
<mission name="Paw and Fur: Demodras" storageid="1562" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65052| demodras. You are supposed to kill 1 in total."/>
<missionstate id="2" description="You killed 1 demodras."/>
</mission>
<mission name="Paw and Fur: Demons" storageid="1563" startvalue="0" endvalue="2">
<missionstate id="1" description="You already hunted |STORAGE:65053| demons. You are supposed to kill 6666 in total."/>
<missionstate id="2" description="You killed 6666 demons."/>
</mission>
</quest>
My questlog
XML:<quest name="Killing in the Name of..." startstorageid="33150" startstoragevalue="1"> <mission name="Paw and Fur - Hunting Elite" storageid="33150" startvalue="0" endvalue="2"> <missionstate id="1-10" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already gained |STORAGE:35150| points. You currently have |STORAGE:36150| boss points. You made |STORAGE:37150| tasks."/> </mission> <mission name="Paw and Fur - Rank" storageid="32150" startvalue="0" endvalue="6"> <missionstate id="0" description="You have been promoted to the rank of a 'Huntsman' in the 'Paw and Fur - Hunting Elite'."/> <missionstate id="1" description="You have been promoted to the rank of a 'Huntsman' in the 'Paw and Fur - Hunting Elite'."/> <missionstate id="2" description="You have been promoted to the rank of a 'Ranger' in the 'Paw and Fur - Hunting Elite'."/> <missionstate id="3" description="You have been promoted to the rank of a 'Big Game Hunter' in the 'Paw and Fur - Hunting Elite'."/> <missionstate id="4" description="You have been promoted to the rank of a 'Trophy Hunter' in the 'Paw and Fur - Hunting Elite'."/> <missionstate id="5" description="You have been promoted to the rank of a 'Elite Hunter' in the 'Paw and Fur - Hunting Elite'. This is the highest rank you can get."/> </mission> <mission name="Paw and Fur: Trolls" storageid="1510" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65000| trolls. You are supposed to kill 100 in total."/> <missionstate id="2" description="You killed 100 trolls."/> </mission> <mission name="Paw and Fur: Goblins" storageid="1511" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65001| goblins. You are supposed to kill 150 in total."/> <missionstate id="2" description="You killed 150 goblins."/> </mission> <mission name="Paw and Fur: Rotworms" storageid="1512" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65002| rotworms. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 rotworms."/> </mission> <mission name="Paw and Fur: Cyclops" storageid="1513" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65003| cyclops. You are supposed to kill 500 in total."/> <missionstate id="2" description="You killed 500 cyclops."/> </mission> <mission name="Paw and Fur: Green Djinns" storageid="1514" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65004| green djinns. You are supposed to kill 500 in total."/> <missionstate id="2" description="You killed 500 green djinns."/> </mission> <mission name="Paw and Fur: Blue Djinns" storageid="1515" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65005| blue djinns. You are supposed to kill 500 in total."/> <missionstate id="2" description="You killed 500 blue djinns."/> </mission> <mission name="Paw and Fur: Pirates" storageid="1516" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65006| pirates. You are supposed to kill 3000 in total."/> <missionstate id="2" description="You killed 3000 pirates."/> </mission> <mission name="Paw and Fur: Pirates" storageid="1517" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65007| pirates. You are supposed to kill 3000 in total."/> <missionstate id="2" description="You killed 3000 pirates."/> </mission> <mission name="Paw and Fur: Minotaurs" storageid="1518" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65008| minotaurs. You are supposed to kill 5000 in total."/> <missionstate id="2" description="You killed 5000 minotaurs."/> </mission> <mission name="Paw and Fur: Necromancers" storageid="1519" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65009| necromancers. You are supposed to kill 4000 in total."/> <missionstate id="2" description="You killed 4000 necromancers."/> </mission> <mission name="Paw and Fur: Necromancers" storageid="1520" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65010| necromancers. You are supposed to kill 1000 in total."/> <missionstate id="2" description="You killed 1000 necromancers."/> </mission> <mission name="Paw and Fur: Crocodiles" storageid="1521" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65011| crocodiles. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 crocodiles."/> </mission> <mission name="Paw and Fur: Badgers" storageid="1522" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65012| badgers. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 badgers."/> </mission> <mission name="Paw and Fur: Tarantulas" storageid="1523" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65013| tarantulas. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 tarantulas."/> </mission> <mission name="Paw and Fur: Carniphilas" storageid="1524" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65014| carniphilas. You are supposed to kill 150 in total."/> <missionstate id="2" description="You killed 150 carniphilas."/> </mission> <mission name="Paw and Fur: Stone Golems" storageid="1525" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65015| stone golems. You are supposed to kill 200 in total."/> <missionstate id="2" description="You killed 200 stone golems."/> </mission> <mission name="Paw and Fur: Mammoths" storageid="1526" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65016| mammoths. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 mammoths."/> </mission> <mission name="Paw and Fur: Gnarlhounds" storageid="1527" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65017| gnarlhounds. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 gnarlhounds."/> </mission> <mission name="Paw and Fur: Terramites" storageid="1528" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65018| terramites. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 terramites."/> </mission> <mission name="Paw and Fur: Apes" storageid="1529" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65019| apes. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 apes."/> </mission> <mission name="Paw and Fur: thornback tortoises" storageid="1530" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65020| thornback tortoises. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 thornback tortoises."/> </mission> <mission name="Paw and Fur: Gargoyles" storageid="1531" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65021| gargoyles. You are supposed to kill 200 in total."/> <missionstate id="2" description="You killed 200 gargoyles."/> </mission> <mission name="Paw and Fur: Ice Golems" storageid="1532" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65022| ice golems. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 ice golems."/> </mission> <mission name="Paw and Fur: Quara Scouts" storageid="1533" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65023| quara scouts. You are supposed to kill 400 in total."/> <missionstate id="2" description="You killed 400 quara scouts."/> </mission> <mission name="Paw and Fur: Mutated Rats" storageid="1534" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65024| mutated rats. You are supposed to kill 400 in total."/> <missionstate id="2" description="You killed 400 mutated rats."/> </mission> <mission name="Paw and Fur: Ancient Scarabs" storageid="1535" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65025| ancient scarabs. You are supposed to kill 250 in total."/> <missionstate id="2" description="You killed 250 ancient scarabs."/> </mission> <mission name="Paw and Fur: Wyverns" storageid="1536" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65026| wyverns. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 wyverns."/> </mission> <mission name="Paw and Fur: Lancer Beetles" storageid="1537" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65027| lancer beetles. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 lancer beetles."/> </mission> <mission name="Paw and Fur: Wailing Widows" storageid="1538" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65028| wailing widows. You are supposed to kill 400 in total."/> <missionstate id="2" description="You killed 400 wailing widows."/> </mission> <mission name="Paw and Fur: Killer Caimans" storageid="1539" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65029| killer caimans. You are supposed to kill 250 in total."/> <missionstate id="2" description="You killed 250 killer caimans."/> </mission> <mission name="Paw and Fur: Bonebeasts" storageid="1540" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65030| bonebeasts. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 killer bonebeasts."/> </mission> <mission name="Paw and Fur: Crystal Spiders" storageid="1541" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65031| crystal spiders. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 crystal spiders."/> </mission> <mission name="Paw and Fur: Mutated Tigers" storageid="1542" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65032| mutated tigers. You are supposed to kill 250 in total."/> <missionstate id="2" description="You killed 250 mutated tigers."/> </mission> <mission name="Paw and Fur: Underwater Quaras" storageid="1543" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65033| underwater quaras. You are supposed to kill 600 in total."/> <missionstate id="2" description="You killed 600 underwater quaras."/> </mission> <mission name="Paw and Fur: Giant Spiders" storageid="1544" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65034| giant spiders. You are supposed to kill 500 in total."/> <missionstate id="2" description="You killed 500 giant spiders."/> </mission> <mission name="Paw and Fur: Werewolves" storageid="1545" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65035| werewolves. You are supposed to kill 300 in total."/> <missionstate id="2" description="You killed 300 werewolves."/> </mission> <mission name="Paw and Fur: Nightmares" storageid="1546" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65036| nightmares. You are supposed to kill 400 in total."/> <missionstate id="2" description="You killed 400 nightmares."/> </mission> <mission name="Paw and Fur: Hellspawns" storageid="1547" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65037| hellspawns. You are supposed to kill 600 in total."/> <missionstate id="2" description="You killed 600 hellspawns."/> </mission> <mission name="Paw and Fur: High Class Lizards" storageid="1548" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65038| high class lizards. You are supposed to kill 800 in total."/> <missionstate id="2" description="You killed 800 high class lizards."/> </mission> <mission name="Paw and Fur: Brimstone Bugs" storageid="1549" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65039| brimstone bugs. You are supposed to kill 600 in total."/> <missionstate id="2" description="You killed 600 brimstone bugs."/> </mission> <mission name="Paw and Fur: Mutated Bats" storageid="1550" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65040| mutated bats. You are supposed to kill 400 in total."/> <missionstate id="2" description="You killed 400 mutated bats."/> </mission> <mission name="Paw and Fur: Hydras" storageid="1551" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65041| hydras. You are supposed to kill 650 in total."/> <missionstate id="2" description="You killed 650 hydras."/> </mission> <mission name="Paw and Fur: Serpent Spawns" storageid="1552" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65042| serpent spawns. You are supposed to kill 800 in total."/> <missionstate id="2" description="You killed 800 serpent spawns."/> </mission> <mission name="Paw and Fur: Medusas" storageid="1553" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65043| medusas. You are supposed to kill 500 in total."/> <missionstate id="2" description="You killed 500 medusas."/> </mission> <mission name="Paw and Fur: Behemoths" storageid="1554" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65044| behemoths. You are supposed to kill 700 in total."/> <missionstate id="2" description="You killed 700 behemoths."/> </mission> <mission name="Paw and Fur: Sea Serpents" storageid="1555" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65045| sea serpents. You are supposed to kill 900 in total."/> <missionstate id="2" description="You killed 900 sea serpents."/> </mission> <mission name="Paw and Fur: Hellhounds" storageid="1556" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65046| hellhounds. You are supposed to kill 250 in total."/> <missionstate id="2" description="You killed 250 hellhounds."/> </mission> <mission name="Paw and Fur: Ghastly Dragons" storageid="1557" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65047| ghastly dragons. You are supposed to kill 500 in total."/> <missionstate id="2" description="You killed 500 ghastly dragons."/> </mission> <mission name="Paw and Fur: Drakens" storageid="1558" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65048| drakens. You are supposed to kill 900 in total."/> <missionstate id="2" description="You killed 900 drakens."/> </mission> <mission name="Paw and Fur: Destroyers" storageid="1559" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65049| destroyers. You are supposed to kill 650 in total."/> <missionstate id="2" description="You killed 650 destroyers."/> </mission> <mission name="Paw and Fur: Undead Dragons" storageid="1560" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65050| undead dragons. You are supposed to kill 400 in total."/> <missionstate id="2" description="You killed 400 undead dragons."/> </mission> <mission name="Paw and Fur: Tiquandas Revenge" storageid="1561" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65051| tiquandas revenge. You are supposed to kill 1 in total."/> <missionstate id="2" description="You killed 1 tiquandas revenge."/> </mission> <mission name="Paw and Fur: Demodras" storageid="1562" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65052| demodras. You are supposed to kill 1 in total."/> <missionstate id="2" description="You killed 1 demodras."/> </mission> <mission name="Paw and Fur: Demons" storageid="1563" startvalue="0" endvalue="2"> <missionstate id="1" description="You already hunted |STORAGE:65053| demons. You are supposed to kill 6666 in total."/> <missionstate id="2" description="You killed 6666 demons."/> </mission> </quest>
I have the same problemcan anybody help me with this error!? . i used the OTX 2.50 (860).
[2/2/2015 12:38:10] [Error - NpcScript Interface]
[2/2/2015 12:38:10] data/npc/scripts/killinginthenameof.luanCreatureSay
[2/2/2015 12:38:10] Description:
[2/2/2015 12:38:10] data/npc/scripts/killinginthenameof.lua:91: attempt to concatenate field 'raceName' (a nil value)
[2/2/2015 12:38:10] stack traceback:
[2/2/2015 12:38:10] data/npc/scripts/killinginthenameof.lua:91: in function 'callback'
[2/2/2015 12:38:10] data/npc/lib/npcsystem/npchandler.lua:456: in function 'onCreatureSay'
[2/2/2015 12:38:10] data/npc/scripts/killinginthenameof.lua:77: in function <data/npc/scripts/killinginthenameof.lua:77>
Bump problem 0.4 r.3777I have the same problem