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

CreatureEvent [TFS 1.3 / 1.4] Upgrade System

Show me your onGainExperience from player.lua

Code:
    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
By that I meant at the end of the function.
 
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
 
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
37405
 
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
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 TFS 1.3 only.
 
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
 
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
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.
 
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.
you can always play with spectators and "doTargetCombatHealth"
 
you can always play with spectators and "doTargetCombatHealth"
Yay, I love when TFS is retarded and forces more coding! Oh well...

Or an onHealthChange/manaChange script to return 0 depending on secure mode.
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.

Update will be uploaded soon.
Version 2.3.8 released.
 
Last edited:
I had no way to test everyone, but attributes [nº12] ~ [nº55] dont works for me :/

Any idea how I could solve this?
 
Last edited:
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.
 
Go through installation once again, looks like you didn't add stuff properly.

I checked the installation step by step, but I think it does not work because of some previous modification in my tfs.... dual wielding system
maybe causing some interference

(i'm using this version of tfs 1.3 github/GustavoContreiras)



even so, I will make good use of the part that works =)

 
Its 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..
 
Its 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..
Sure, added CRYSTAL_FOSSIL_DROP_LEVEL to configuration. Version 2.4.0 uploaded.
 
Back
Top