• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

funkcja = stopEvent a moze inaczej ?

Kahras

Member
Joined
Aug 6, 2012
Messages
101
Reaction score
7
Location
Warsaw
Witam
Mam problem m.in:
Code:
function doSwimCheckEq(cid)
    if isInRange(getThingPos(cid), swim.from, swim.to) then
        if(getCountEquipped(cid)) then
            doTeleportThing(cid, swim.kick)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Proba oszustwa!")
            doChangeSpeed(cid, getCreatureBaseSpeed(cid) - swim.speed)
            setPlayerStorageValue(cid, 5493, -1)
                if(hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == swim.outfit.lookType) then
                    doRemoveCondition(cid, CONDITION_OUTFIT)
                end
        end
    end
        addEvent(doSwimCheckEq, 1000, cid)
    return true
    end
getCountEquipped - funkcja sprawdzajaca czy gracz ma itemy na slotach(armora, legsow) itd..


Skrypt sprawdza co 1 sec graczowi na pozycjach od, do czy ma zalozone itemy.
Gdy ma teleportuje go do temple.

Skrypt będzie sie non-stop wykonywał i sprawdzał czy gracz jest na pozycjach od, do.
Da się to jakoś zablokować ze gdy raz już go tepnie to usunie graczowi addEvent?


Pozdrawiam
Kahras
 
Back
Top