Advertisement
poxipox

Untitled

Apr 6th, 2024
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1.     add_mission = function(cid, mission)
  2.         print('lib add_mission mission :' .. mission)
  3.         if getPlayerStorageValue(cid, glbMissionCfg.storage_add) ~= mission then
  4.             if glbMissionCfg.mission[mission].kill then
  5.                 for monster, data in pairs(glbMissionCfg.mission[mission].kill) do
  6.                     -- print(glbMissionCfg.storage_mission+data.storage)
  7.                     setPlayerStorageValue(cid, glbMissionCfg.storage_mission+data.storage, 0) -- reset stroage mission (auto kill check
  8.                 end
  9.             end
  10.  
  11. NA:
  12.  
  13.     add_mission = function(cid, mission)
  14.         print('lib add_mission mission :' .. mission)
  15.         if getPlayerStorageValue(cid, glbMissionCfg.storage_add) ~= mission then
  16.             if glbMissionCfg.mission[mission].kill then
  17.                 for monster, data in pairs(glbMissionCfg.mission[mission].kill) do
  18.                     -- print(glbMissionCfg.storage_mission+data.storage)
  19.                     setPlayerStorageValue(cid, glbMissionCfg.storage_mission+data.storage, 0) -- reset stroage mission (auto kill check
  20.                 end
  21.             else
  22.                 setPlayerStorageValue(cid, glbMissionCfg.storage_mission+1, 0) -- RESET MISSION
  23.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement