Postado Dezembro 21, 2012 12 anos Bom, no meu server o protection level é 200, queria um script que mesmo em pvp, os Hls passe no meio dos player abaixo do level 200. Tanto fora do pz, quanto dentro. ___NEED HELP___ http://tibiaking.com...rewalker-boots/ http://tibiaking.com...0660-banip-ban/ http://tibiaking.com...mpensa-ao-upar/ http://tibiaking.com...amulet-e-bless/ http://tibiaking.com...id-e-um-pedido/ http://tibiaking.com/forum/topic/20014-script-de-soulfire-de-holy/ Editado Dezembro 21, 2012 12 anos por jNo (veja o histórico de edições) (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Dezembro 21, 2012 12 anos Consegui achar 1 que so server em protection zone. Vai em data/creaturescripts/scripts, duplica um arquivo e nomeia para "antitrap" sem as aspas e nele cole: function onThink(cid, interval) if getTilePzInfo(getCreaturePosition(cid)) then return true end local minuto = 1 -- quantos minuto para atravesar o player. local protectionLevel = 100 -- protection level do server. local position = getPlayerPosition(cid) if getPlayerLookDir(cid) == 0 then position = {x=position.x, y=position.y-1, z=position.z} elseif getPlayerLookDir(cid) == 1 then position = {x=position.x+1, y=position.y, z=position.z} elseif getPlayerLookDir(cid) == 2 then position = {x=position.x, y=position.y+1, z=position.z} elseif getPlayerLookDir(cid) == 3 then position = {x=position.x-1, y=position.y, z=position.z} end for i = 0, 255 do local o = 0 position.stackpos = i local tile = getTileThingByPos(position) if isPlayer(tile.uid) and getPlayerLevel(tile.uid) < protectionLevel then local o = 1 setPlayerStorageValue(cid, 56421, getPlayerStorageValue(cid,56421)+1) if getPlayerStorageValue(cid, 56421) >= 120*minuto then setPlayerStorageValue(cid, 56421, 0) doTeleportThing(cid, getPlayerPosition(tile.uid)) end break elseif i == 255 and o == 0 then setPlayerStorageValue(cid, 56421, 0) end end return true end Depois em data/creaturescripts/creaturescripts.xml cole a tag: <event type="think" name="AntiTrap" event="script" value="antitrap.lua"/> por último no arquivo data/creaturescripts/scripts/login.lua, antes do último "return true" cole: registerCreatureEvent(cid, "AntiTrap") --------------------------------------------- Vai funcionar assim, se tu ficar virado na direção do player por 1 minuto e o level dele for mais baixo que o level de proteção do server, seu char vai ser teleportado para a posição do char low level. Isso vai funcionar apenas fora de protection zones. Esse script e do jhon992 agora o do vodkart . nas source vai em player.ccp bool Player::canWalkthrough(const Creature* creature) const { if(!creature) return true; if(creature == this) return false; const Player* player = creature->getPlayer(); if(!player) return false; if(g_game.getWorldType() == WORLD_TYPE_NO_PVP && player->getTile()->ground && player->getTile()->ground->getID() != ITEM_GLOWING_SWITCH) return true; uint32_t protectionLevel = g_config.getNumber(ConfigManager::PROTECTION_LEVEL); if(player->getLevel() < protectionLevel && player->getTile()->ground && player->getTile()->ground->getID() != ITEM_GLOWING_SWITCH) return true; return player->isGhost() && getGhostAccess() < player->getGhostAccess(); } Ou bool Player::canWalkthrough(const Creature* creature) const { if(!creature) return true; if(creature == this) return false; const Player* player = creature->getPlayer(); if(!player) return false; if(g_game.getWorldType() == WORLD_TYPE_NO_PVP && player->getTile()->ground && player->getTile()->ground->getID() != ITEM_GLOWING_SWITCH) return true; return player->isGhost() && getGhostAccess() < player->getGhostAccess(); } Att, Skyligh Entrada Como Membro 14 / 08 / 2012 Entrada Como Suporte 05 / 12 / 2012 Saída Como Suporte 06 / 01 / 2013 Contato : [email protected] / [email protected]
Postado Dezembro 22, 2012 12 anos Autor Bele, vlw ! (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Dezembro 22, 2012 12 anos Duvida Sanada ? Se foi avisa ai . Att, Skyligh Entrada Como Membro 14 / 08 / 2012 Entrada Como Suporte 05 / 12 / 2012 Saída Como Suporte 06 / 01 / 2013 Contato : [email protected] / [email protected]
Postado Dezembro 22, 2012 12 anos Autor Na verdade não, mais acho que não vou encontrar esse tipo de script, pode fechar então ;P vlw! Editado Dezembro 22, 2012 12 anos por jNo (veja o histórico de edições) (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
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.