Ir para conteúdo

Ride Systen Para Po


galaverna

Posts Recomendados

olá porfavor eu vim pedir um script de ride que só desse para usar se tal monster tivesse invocado

tipo meu script de invoca é esse

 

local config = {
monsterName = "Alakazam",
maxSummon = 1,
storageHealth = 63145,
maxHealth = 8000
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, config.storageHealth) == -1 then
setPlayerStorageValue(cid, config.storageHealth, config.maxHealth)
end
local summon = getCreatureSummons(cid)
if(table.maxn(summon) < config.maxSummon) then
local p = doCreateMonster(config.monsterName, getCreaturePosition(cid))
doConvinceCreature(cid, p)
doCreatureAddHealth(p, -(config.maxHealth-getPlayerStorageValue(cid, config.storageHealth)))
doCreatureSay(cid, "Go, ".. config.monsterName .."", TALKTYPE_SAY)
doSendMagicEffect(getPlayerPosition(cid), 10)
else
for _, pid in pairs(summon) do
setPlayerStorageValue(cid, config.storageHealth, getCreatureHealth(pid))
doRemoveCreature(pid)
doCreatureSay(cid, "Back, ".. config.monsterName .."", TALKTYPE_SAY)
end
end
return TRUE
end

 

ai quando você usa o item se da use with emcima do monster "KADABRA" no caso ai você da ride. obrigado agradeço de já

quem me ajduar dou REP + VLWW

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...