• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

weapons scripts!

Sehoxe

New Member
Joined
Feb 15, 2010
Messages
53
Reaction score
1
Hello can somebody help me with this?

i need weapon scripts, for example a weapon with 10% of double hit chance
a weapon with 10% paralyze chance

anyone? :D
 
You can see your server version at the top in your console, as explained in my signature.
------- 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 ?
 
------- 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 ?
this is config.lua lol
Open the server and there it is
05391ec36527aa5a99bf1541e896ee53.png


I'm pretty sure you are using Aries 0.4.0
 
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
 
Last edited:
Thx ,, Done :):)
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
 
Back
Top