Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_mission = function(cid, mission)
- print('lib add_mission mission :' .. mission)
- if getPlayerStorageValue(cid, glbMissionCfg.storage_add) ~= mission then
- if glbMissionCfg.mission[mission].kill then
- for monster, data in pairs(glbMissionCfg.mission[mission].kill) do
- -- print(glbMissionCfg.storage_mission+data.storage)
- setPlayerStorageValue(cid, glbMissionCfg.storage_mission+data.storage, 0) -- reset stroage mission (auto kill check
- end
- end
- NA:
- add_mission = function(cid, mission)
- print('lib add_mission mission :' .. mission)
- if getPlayerStorageValue(cid, glbMissionCfg.storage_add) ~= mission then
- if glbMissionCfg.mission[mission].kill then
- for monster, data in pairs(glbMissionCfg.mission[mission].kill) do
- -- print(glbMissionCfg.storage_mission+data.storage)
- setPlayerStorageValue(cid, glbMissionCfg.storage_mission+data.storage, 0) -- reset stroage mission (auto kill check
- end
- else
- setPlayerStorageValue(cid, glbMissionCfg.storage_mission+1, 0) -- RESET MISSION
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement