
maurilioCarvalho
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
maurilioCarvalho deu reputação a Vodkart em (Resolvido)teleporta ao pegar niveltroca
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg) por
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, msg)
-
maurilioCarvalho deu reputação a Vodkart em (Resolvido)teleporta ao pegar niveltpadvance.lua
local pos, level = {x = 154, y = 60, z = 7}, 10 -- pos e level local msg = "oi voce foi teleportado" local storage = 15771 function onAdvance(cid, skill, oldLevel, newLevel) if skill == SKILL__LEVEL and newLevel == level and getPlayerStorageValue(cid, storage) <= 0 then doTeleportThing(cid, pos) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg) end return true end
adc isso no seu login.lua
registerCreatureEvent(cid, "TeleportAdvance")
TAG
<event type="advance" name="TeleportAdvance" event="script" value="tpadvance.lua"/>
------------------------------------
EDITADO, faltou a função pra mandar a msg verde kk
-
maurilioCarvalho deu reputação a Storm em (Resolvido)Ajuda em Tile que teleporta random@Jociel
local t = { {x = 555, y = 334, z = 7}, {x = 392, y = 309, z = 7}, {x = 330, y = 416, z = 7}, {x = 593, y = 409, z = 7}, {x = 593, y = 391, z = 7}, {x = 568, y = 391, z = 7}, {x = 568, y = 409, z = 7}, {x = 537, y = 391, z = 7}, {x = 505, y = 390, z = 7}, {x = 507, y = 409, z = 7}, } function onStepIn(cid, item, position, fromPosition) doTeleportThing(cid, t[math.random(1, #t)]) return true end