ExonSeren 0 Postado Julho 8, 2009 Share Postado Julho 8, 2009 (editado) Oi, tipo eu tava precisando das seguintes magias: Druid : utura mas sio Paladin: utamo mas sio Knight: utani tempo hur utito mas sio é tipo, qm tiver elas funfando me explica tb como q eu coloco elas no OT? sou leigo do assunto (OT 8.42, MYSTIC SPIRIT) S2 Abraços Editado Julho 8, 2009 por ExonSeren Link para o comentário Compartilhar em outros sites More sharing options...
satan666 12 Postado Julho 9, 2009 Share Postado Julho 9, 2009 (@.@) I,,,I Tentarei explicar da melhor forma. primeiro xml. <instant name="Heal Party" words="utura mas sio" lvl="32" mana="0" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="party/heal.lua"> <vocation name="Druid" /> <vocation name="Elder Druid"/> </instant> <instant name="Protect Party" words="utamo mas sio" lvl="32" mana="0" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="party/protect.lua"> <vocation name="Paladin" /> <vocation name="Royal Paladin"/> </instant> <instant name="Train Party" words="utito mas sio" lvl="32" mana="0" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="party/train.lua"> <vocation name="Knight" /> <vocation name="Elite Knight"/> </instant> <instant name="Charge" words="utani tempo hur" lvl="25" mana="100" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="support/charge.lua"> <vocation name="Knight" /> <vocation name="Elite Knight"/> </instant> agora scripts.lua druid. utura mas sio: nome do script = heal.lua se ja for um arquivo lua e so por heal. local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 2) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) function onCastSpell(cid, var) local pos = getCreaturePosition(cid) if(getPlayerParty(cid) == nil) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local membersList = getPartyMembers(cid) if(type(membersList) ~= 'table' or table.maxn(membersList) <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local affectedList = {} for _, pid in ipairs(membersList) do if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then table.insert(affectedList, pid) end end local tmp = table.maxn(affectedList) if(tmp <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local mana = (tmp * 50) if(getCreatureMana(cid) < mana) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end if(doCombat(cid, combat, var) ~= LUA_NO_ERROR) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end doCreatureAddMana(cid, -mana, FALSE) doPlayerAddSpentMana(cid, mana) for _, pid in ipairs(affectedList) do doAddCondition(pid, condition) end return LUA_NO_ERROR end paladin. utamo mas sio: nome do script = protect.lua se ja tiver o arquivo lua e so protect local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, 3) function onCastSpell(cid, var) local pos = getCreaturePosition(cid) if(getPlayerParty(cid) == nil) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local membersList = getPartyMembers(cid) if(type(membersList) ~= 'table' or table.maxn(membersList) <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local affectedList = {} for _, pid in ipairs(membersList) do if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then table.insert(affectedList, pid) end end local tmp = table.maxn(affectedList) if(tmp <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local mana = (tmp * 50) if(getCreatureMana(cid) < mana) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end if(doCombat(cid, combat, var) ~= LUA_NO_ERROR) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end doCreatureAddMana(cid, -mana, FALSE) doPlayerAddSpentMana(cid, mana) for _, pid in ipairs(affectedList) do doAddCondition(pid, condition) end return LUA_NO_ERROR end agora knight. utani tempo hur: nome do script = charge local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, 5000) setConditionFormula(condition, 0.9, -81, 0.9, -81) setCombatCondition(combat, condition) function onCastSpell(cid, var) return doCombat(cid, combat, var) end de novo knight. utito mas sio: nome do script = train local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition, CONDITION_PARAM_SKILL_MELEE, 3) function onCastSpell(cid, var) local pos = getCreaturePosition(cid) if(getPlayerParty(cid) == nil) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local membersList = getPartyMembers(cid) if(type(membersList) ~= 'table' or table.maxn(membersList) <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local affectedList = {} for _, pid in ipairs(membersList) do if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then table.insert(affectedList, pid) end end local tmp = table.maxn(affectedList) if(tmp <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local mana = (tmp * 50) if(getCreatureMana(cid) < mana) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end if(doCombat(cid, combat, var) ~= LUA_NO_ERROR) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end doCreatureAddMana(cid, -mana, FALSE) doPlayerAddSpentMana(cid, mana) for _, pid in ipairs(affectedList) do doAddCondition(pid, condition) end return LUA_NO_ERROR end pronto creio que so. Sabedoria Abstinencia Trabalho Ativismo Naturalidade Link para o comentário Compartilhar em outros sites More sharing options...
ExonSeren 0 Postado Julho 9, 2009 Autor Share Postado Julho 9, 2009 (editado) Opa, vlw ai vc tem me ajudado mt, quando eu termina o server te mando o IP,vlw msm vo testa aki e aki outra coisa outro dia te pedi um comando !ranks, eu fiz tudo certim, so q ele n funfa, ai eu peguei e fiz um site, ai eu nem vo usa + é so pra te da um toque EDIT:NAO FUNFO, vo posta o erro dps, nao sei oq é eu tentei pegar de outro OT so q n funfo Vlw Abraços Editado Julho 10, 2009 por ExonSeren Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados