Cześć, mam pytanie
Czy creaturescript onThink może lagować serwer przy kilkuset graczach online?
prosty skrypt, w stylu:
Czy creaturescript onThink może lagować serwer przy kilkuset graczach online?
prosty skrypt, w stylu:
PHP:
function onThink(cid, interval)
if(not isCreature(cid)) then
return
end
local playerid = getPlayerGUID(cid)
if (getPlayerSlotItem(cid, 5).actionid > 0) and (getPlayerSlotItem(cid, 5).actionid ~= playerid) then doRemoveItem(getPlayerSlotItem(cid, 5).uid)
doPlayerSendTextMessage(cid, 22, "Item removed.") end
end