Ir para conteúdo

[Pedido Entregue]Variar Spells Por Sexo.


mjsm4ever

Posts Recomendados

Aew gente blz? To aki denovo pra perturbar a vida dos scripter =]

 

É possivel variar uma spell de masculino e feminino?

 

Exemplo: tenho uma spell, que transforma o player em um monster (tipo Tiger), e aumenta os skills e talz, mas no caso feminino ficaria melhor um monster feminino não acha?

 

Quando ele usa, transforma em tigre, e ela em outro animal feminino

ou

2 spells, um para masc e outro feminino:

"Chamado do tigre !"

"Chamado da raposa !"

 

E que aumentasse os skills (5 all skill)

e velocidade 5%

 

Mas que o masc. não possa usar o do feminino e vice-versa

 

É possível? Obrigado por me aturarem Scripters =)

Editado por EncoreNumb
Link para o comentário
Compartilhar em outros sites

manda o script da sua magia pra ver como ela é. possivel é sim, mas precisa do script da magia

 

Desculpe !

 

Ai está !

 

--[[

Spell by Shawak

Wolf transform

]]--

 

local time = 120 * 1000 -- 120 * 1000 = 2 min

local addShielding = 20 -- how much shielding should be added

 

 

local wolf = {lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition, CONDITION_PARAM_TICKS, time)

setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, addShielding)

setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)

setCombatCondition(combat, condition)

 

local speed = createConditionObject(CONDITION_HASTE)

setConditionParam(speed, CONDITION_PARAM_TICKS, time)

setConditionFormula(speed, 0.7, -56, 0.7, -56)

setCombatCondition(combat, speed)

 

local outfit = createConditionObject(CONDITION_OUTFIT)

setConditionParam(outfit, CONDITION_PARAM_TICKS, time)

addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)

setCombatCondition(combat, outfit)

 

local exhaust = createConditionObject(CONDITION_EXHAUST)

setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)

setConditionParam(exhaust, CONDITION_PARAM_TICKS, time)

setCombatCondition(combat, exhaust)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

Link para o comentário
Compartilhar em outros sites

Acho que dá pra checar o sexo e variar isto aqui:

 

local wolf = {lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

 

local outfit = createConditionObject(CONDITION_OUTFIT)

setConditionParam(outfit, CONDITION_PARAM_TICKS, time)

addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)

setCombatCondition(combat, outfit)

Link para o comentário
Compartilhar em outros sites

testa isso aí:

 

local time = 120 * 1000 -- 120 * 1000 = 2 min

local addShielding = 20 -- how much shielding should be added

 

-------------------------------------------- aqui é o do macho------------------

local wolf = {lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition, CONDITION_PARAM_TICKS, time)

setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, addShielding)

setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)

setCombatCondition(combat, condition)

 

local speed = createConditionObject(CONDITION_HASTE)

setConditionParam(speed, CONDITION_PARAM_TICKS, time)

setConditionFormula(speed, 0.7, -56, 0.7, -56)

setCombatCondition(combat, speed)

 

local outfit = createConditionObject(CONDITION_OUTFIT)

setConditionParam(outfit, CONDITION_PARAM_TICKS, time)

addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)

setCombatCondition(combat, outfit)

 

local exhaust = createConditionObject(CONDITION_EXHAUST)

setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)

setConditionParam(exhaust, CONDITION_PARAM_TICKS, time)

setCombatCondition(combat, exhaust)

----------------------------------------- aqui começa a femea-------------------

local raposa = {lookType = 53, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition2 = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition2, CONDITION_PARAM_TICKS, time)

setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, addShielding)

setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE)

setCombatCondition(combat2, condition2)

 

local speed2 = createConditionObject(CONDITION_HASTE)

setConditionParam(speed2, CONDITION_PARAM_TICKS, time)

setConditionFormula(speed2, 0.7, -56, 0.7, -56)

setCombatCondition(combat2, speed2)

 

local outfit2 = createConditionObject(CONDITION_OUTFIT)

setConditionParam(outfit2, CONDITION_PARAM_TICKS, time)

addOutfitCondition(outfit2, raposa.lookTypeEx, raposa.lookType, raposa.lookHead, raposa.lookBody, raposa.lookLegs, raposa.lookFeet)

setCombatCondition(combat2, outfit2)

 

local exhaust2 = createConditionObject(CONDITION_EXHAUST)

setConditionParam(exhaust2, CONDITION_PARAM_SUBID, 2)

setConditionParam(exhaust2, CONDITION_PARAM_TICKS, time)

setCombatCondition(combat2, exhaust2)

 

 

function onCastSpell(cid, var)

if getPlayerSex(cid) == 1 then

return doCombat(cid, combat, var)

else

return doCombat(cid, combat2, var)

end

end

 

não se esqueça de editar o outfit da raposa, eu coloquei 53 mas nem sei o que vai dar.

 

flw

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...