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

[TFS] Ice rapier script?

Inteligentny

Im not.
Joined
Aug 2, 2008
Messages
485
Reaction score
0
Because in config.lua I have set
Code:
removeAmmoWhenUsingDistanceWeapon = "no"
Ice rapier is not dissapering but I want to make it dissapear, Is it even possible?

I dont know too much about scripting, tried to make something like this:


PHP:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat, COMBAT_PARAM_EFFECT, 512)  
setCombatFormula(combat, COMBAT_FORMULA_SKILL, -100, 0, 1.0, -200) 


function onUseWeapon(cid, var) 
    return doRemoveItem(item.uid,1)
end

return doRemoveItem(item.uid,1) < I know its sux xD tried everything :p dont loguht but help newbie please

its not working :p have no idea how to make item dissapearing after 1 shot

Could someone advanced help me out with this?
 
Elf your idea is not working :///


I added to weapons.xml

Code:
<melee id="2396" function="default"/>


and items.xml is:

Code:
<item id="2396" article="an" name="ice rapier">
		<attribute key="description" value="A deadly but fragile weapon."/>
		<attribute key="weight" value="1500"/>
		<attribute key="attack" value="100"/>
		<attribute key="defense" value="1"/>
		<attribute key="weaponType" value="sword"/>
		[COLOR="Red"]<attribute key="charges" value="0"/>[/COLOR]



Fare Fray, thank its working now with this script
 
Back
Top Bottom