------- config.lua --------You can see your server version at the top in your console, as explained in my signature.
this is config.lua lol------- config.lua --------
-- Config file for OTServ --
----------------------------
-- data directory location
datadir = "data/"
-- map location
map = "data/world/evolutions.otbm"
-- mapkind
-- options: OTBM for binary map, XML for OTX map
mapkind = "OTBM"
-- map store location (for XML only)
mapstore = "data/world/evolutions-mapstore.xml"
-- house store location (for XML only)
housestore = "data/world/evolutions-housestore.xml"
-- bans storage (for XML only)
banIdentifier = "data/bans.xml"
-- server name
servername = "Babek-Return 8.1 MMORPG"
Where ?
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.5, -30, -1.5, -50)
function onUseWeapon(cid, var)
doPlayerAddMana(cid, 20)
doCombat(cid, combat, var)
return true
end
In weapons.xml set the mana cost to 0.
Code:local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.5, -30, -1.5, -50) function onUseWeapon(cid, var) doPlayerAddMana(cid, 20) doCombat(cid, combat, var) return true end
No .. Thanks Very MuchDo you have errors with the one I posted?