oen432
Legendary OT User
Show me yourExperience on boots not working for me.
onGainExperience
from player.lua
Show me yourExperience on boots not working for me.
onGainExperience
from player.lua
Show me youronGainExperience
fromplayer.lua
function Player:onGainExperience(source, exp, rawExp)
if not source or source:isPlayer() then
exp = us_onGainExperience(self, source, exp, rawExp)
return exp
end
Code:function Player:onGainExperience(source, exp, rawExp) if not source or source:isPlayer() then exp = us_onGainExperience(self, source, exp, rawExp) return exp end
Add at the end before return exp
Ty, its working now. =DAdd at the end before return exp
By that I meant at the end of the function.
function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder)
-- Exercise Weapons
if isInArray(exercise_ids,item.itemid) then
self:sendCancelMessage('You cannot move this item outside this container.')
return false
end
-- No move if item count > 20 items
local tile = Tile(toPosition)
if tile and tile:getItemCount() > 20 then
self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return false
end
-- Loot Analyser apenas 11.x+
if self:getClient().os == CLIENTOS_NEW_WINDOWS then
local t = Tile(fromCylinder:getPosition())
local corpse = t:getTopDownItem()
if corpse then
local itemType = corpse:getType()
if itemType:isCorpse() and toPosition.x == CONTAINER_POSITION then
self:sendLootStats(item)
end
end
end
i have this on player.lua i dont see the return true you talking about
Code:function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) -- Exercise Weapons if isInArray(exercise_ids,item.itemid) then self:sendCancelMessage('You cannot move this item outside this container.') return false end -- No move if item count > 20 items local tile = Tile(toPosition) if tile and tile:getItemCount() > 20 then self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) return false end -- Loot Analyser apenas 11.x+ if self:getClient().os == CLIENTOS_NEW_WINDOWS then local t = Tile(fromCylinder:getPosition()) local corpse = t:getTopDownItem() if corpse then local itemType = corpse:getType() if itemType:isCorpse() and toPosition.x == CONTAINER_POSITION then self:sendLootStats(item) end end end
This is TFS 1.3 only.Also i have this error when player login . i have corelua on data and registered on global.lua i also have const.lua on data
View attachment 37405
This is based on TFS, not updated to include all 1.3 features like
setCustomAttribute
and getCustomAttribute
.Can't do that, this is not my fault but how TFS handles area damage. I guess you have PvP on your server so that's why they are taking damage from this explosion.Explosion on kill damaged player, and it give a real damage, can make it to not work on player?
If they got 20% damage explosion on kill and killed a ferumbras with 70k hp, and there another bloker or killer at ferumbras, all will die. haha
you can always play with spectators and "doTargetCombatHealth"Can't do that, this is not my fault but how TFS handles area damage. I guess you have PvP on your server so that's why they are taking damage from this explosion.
Yay, I love when TFS is retarded and forces more coding! Oh well...you can always play with spectators and "doTargetCombatHealth"
You can't check what really hit the player, target isn't enough, this could be normal PvP fight. No way to tell if damaged by that explosion.Or an onHealthChange/manaChange script to return 0 depending on secure mode.
Go through installation once again, looks like you didn't add stuff properly.I had no way to test everyone, but attributes [nº12] ~ [nº55] dont works for me :/
Any idea how I could solve this?
Go through installation once again, looks like you didn't add stuff properly.
Sure, addedIts possible to do ignore drop on monsters? example, if someone try to boting on rotworms to get fast fossil crystal, can select ignore monsters to drop crystal fossil? I want to ignore low lvl monsters to drop crystal fossils..
CRYSTAL_FOSSIL_DROP_LEVEL
to configuration. Version 2.4.0 uploaded.