Postado Maio 29, 2016 9 anos Queria que quando o jogador atingisse o level 141 fosse teleportado de X area para Y area, e aparecesse a seguinte mensagem no default "Você foi teleportado por ter atingido o level 141." function onTime() local area = {{x=1065,y=1129,z=7},{x=1135,y=1190,z=7}} local topos = {x=1031, y=1086, z=7} local remove, clean = true, true for x = area[1].x - 1, area[2].x + 1 do for y = area[1].y - 1, area[2].y + 1 do local pos = {x=x, y=y, z=area[1].z} local m = getTopCreature(pos).uid if remove ~= false and m ~= 0 and isMonster(m) then doRemoveCreature(m) end if clean ~= false then doCleanTile(pos, false) end if m ~= 0 and isPlayer(m) then doTeleportThing(m, topos) end end end return true end Script do VODKART
Postado Maio 30, 2016 8 anos function onAdvance(cid, skill, oldLevel, newLevel) local storage, lvl, pos = 789654, 141, {x=160,y=54,z=7} if skill == SKILL__LEVEL and newLevel >= lvl and getPlayerStorageValue(cid, storage) <= 0 then doTeleportThing(cid, pos) doPlayerSendTextMessage(cid,22,"Você foi teleportado por ter atingido o level 141.") setPlayerStorageValue(cid, storage, 1) end return true end [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Maio 31, 2016 8 anos Autor Possivel fazer esse script pra funcionar caso o jogador esteja em determinada area.. De x=1065,y=1129,z=7 até x=1135,y=1190,z=7
Postado Maio 31, 2016 8 anos function onAdvance(cid, skill, oldLevel, newLevel) local storage, lvl, pos = 789654, 141, {x=160,y=54,z=7} local from = {x = 1050, y = 1505, z = 7} -- canto superior esquerdo. local to = {x = 1050, y = 1635, z = 7} -- canto inferior direito. if isInRange (getThingPos (cid), from, to) then if skill == SKILL__LEVEL and newLevel >= lvl and getPlayerStorageValue(cid, storage) <= 0 then doTeleportThing(cid, pos) doPlayerSendTextMessage(cid,22,"Você foi teleportado por ter atingido o level 141.") setPlayerStorageValue(cid, storage, 1) end end return true end Não dou suporte via PM, crie um tópico caso tenha dúvidas. Isso previne que outras pessoas com a mesma dúvida criem tópicos desnecessários.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.