-- Saving-related
-- houseDataStorage usage may be found at README.
houseDataStorage = "binary"
saveGlobalStorage = true
storePlayerDirection = false
savePlayerData = true
-- Loot
-- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
checkCorpseOwner = true
monsterLootMessage = 0////HERE
monsterLootMessageType = 29
-- Ghost mode
ghostModeInvisibleEffect = false
ghostModeSpellEffects = true
Code available in URL below:
http://pastebin.com/6FXUgWbR
registerCreatureEvent(cid, 'itemstats')
<event type="kill" name="itemstats" script="randomstats_kill.lua"/>
<event type="kill" name="itemstats" event="script" value="randomstats_kill.lua"/>
Nice, thanks dude. Gonna try to get it working todaywell, if you have necessary functions it should be easy.
You need item attributes like TFS 0.4 - this is only reason it won't run on 1.0
data\creaturescripts\scripts\randomstats_kill.lua
Code:Code available in URL below: http://pastebin.com/6FXUgWbR
add this to login.lua
Code:registerCreatureEvent(cid, 'itemstats')
and this to creaturescripts.xml:
if won't work try this:Code:<event type="kill" name="itemstats" script="randomstats_kill.lua"/>
Code:<event type="kill" name="itemstats" event="script" value="randomstats_kill.lua"/>
It's different kind of script - this one applies upgrades to lootI was wondering if it was possible to make this to where I can use an item on the weapon, giving it the attributes randomly. I am opening up a warserver, and this is a must!
I'd do that, but I need functions first and 1.0 is based on 0.2 so it don't have them(yet?)there should be update to tfs 1.0