kubernik
Active Member
- Joined
- Jul 4, 2014
- Messages
- 99
- Solutions
- 7
- Reaction score
- 38
Hello!
i'm using tfs 0.3.6
i have big problem with storage :/
i'm using storage to count killed monster and i seen that sometimes my storage has changed to string like this:
count from 1 to 4 AND...
4
-1
`ç$·˙
`ç$·˙
`ç$·˙
`ç$·˙
i dont know what function work wrong im trying to delete all from lib, globalevents and problem still is..
now i'm trying to detect problem with creaturescripts, but maybe someone know what is wrong and testing with that function:
anyone?
i'm using tfs 0.3.6
i have big problem with storage :/
i'm using storage to count killed monster and i seen that sometimes my storage has changed to string like this:
count from 1 to 4 AND...
4
-1
`ç$·˙
`ç$·˙
`ç$·˙
`ç$·˙
i dont know what function work wrong im trying to delete all from lib, globalevents and problem still is..
now i'm trying to detect problem with creaturescripts, but maybe someone know what is wrong and testing with that function:
Lua:
function onThink(interval, lastExecution, thinkInterval)
--if getPlayerStorageValue(cid, 99992122) == 1 then
for _, cid in ipairs(getPlayersOnline()) do
if tonumber(getPlayerStorageValue(cid, 99992129)) ~= nil then
else
doPlayerAddItem(cid, 2160, 1)
end
if tonumber(getPlayerStorageValue(cid, 99992130)) ~= nil then
else
print(getPlayerStorageValue(cid, 99992130))
doPlayerAddItem(cid, 2159, 1)
setPlayerStorageValue(cid, 99992130,0)
end
if tonumber(getPlayerStorageValue(cid, 99992131)) ~= nil then
else
print(getPlayerStorageValue(cid, 99992131))
doPlayerAddItem(cid, 2158, 1)
setPlayerStorageValue(cid, 99992131,0)
end
--print(getPlayerStorageValue(cid, 99992129))
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,getPlayerStorageValue(cid, 99992129))
--if not exhaustion.check(cid, 99992125) then
if getPlayerStorageValue(cid, 99992130) < os.time() then
setPlayerStorageValue(cid, 99992130, os.time()+5)
setPlayerStorageValue(cid, 99992129,0)
elseif getPlayerStorageValue(cid, 99992130) >= os.time() then
if getPlayerStorageValue(cid, 99992129) < 0 then
setPlayerStorageValue(cid, 99992129, 0)
setPlayerStorageValue(cid, 99992131, 0)
elseif getPlayerStorageValue(cid, 99992129) >= 0 and getPlayerStorageValue(cid, 99992129) <= 200 then
setPlayerStorageValue(cid, 99992129, getPlayerStorageValue(cid, 99992129)+1)
setPlayerStorageValue(cid, 99992131, getPlayerStorageValue(cid, 99992131)+1)
elseif getPlayerStorageValue(cid, 99992129) >= 200 then
--doPlayerSendCancel(cid, "Calm down! You click too fast!")
--exhaustion.set(cid, 99992125, 2)
setPlayerStorageValue(cid, 99992129,0)
setPlayerStorageValue(cid, 99992131,0)
return true
end
end
end
--end
--end
return true
end
anyone?