Postado Abril 9, 2013 12 anos Bom galera achei um script de summon o ruim e que ele não tem limites da pra sumonar 500, queria saber como colocar limite function onCastSpell(cid, var) ----Player Status local playerpos = getPlayerPosition(cid) local cloth = getCreatureOutfit(cid) local health = getCreatureHealth(cid) local maxhp = getCreatureMaxHealth(cid) local summon = doSummonCreature("Clone", playerpos) ----Clone do Player doConvinceCreature(cid, summon) setCreatureMaxHealth(summon, maxhp) doCreatureAddHealth(summon, health) doSetCreatureOutfit(summon, cloth, -1) doSendMagicEffect(playerpos, 2) return end
Postado Abril 11, 2013 12 anos local max = 3 function onCastSpell(cid, var) if #getCreatureSummons(cid) >= max then return doPlayerSendCancel(cid, "Você tem sumons demais meu fí. Que isso!") end ----Player Status local playerpos = getPlayerPosition(cid) local cloth = getCreatureOutfit(cid) local health = getCreatureHealth(cid) local maxhp = getCreatureMaxHealth(cid) local summon = doSummonCreature("Clone", playerpos) ----Clone do Player doConvinceCreature(cid, summon) setCreatureMaxHealth(summon, maxhp) doCreatureAddHealth(summon, health) doSetCreatureOutfit(summon, cloth, -1) doSendMagicEffect(playerpos, 2) return end -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
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.