Ir para conteúdo

Featured Replies

  • Respostas 9
  • Visualizações 7.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Cara, posta as fotos das mudanças que fez no servidor. Pelo que estou vendo, é o mesmo mapa, sem nenhuma mudança.

  • o otserver nao esta dando para fazer itens com god como eu configuro isso ??

Posted Images

Postado

Vá em talkactions em mude para acess 5, @guga Use o Remeres map editor 3.0 beta!


Simlpismente um lixo, que tem error no system vip, e cai sozin e alem do set nao curar Cara aruma isso ai

Ae cara, Se eu te ajudei +REP Sei que nao vai matar ninguem :)

  • 1 year later...
Postado

Amigo, desculpe reviver. Mas tem como ajudar a arrumar a Task System desse ot ?

 

Não está contando os bixos quando matamos 

 

local storage_count = 13424
 
 
local tasks =
{
[1] = {questStarted = 1510, questStorage = 65000, killsRequired = 100, raceName = "Dragons", rewards = {{enable = true, type = "exp", values = 4000000}, {enable = true, type = "money", values = 160000}}},
 
[2] = {questStarted = 1511, questStorage = 65001, killsRequired = 600, raceName = "Demons", rewards = {{enable = true, type = "exp", values = 5000000}, {enable = true, type = "money", values = 200000}}},
 
[3] = {questStarted = 1512, questStorage = 65002, killsRequired = 300, raceName = "Orshabaal", rewards = {{enable = true, type = "exp", values = 6000000}, {enable = true, type = "money", values = 250000}}},
 
[4] = {questStarted = 1513, questStorage = 65003, killsRequired = 500, raceName = "Ferumbras", rewards = {{enable = true, type = "exp", values = 7000000}, {enable = true, type = "money", values = 280000}}},
 
[5] = {questStarted = 1514, questStorage = 65004, killsRequired = 600, raceName = "Medusas", rewards = {{enable = true, type = "exp", values = 8000000}, {enable = true, type = "money", values = 300000}}},
 
[6] = {questStarted = 1515, questStorage = 65005, killsRequired = 700, raceName = "Lizard Chosen", rewards = {{enable = true, type = "exp", values = 9000000}, {enable = true, type = "money", values = 320000}}},
 
[7] = {questStarted = 1516, questStorage = 65006, killsRequired = 500, raceName = "Apocalypses", rewards = {{enable = true, type = "exp", values = 10000000}, {enable = true, type = "money", values = 350000}}},
 
[8] = {questStarted = 1517, questStorage = 65007, killsRequired = 480, raceName = "Terramite", rewards = {{enable = true, type = "exp", values = 110000000}, {enable = true, type = "money", values = 400000}}},
 
[9] = {questStarted = 1518, questStorage = 65008, killsRequired = 300, raceName = "Baby Hades", rewards = {{enable = true, type = "exp", values = 120000000}, {enable = true, type = "boss", values = {x=457,y=276,z=5}},{enable = true, type = "item", values = {12702,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 getCreatureStorage(cid,storage_count) == -1 then
       doCreatureSetStorage(cid, storage_count, 1)
    end 
 local task_actual = tasks[getCreatureStorage(cid,storage_count)]
    if msgcontains(msg, "info") then
selfSay("See your task status now!", cid)
local text = "Number  -  Name"
for i = 1, table.maxn(tasks) do
text = text .. "\n" .. i .. "  -  " .. tasks.raceName .. (getCreatureStorage(cid, tasks.questStarted) == 2 and " [Done]" or " [incomplete]")
end
doShowTextDialog(cid, 5956, text)
        
        
elseif msgcontains(msg, "task") then
if getCreatureStorage(cid, tasks[getCreatureStorage(cid,storage_count)].questStarted) == 1 then
selfSay("You are already making the task of the ".. tasks[getCreatureStorage(cid,storage_count)].raceName ..".", cid)
talkState[talkUser] = 0
return true
end
        local storage = 64521 --same storage used in other script
  
if tasks[getCreatureStorage(cid,storage_count)].level and getPlayerLevel(cid) < tasks[getCreatureStorage(cid,storage_count)].level then
selfSay("You need level " .. tasks[getCreatureStorage(cid,storage_count)].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[task_actual] ~= k then
selfSay("You are already making a task.", cid)
talkState[talkUser] = 0
return true
end
end
selfSay("Your ".. (getCreatureStorage(cid,storage_count) ~= 1 and "next " or "") .."task is defeat " .. tasks[getCreatureStorage(cid,storage_count)].killsRequired .. " " .. tasks[getCreatureStorage(cid,storage_count)].raceName ..". Do you agree?", cid)
choose[cid] = getCreatureStorage(cid,storage_count)
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.enable) then
if isInArray({"boss", "teleport", 1}, v.rewards.type) then
doTeleportThing(cid, v.rewards.values)
elseif isInArray({"exp", "experience", 2}, v.rewards.type) then
doPlayerAddExperience(cid, v.rewards.values)
elseif isInArray({"item", 3}, v.rewards.type) then
doPlayerAddItem(cid, v.rewards.values[1], v.rewards.values[2])
elseif isInArray({"money", 4}, v.rewards.type) then
doPlayerAddMoney(cid, v.rewards.values)
elseif isInArray({"storage", "stor", 5}, v.rewards.type) then
doCreatureSetStorage(cid, v.rewards.values[1], v.rewards.values[2])
elseif isInArray({"points", "rank", 2}, v.rewards.type) then
doCreatureSetStorage(cid, rankStorage, getCreatureStorage(cid, rankStorage) + v.rewards.values)
else
print("[Warning - Error::Killing in the name of::Tasks config] Bad reward type: " .. v.rewards.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)
doCreatureSetStorage(cid,storage_count, getCreatureStorage(cid,storage_count)+1)
                    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())

Editado por eddybrow (veja o histórico de edições)

  • 3 years later...
Postado
34 minutos atrás, ChkNetWebgd disse:

não mim velha a mal mano esta um bosta mesmo, não dar pra criar itens, são as mesmo coisas, só mudo o chão da cidade principal

 

 

Bro esse tópico é de 2013, tem vários servidores atualizados, da uma conferida na seção.

Os 8.60 que eu recomendo:

 

 

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo