• 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!

Potrzebny skrypt na teleporty gdy wbije 3k lvl.

Status
Not open for further replies.

Jensej

Member
Joined
Feb 28, 2009
Messages
807
Reaction score
8
Witam.
Jako że jestem słaby w tych sprawach, proszę was o skrypt na teleport.
Jeśli gracz wbije 3k lvl teleportuje go automatycznie w dane miejsce. Dziękuje.
 
Proszę.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if(getTileInfo(getThingPos(cid)).protection) then
                doPlayerSendCancel(cid, "Nie mozesz wybrac Pikaczu w protection zone!")
                return true
        end
        
        if(#getCreatureSummons(cid) == 0) then
                doCreatureSay(cid, "Pikaczu wybieram cie!", TALKTYPE_MONSTER)
                doConvinceCreature(cid, doCreateMonster("Pikaczu", getThingPos(cid)))
        else
                doCreatureSay(cid, "Pikaczu wracaj do pokeballa!", TALKTYPE_MONSTER)
                for i, v in ipairs(getCreatureSummons(cid)) do
                        doRemoveCreature(v)
                end
        end
        return true
end
 
Proszę.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if(getTileInfo(getThingPos(cid)).protection) then
                doPlayerSendCancel(cid, "Nie mozesz wybrac Pikaczu w protection zone!")
                return true
        end
        
        if(#getCreatureSummons(cid) == 0) then
                doCreatureSay(cid, "Pikaczu wybieram cie!", TALKTYPE_MONSTER)
                doConvinceCreature(cid, doCreateMonster("Pikaczu", getThingPos(cid)))
        else
                doCreatureSay(cid, "Pikaczu wracaj do pokeballa!", TALKTYPE_MONSTER)
                for i, v in ipairs(getCreatureSummons(cid)) do
                        doRemoveCreature(v)
                end
        end
        return true
end

Piotrze dziękuje Ci za skrypt, ale jednak nie chodziło mi o takiego. Proszę aby skrypt teleportował gracza automatycznie po nabiciu 3k lvl w dane miejsce, aby gracz mógł sobie wziąść nagrode.
 
Code:
function onAdvance(cid, skill, oldLevel, newLevel) if skill == SKILL__LEVEL and newLevel == 3000 then doTeleportThing(cid, {x = , y= , z=}) end return true end
 
trzeba raczej jakiegos storage zrobic i newLevel >= 3000.
 
Status
Not open for further replies.
Back
Top