Hello
i want that this scrip
can be only 1 spell joined to this other
This spell work of the next form:
if you know WoDBO this spell do the fuction of "Transform" and in this case the spell work only for 1 vocation
For example if im knight: i say "transform" and i go to get the new vocation but if im paladin i go to need say other name of spell and i want 1 spell for the 2 scripts
can be posible? :S
bye
PD: if you want a best explain, sayme :/
i want that this scrip
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)
knight = {lookType=235} --LOOKTYPE NUEVA TRANSFORM
ext = 1000
local config = {
vocation = 5 , ---vocacion que se transforma
mana = 1000 , --Nose
efect = 26 , -- Efecto que lanza cada 1 segundo
actual = 4 , -- Vocacion Actual
level = 100 --- Nivel de la transform
}
local efecto = {
flash = 18 , --<Efecto Cambio de vocacion
}
---Knight---
function tran(cid)
if getPlayerVocation(cid) == config.vocation then
if getPlayerMana(cid) >= config.mana then
doSendMagicEffect(getPlayerPosition(cid), config.efect)
addEvent(tran,ext,cid)
end
end
end
function onCastSpell(cid, var)
---Knight---
if getPlayerVocation(cid) == config.actual then
if getPlayerLevel(cid) >= config.level then
doPlayerSetVocation(cid,config.vocation)
doSetCreatureOutfit(cid, knight, -1)
addEvent(tran,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 100 level to change vocation")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "You cannot now.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return true
end
can be only 1 spell joined to this other
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)
Paladin = {lookType=236} --LOOKTYPE NUEVA TRANSFORM
ext = 1000
local config = {
vocation = 6 , ---vocacion que se transforma
mana = 1000 , --Nose
efect = 26 , -- Efecto que lanza cada 1 segundo
actual = 3 , -- Vocacion Actual
level = 100 --- Nivel de la transform
}
local efecto = {
flash = 18 , --<Efecto Cambio de vocacion
}
---Paladin---
function tran(cid)
if getPlayerVocation(cid) == config.vocation then
if getPlayerMana(cid) >= config.mana then
doSendMagicEffect(getPlayerPosition(cid), config.efect)
addEvent(tran,ext,cid)
end
end
end
function onCastSpell(cid, var)
---Paladin---
if getPlayerVocation(cid) == config.actual then
if getPlayerLevel(cid) >= config.level then
doPlayerSetVocation(cid,config.vocation)
doSetCreatureOutfit(cid, paladin, -1)
addEvent(tran,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 100 level to change vocation")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "You cannot now.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return true
end
This spell work of the next form:
if you know WoDBO this spell do the fuction of "Transform" and in this case the spell work only for 1 vocation
For example if im knight: i say "transform" and i go to get the new vocation but if im paladin i go to need say other name of spell and i want 1 spell for the 2 scripts
can be posible? :S
bye
PD: if you want a best explain, sayme :/