-=[TFS]=- 0.3.6 8.60 - PET HIT COM MAGIA NO PLAYER QUE O SUMONO OU SEJA NO DOMADOR ELE ATACA A CRITATURA PLAYER OU MONSTER MAIS MAGIA EM AREA AFETA O DOMADOR
SCRIPT QUE USO ESTA FALTANDO PRA O PET NÃO ATACA COM MAGIA NO DOMADOR OU SEJA QUEM SUMONO O PET
functiononUse(cid, item, fromPosition, itemEx, toPosition)localpetName = "[PET] NIVEL MAXIMO"localstorageValue = 83712localplayerPets = getCreatureSummons(cid)-- Verifica se o jogador já tem um pet invocadoif #playerPets <= 0then-- Se não houver pet invocado, invoca um novolocalnewPet = doSummonMonster(cid, petName)ifnewPetthen
setPlayerStorageValue(cid, storageValue, 1)endelse-- Se houver pet invocado, verifica se é o pet correto e remove-ofor_, petinipairs(playerPets) doifgetCreatureName(pet) == petNamethen
doRemoveCreature(pet)endendendreturntrueend
<?xml version="1.0" encoding="UTF-8"?><monstername="[PET] NIVEL MAXIMO"nameDescription="[PET] NIVEL MAXIMO"race="fire"experience=""speed="999"manacost="0"><healthnow="950000000"max="950000000"/><looktype="35"corpse="3058"/><targetchangeinterval=""chance="1000000000"/><strategyattack="1000000000"defense="1000000000"/><flags><flagskull="4"/><flagsummonable="0"/><flagattackable="0"/><flaghostile="0"/><flagillusionable="0"/><flagconvinceable="0"/><flagpushable="0"/><flagcanpushitems="0"/><flagcanpushcreatures="0"/><flagtargetdistance="0"/><flagstaticattack="0"/><flagrunonhealth="0"/></flags><attacks><attackname="melee"interval=""min="-9584571530"max="-95845715300"/><attackname="firecondition"interval="1000"chance="1000000"range="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="fire"/><attributekey="areaEffect"value="yellowspark"/></attack><attackname="death"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="mortarea"/></attack><attackname="speed"interval="1000"chance="1000000"radius="100"target="100"speedchange="-1000000"duration="100000"><attributekey="areaEffect"value="poison"/></attack><attackname="strength"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="blackspark"/></attack><attackname="firefield"interval="1000"chance="1000000"radius="100"target="100"><attributekey="areaEffect"value="explosion"/></attack><attackname="fire"interval="1000"chance="1000000"range="100"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="explosion"/><attributekey="areaEffect"value="YELLOWENERGY"/></attack><attackname="fire"interval="1000"chance="1000000"range="100"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="ENERGYBALL"/><attributekey="areaEffect"value="assassin"/></attack><attackname="fire"interval="1000"chance="1000000"range="100"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="ICE"/><attributekey="areaEffect"value="WATERCREATURE"/></attack><attackname="fire"interval="1000"chance="1000000"range="100"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="fire"/><attributekey="areaEffect"value="firearea"/></attack><attackname="fire"interval=""chance="1000000"range="100"radius="100"target="1"min="-1000000000"max="-1000000000"><attributekey="shootEffect"value="DEATH"/><attributekey="areaEffect"value="EXPLOSION"/></attack><attackname="manadrain"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="energyarea"/></attack><attackname="energy"interval="1000"chance="1000000"length="100"spread="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="redshimmer"/></attack><attackname="poisoncondition"interval="1000"chance="1000000"length="100"spread="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="greenspark"/></attack><attackname="lifedrain"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="greenshimmer"/></attack><attackname="death"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="mortarea"/></attack><attackname="speed"interval="1000"chance="1000000"radius="100"target="100"speedchange="-1000000"duration="100000"><attributekey="areaEffect"value="poison"/></attack><attackname="strength"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="blackspark"/></attack><attackname="firefield"interval="1000"chance="1000000"radius="100"target="100"><attributekey="areaEffect"value="explosion"/></attack><attackname="fire"interval="1000"chance="1000000"range="100"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="fire"/><attributekey="areaEffect"value="firearea"/></attack><attackname="fire"interval="1000"chance="1000000"range="100"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="shootEffect"value="fire"/><attributekey="areaEffect"value="firearea"/></attack><attackname="fire"interval=""chance="1000000"range="100"radius="100"target="1"min="-1000000000"max="-1000000000"><attributekey="shootEffect"value="HOLY"/><attributekey="areaEffect"value="EXPLOSION"/></attack><attackname="manadrain"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="energyarea"/></attack><attackname="energy"interval="1000"chance="1000000"length="100"spread="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="redshimmer"/></attack><attackname="poisoncondition"interval="1000"chance="1000000"length="100"spread="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="greenspark"/></attack><attackname="lifedrain"interval="1000"chance="1000000"radius="100"target="100"min="-1000000"max="-1000000"><attributekey="areaEffect"value="greenshimmer"/></attack><attackname="fire"interval=""chance="1000000"range="100"radius="100"target="100"min="-150"max="-250"><attributekey="shootEffect"value="fire"/><attributekey="areaEffect"value="firearea"/></attack><attackname="fire"interval=""chance="1000000"range="100"radius="100"target="1"min="-1000000000"max="-1000000000"><attributekey="shootEffect"value="HOLY"/><attributekey="areaEffect"value="EXPLOSION"/></attack><attackname="manadrain"interval=""chance="1000000"radius="100"target="100"min="-1000000000"max="-10000000000"><attributekey="areaEffect"value="energyarea"/></attack><attackname="lifedrain"interval=""chance="1000000"radius="100"target="100"min="-1000000000"max="-10000000000"><attributekey="areaEffect"value="greenshimmer"/></attack></attacks><defensesarmor="999"defense="999"><defensename="healing"interval="100"chance="100000"min="950000000"max="950000000"><attributekey="areaEffect"value="blueshimmer"/></defense><defensename="speed"interval="2000"chance="100000"speedchange="900"duration="9000"><attributekey="areaEffect"value="redshimmer"/></defense></defenses><immunities><immunityphysical="100"/><immunityenergy="100"/><immunityfire="100"/><immunitypoison="100"/><immunitylifedrain="100"/><immunityparalyze="100"/><immunityoutfit="100"/><immunitydrunk="100"/><immunityinvisible="100"/><immunityice="100"/><immunitydeath="100"/><immunityholy="100"/></immunities><voicesinterval="1000"chance="1000000"><voicesentence="INVENCIVEL!"yell="1"/></voices><loot><itemid="1988"chance="1000000"><inside><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/><itemid="2159"countmax="1000000"chance1="1000000000"chancemax="1000000000"/></inside></item></loot></monster>
Pergunta
Muvuka 1
-=[TFS]=- 0.3.6 8.60 - PET HIT COM MAGIA NO PLAYER QUE O SUMONO OU SEJA NO DOMADOR ELE ATACA A CRITATURA PLAYER OU MONSTER MAIS MAGIA EM AREA AFETA O DOMADOR
Item que sumona pet
SCRIPT QUE USO ESTA FALTANDO PRA O PET NÃO ATACA COM MAGIA NO DOMADOR OU SEJA QUEM SUMONO O PET
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados