Postado Agosto 4, 2018 6 anos Autor pronto, upei no pastebin os arquivos, isso irá corrigir tbm!! abraços
Postado Agosto 28, 2018 6 anos 3 horas atrás, Vodkart disse: sim Opa, testei e funcionou com sucesso, mas depois de eu ter adicionado algumas daily tasks começou a dar esse erro: [Error - CreatureScript Interface] [19:49:55.575] domodlib('task_func') [19:49:55.579] function onLook(cid, thing, position, lookDistance) [19:49:55.579] if isPlayer(thing.uid) and getTaskPoints(thing.uid) > 0 then [19:49:55.583] doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").. " is a "..GetRankTask(thing.uid)) [19:49:55.587] end [19:49:55.587] return true [19:49:55.587] end [19:49:55.587] Description: [19:49:55.591] [string "task_sys = {..."]:39: '}' expected (to close '{' at line 28) near '[' [19:49:55.591] [Error - CreatureScript Interface] [19:49:55.595] domodlib('task_func') [19:49:55.595] function onKill(cid, target) [19:49:55.599] if isPlayer(cid) and isMonster(target) then [19:49:55.599] local t,daily = task_sys[getTaskMission(cid)], daily_task[getDailyTaskMission(cid)] [19:49:55.603] if t and getPlayerStorageValue(cid, t.start) > 0 and isInArray(t.monsters_list, getCreatureName(target):lower()) and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then [19:49:55.611] setPlayerStorageValue(cid, task_sys_storages[3], getPlayerStorageValue(cid, task_sys_storages[3]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[3])+1)) [19:49:55.615] if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then [19:49:55.619] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[3]) .. "/" .. t.count .. "] da Task do " .. t.name .. ".") [19:49:55.627] end [19:49:55.627] if getPlayerStorageValue(cid, task_sys_storages[3]) >= t.count then [19:49:55.631] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] Parab├®ns! Voc├¬ terminou a Task do "..t.name..", volte ao npc parece receber sua recompensa.") [19:49:55.639] end [19:49:55.639] end [19:49:55.639] if daily and getPlayerStorageValue(cid, task_sys_storages[7]) > 0 and getPlayerStorageValue(cid, task_sys_storages[6]) - os.time() >= 0 and isInArray(daily.monsters_list, getCreatureName(target):lower()) and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then [19:49:55.651] setPlayerStorageValue(cid, task_sys_storages[5], getPlayerStorageValue(cid, task_sys_storages[5]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[5])+1)) [19:49:55.655] if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then [19:49:55.659] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Daily Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[5]) .. "/" .. daily.count .. "] da Task do " .. daily.name .. ".") [19:49:55.667] end [19:49:55.667] if getPlayerStorageValue(cid, task_sys_storages[5]) >= daily.count then [19:49:55.671] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Daily Task System] Parab├®ns! Voc├¬ terminou a Task do "..daily.name..", volte ao npc parece receber sua recompensa.") [19:49:55.679] end [19:49:55.679] end [19:49:55.679] end [19:49:55.679] return true [19:49:55.683] end [19:49:55.683] Description: [19:49:55.683] [string "task_sys = {..."]:39: '}' expected (to close '{' at line 28) near '[' [19:49:55.687] done.
Postado Agosto 29, 2018 6 anos Autor depois me manda o seu mods pelo xml pq eu acho que configurou alguma parte errada!
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.