• 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!

All new Weapon: Earth, Ice, Fire And Energy

Status
Not open for further replies.
It says 1000 charges, but TFS 0.2.10 only got 100 charges max, and with theese enchanted weapons, it makes it "50 charges" since it double attacks.

Any way to improove this? :/

Also the alters, anyone got the scripts for TFS to make it possible to etc click on spike sword, click on energy alter, and you get your spike sword enchanted with 100 charges? [max for tfs]

and about ?nil, nils? for arrows? its just to make a npc that trades 50 arrows for 1 enchanted arrow with "50" charges?
 
TFS, such as other cores has limit of 255 (char*) 'charges' per item.
Whats funny - it won't be fixed so fast, since there are problems with unserialize of map, if its increased to long* or so.
 
Did you tested it?

Because I think the weapons will dissappear after the 1000 charges are used.
And I don't think "showduration" is need, as the weapons don't have duration... and you forgot articles...

And to reduce the size of the post, you should only post the part of weapons.xml that contains the enchanted weapons...and you can make all the fire weapons use one file, all the energy weapons use another file and such... I will post em later here.

Anyways, nice job =D

so how i make the wapon not dissapear?
 
I may post tomorrow full release of my elemental system.
Everything works great except item charges (maximum allowed by OTServ is 255...)

Btw, damage you can do like this:

fire.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.0, 0, 0.8, 0)

local elementalCombat = createCombatObject()
setCombatParam(elementalCombat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatFormula(elementalCombat, COMBAT_FORMULA_SKILL, 0.0, 0, 0.2, 0)

function onUseWeapon(cid, var)
	return doMultiCombat(cid, {combat, elementalCombat}, var)
end

and add to global.lua:
Code:
function doMultiCombat(cid, combatArray, var)
	for x = 0, #combatArray do   
		doCombat(cid, combatArray[x], var)
	end
end



Bro, for me is working allright, only i have this msg on the Server

[29/03/2008 04:55:57] Lua Script Error: [Weapon Interface]
[29/03/2008 04:55:57] data/weapons/scripts/fire.lua:eek:nUseWeapon

[29/03/2008 04:55:57] luaDoCombat(). Combat not found


But is working allright,

What i do now? ._.
 
I hope somebody fix it cuz there's no prob but...

That spam my server xD
 
Guys i got an error when using it when i log off my enchanted weapons turn back to normall ;/
 
@fightingelf
i'm jw if you are going to post ur full system? like u said
 
i have error in comsole:
Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice rapier.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice spike sword.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice blacksteel sword.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice dragon slayer.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice relic sword.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice mystic blade.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice clerical mace.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice crystal mace.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice orcish maul.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice war hammer.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice cranial basher.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice barbarian axe.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice knight axe.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice headchopper.lua

luaAddDamageCondition(). Condition not found

Lua Script Error: [Weapon Interface]
data/weapons/scripts/ice heroic axe.lua

luaAddDamageCondition(). Condition not found
I use tfs.....
 
So has anyone found out how to make the weapon not disappear when the charges are over?? The key="decayTo" is not working... if I put this the weapon, it wont even charge at all... and if I don’t put this, the weapon will work but it will just disappear when its charges are done...
 
does this duel hit like rl? and does it disenagrate into the original weapon?
 
Why would you bring up a 1 year old thread wanting to download something that comes in every server now? =\
 
Thread closed. Stop bumping 1,5 years old threads...
 
Status
Not open for further replies.
Back
Top