Advertisement
Guest User

Untitled

a guest
Sep 29th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. local t,daily = task_sys[getTaskMission(cid)], daily_task[getDailyTaskMission(cid)]
  2. 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
  3. setPlayerStorageValue(cid, task_sys_storages[3], getPlayerStorageValue(cid, task_sys_storages[3]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[3])+1))
  4. if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then
  5. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[3]) .. "/" .. t.count .. "] da Task do " .. t.name .. ".")
  6. end
  7. if getPlayerStorageValue(cid, task_sys_storages[3]) >= t.count then
  8. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] Parab?ns! Voc? terminou a Task do "..t.name..", volte ao npc parece receber sua recompensa.")
  9. end
  10. end
  11. 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
  12. setPlayerStorageValue(cid, task_sys_storages[5], getPlayerStorageValue(cid, task_sys_storages[5]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[5])+1))
  13. if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then
  14. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Daily Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[5]) .. "/" .. daily.count .. "] da Task do " .. daily.name .. ".")
  15. end
  16. if getPlayerStorageValue(cid, task_sys_storages[5]) >= daily.count then
  17. 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.")
  18. end
  19. end
  20. end
  21. return true
  22. end)
  23. [string "LuaInterface::loadBuffer"]:25: '<eof>' expected near 'end'
  24. (done).
  25.  
  26.  
  27.  
  28. end
  29. if getPlayerStorageValue(cid, task_sys_storages[3]) >= t.count then
  30. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] Parab?ns! Voc? terminou a Task do "..t.name..", volte ao npc parece receber sua recompensa.")
  31. end
  32. end
  33. 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
  34. setPlayerStorageValue(cid, task_sys_storages[5], getPlayerStorageValue(cid, task_sys_storages[5]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[5])+1))
  35. if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then
  36. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Daily Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[5]) .. "/" .. daily.count .. "] da Task do " .. daily.name .. ".")
  37. end
  38. if getPlayerStorageValue(cid, task_sys_storages[5]) >= daily.count then
  39. 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.")
  40. end
  41. end
  42. end
  43. return true
  44. end)
  45. [string "LuaInterface::loadBuffer"]:25: '<eof>' expected near 'end'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement