Gostaria de modificar um script mas não sei como! queria que ao pescar os pokemon sumonado aparecesse em volta do meu pokemon,
creio eu que deve se modificar nessa linha em negrito porém não tenho muito conhecimento com script... se alguem puder me ajudar ficaria muito grato!!!
random = fishes.pokes[math.random(#fishes.pokes)]
for i = 1, math.random(random[2]) do peixe = doSummonCreature(random[1], playerpos)
if not isCreature(peixe) then
setPlayerStorageValue(cid, storageP, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
return true
end
setPokemonPassive(peixe, true)
doSetPokemonAgressiveToPlayer(peixe, cid)
setPlayerStorageValue(peixe, storageP, 1)
fightCondic(cid)
if #getCreatureSummons(cid) >= 1 then
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 0)
doChallengeCreature(getCreatureSummons(cid)[1], peixe)
else
doSendMagicEffect(getThingPos(cid), 0)
doChallengeCreature(cid, peixe)
end
end
setPlayerStorageValue(cid, storageP, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
Question
Furyox 1
Gostaria de modificar um script mas não sei como! queria que ao pescar os pokemon sumonado aparecesse em volta do meu pokemon,
creio eu que deve se modificar nessa linha em negrito porém não tenho muito conhecimento com script... se alguem puder me ajudar ficaria muito grato!!!
random = fishes.pokes[math.random(#fishes.pokes)]
for i = 1, math.random(random[2]) do
peixe = doSummonCreature(random[1], playerpos)
if not isCreature(peixe) then
setPlayerStorageValue(cid, storageP, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
return true
end
setPokemonPassive(peixe, true)
doSetPokemonAgressiveToPlayer(peixe, cid)
setPlayerStorageValue(peixe, storageP, 1)
fightCondic(cid)
if #getCreatureSummons(cid) >= 1 then
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 0)
doChallengeCreature(getCreatureSummons(cid)[1], peixe)
else
doSendMagicEffect(getThingPos(cid), 0)
doChallengeCreature(cid, peixe)
end
end
setPlayerStorageValue(cid, storageP, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
Link to comment
https://xtibia.com/forum/topic/249871-ajuda-com-script-de-pesca/Share on other sites
17 answers to this question
Recommended Posts