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

Solved TFS 1.1 weapon dissapear after attack [big problem]

Shadow Dan

Sh4dowDan
Joined
Jun 5, 2010
Messages
344
Reaction score
90
Location
Poland
After hit with for an example snakebite rod, it dissapears. But wand of inferno is fine.
It sometimes happens to melee weapons like mace etc but i try it again after and it is fine...
Sometimes snakebite rod dissapears after second hit.
I have no idea where is problem, what script can make this work like this.

If you don't know what i mean just watch video:

items.xml
Code:
    <item id="2182" article="a" name="snakebite rod">
        <attribute key="description" value="It seems to twitch and quiver as if trying to escape your grip." />
        <attribute key="weight" value="1900" />
        <attribute key="weaponType" value="wand" />
        <attribute key="shootType" value="smallearth" />
        <attribute key="range" value="3" />
    </item>
weapons.xml
Code:
    <wand id="2182" level="7" mana="2" min="8" max="18" type="earth"> <!-- Snakebit Rod -->
        <vocation name="Druid" />
    </wand>
creature.lua
Code:
function Creature:onChangeOutfit(outfit)
    return true
end

function Creature:onAreaCombat(tile, isAggressive)
    return true
end

function Creature:onTargetCombat(target)
    return true
end
 
Back
Top