• 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 1.X+ burnt, poisoned, energized are rising fast nekiro 7.72 version 1.5

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
930
Solutions
7
Reaction score
127
Location
Brazil
YouTube
caruniawikibr
hello, my fields, when hitting a monster or something, it makes the damage go up quickly something like 0.5 seconds, at least in the first damage, after going up about 5 or 6 damage, it goes back to normal time. does anyone know how to fix this?

i use tf 1.5 nekiro 7.72
 
Solution
nope, it means that tfs have wrong value :D instead of 10000 it should be 8000

Could you point me out why im not getting full damage? if i use firebomb my player get initial damage 10 and then 5
im using the updated xml fields
Lua:
<item id="1487" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute...
Hello man, menthioned to you already bro, that it's something that is wrong in you libs must be global.lua or lib folder you added something that shouldn't be there so add code, one by one do not simply copy paste it
 
global.lua

Lua:
math.randomseed(os.time())
dofile('data/lib/lib.lua')

ropeSpots = {
    384, 418
}

keys = {
    2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032
}

openDoors = {
    1211, 1214, 1233, 1236, 1251, 1254, 3546, 3537, 4915, 4918
}
closedDoors = {
    1210, 1213, 1232, 1235, 1250, 1253, 3536, 3545, 4914, 4917
}
lockedDoors = {
    1209, 1212, 1231, 1234, 1249, 1252, 3535, 3544, 4913, 4916
}

openExtraDoors = {
    1540, 1542
}
closedExtraDoors = {
    1539, 1541
}

openHouseDoors = {
    1220, 1222, 1238, 1240, 3539, 3548, 5083, 5085
}
closedHouseDoors = {
    1219, 1221, 1237, 1239, 3538, 3547, 5082, 5084
}

--[[ (Not currently used, but probably useful to keep up to date)
openQuestDoors = {
    1224, 1226, 1242, 1244, 1256, 1258, 3543, 3552, 5106, 5115, 5124, 5133, 5289, 5291, 5746, 5749, 6203,
    6205, 6260, 6262, 6899, 6908, 7041, 7050, 8552, 8554, 9176, 9178, 9278, 9280, 10279, 10281, 10476, 10485,
    10783, 10792, 12098, 12105, 12194, 12203, 19848, 19857, 19988, 19997, 20281, 20290, 25163, 25165
}
]]--
closedQuestDoors = {
    1223, 1225, 1241, 1243, 1255, 1257, 3542, 3551
}

--[[ (Not currently used, but probably useful to keep up to date)
openLevelDoors = {
    1228, 1230, 1246, 1248, 1260, 1262, 3541, 3550, 5104, 5113, 5122, 5131, 5293, 5295, 6207, 6209, 6264,
    6266, 6897, 6906, 7039, 7048, 8556, 8558, 9180, 9182, 9282, 9284, 10283, 10285, 10474, 10483, 10781,
    10790, 12096, 12103, 12196, 12205, 19846, 19855, 19986, 19995, 20279, 20288
}
]]--
closedLevelDoors = {
    1227, 1229, 1245, 1247, 1259, 1261, 3540, 3549
}

function getDistanceBetween(firstPosition, secondPosition)
    local xDif = math.abs(firstPosition.x - secondPosition.x)
    local yDif = math.abs(firstPosition.y - secondPosition.y)
    local posDif = math.max(xDif, yDif)
    if firstPosition.z ~= secondPosition.z then
        posDif = posDif + 15
    end
    return posDif
end

function getFormattedWorldTime()
    local worldTime = getWorldTime()
    local hours = math.floor(worldTime / 60)

    local minutes = worldTime % 60
    if minutes < 10 then
        minutes = '0' .. minutes
    end
    return hours .. ':' .. minutes
end

function getLootRandom()
    return math.random(0, MAX_LOOTCHANCE) / configManager.getNumber(configKeys.RATE_LOOT)
end

table.contains = function(array, value)
    for _, targetColumn in pairs(array) do
        if targetColumn == value then
            return true
        end
    end
    return false
end

string.split = function(str, sep)
    local res = {}
    for v in str:gmatch("([^" .. sep .. "]+)") do
        res[#res + 1] = v
    end
    return res
end

string.splitTrimmed = function(str, sep)
    local res = {}
    for v in str:gmatch("([^" .. sep .. "]+)") do
        res[#res + 1] = v:trim()
    end
    return res
end

string.trim = function(str)
    return str:match'^()%s*$' and '' or str:match'^%s*(.*%S)'
end

if not nextUseStaminaTime then
    nextUseStaminaTime = {}
end

function getPlayerDatabaseInfo(name_or_guid)
    local sql_where = ""

    if type(name_or_guid) == 'string' then
        sql_where = "WHERE `p`.`name`=" .. db.escapeString(name_or_guid) .. ""
    elseif type(name_or_guid) == 'number' then
        sql_where = "WHERE `p`.`id`='" .. name_or_guid .. "'"
    else
        return false
    end

    local sql_query = [[
        SELECT
            `p`.`id` as `guid`,
            `p`.`name`,
            CASE WHEN `po`.`player_id` IS NULL
                THEN 0
                ELSE 1
            END AS `online`,
            `p`.`group_id`,
            `p`.`level`,
            `p`.`experience`,
            `p`.`vocation`,
            `p`.`maglevel`,
            `p`.`skill_fist`,
            `p`.`skill_club`,
            `p`.`skill_sword`,
            `p`.`skill_axe`,
            `p`.`skill_dist`,
            `p`.`skill_shielding`,
            `p`.`skill_fishing`,
            `p`.`town_id`,
            `p`.`balance`,
            `gm`.`guild_id`,
            `gm`.`nick`,
            `g`.`name` AS `guild_name`,
            CASE WHEN `p`.`id` = `g`.`ownerid`
                THEN 1
                ELSE 0
            END AS `is_leader`,
            `gr`.`name` AS `rank_name`,
            `gr`.`level` AS `rank_level`,
            `h`.`id` AS `house_id`,
            `h`.`name` AS `house_name`,
            `h`.`town_id` AS `house_town`
        FROM `players` AS `p`
        LEFT JOIN `players_online` AS `po`
            ON `p`.`id` = `po`.`player_id`
        LEFT JOIN `guild_membership` AS `gm`
            ON `p`.`id` = `gm`.`player_id`
        LEFT JOIN `guilds` AS `g`
            ON `gm`.`guild_id` = `g`.`id`
        LEFT JOIN `guild_ranks` AS `gr`
            ON `gm`.`rank_id` = `gr`.`id`
        LEFT JOIN `houses` AS `h`
            ON `p`.`id` = `h`.`owner`
    ]] .. sql_where

    local query = db.storeQuery(sql_query)
    if not query then
        return false
    end

    local info = {
        ["guid"] = result.getNumber(query, "guid"),
        ["name"] = result.getString(query, "name"),
        ["online"] = result.getNumber(query, "online"),
        ["group_id"] = result.getNumber(query, "group_id"),
        ["level"] = result.getNumber(query, "level"),
        ["experience"] = result.getNumber(query, "experience"),
        ["vocation"] = result.getNumber(query, "vocation"),
        ["maglevel"] = result.getNumber(query, "maglevel"),
        ["skill_fist"] = result.getNumber(query, "skill_fist"),
        ["skill_club"] = result.getNumber(query, "skill_club"),
        ["skill_sword"] = result.getNumber(query, "skill_sword"),
        ["skill_axe"] = result.getNumber(query, "skill_axe"),
        ["skill_dist"] = result.getNumber(query, "skill_dist"),
        ["skill_shielding"] = result.getNumber(query, "skill_shielding"),
        ["skill_fishing"] = result.getNumber(query, "skill_fishing"),
        ["town_id"] = result.getNumber(query, "town_id"),
        ["balance"] = result.getNumber(query, "balance"),
        ["guild_id"] = result.getNumber(query, "guild_id"),
        ["nick"] = result.getString(query, "nick"),
        ["guild_name"] = result.getString(query, "guild_name"),
        ["is_leader"] = result.getNumber(query, "is_leader"),
        ["rank_name"] = result.getString(query, "rank_name"),
        ["rank_level"] = result.getNumber(query, "rank_level"),
        ["house_id"] = result.getNumber(query, "house_id"),
        ["house_name"] = result.getString(query, "house_name"),
        ["house_town"] = result.getNumber(query, "house_town")
    }

    result.free(query)
    return info
end

1651520346793.png
Post automatically merged:

item.lua
 

Attachments

global.lua

Lua:
math.randomseed(os.time())
dofile('data/lib/lib.lua')

ropeSpots = {
    384, 418
}

keys = {
    2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032
}

openDoors = {
    1211, 1214, 1233, 1236, 1251, 1254, 3546, 3537, 4915, 4918
}
closedDoors = {
    1210, 1213, 1232, 1235, 1250, 1253, 3536, 3545, 4914, 4917
}
lockedDoors = {
    1209, 1212, 1231, 1234, 1249, 1252, 3535, 3544, 4913, 4916
}

openExtraDoors = {
    1540, 1542
}
closedExtraDoors = {
    1539, 1541
}

openHouseDoors = {
    1220, 1222, 1238, 1240, 3539, 3548, 5083, 5085
}
closedHouseDoors = {
    1219, 1221, 1237, 1239, 3538, 3547, 5082, 5084
}

--[[ (Not currently used, but probably useful to keep up to date)
openQuestDoors = {
    1224, 1226, 1242, 1244, 1256, 1258, 3543, 3552, 5106, 5115, 5124, 5133, 5289, 5291, 5746, 5749, 6203,
    6205, 6260, 6262, 6899, 6908, 7041, 7050, 8552, 8554, 9176, 9178, 9278, 9280, 10279, 10281, 10476, 10485,
    10783, 10792, 12098, 12105, 12194, 12203, 19848, 19857, 19988, 19997, 20281, 20290, 25163, 25165
}
]]--
closedQuestDoors = {
    1223, 1225, 1241, 1243, 1255, 1257, 3542, 3551
}

--[[ (Not currently used, but probably useful to keep up to date)
openLevelDoors = {
    1228, 1230, 1246, 1248, 1260, 1262, 3541, 3550, 5104, 5113, 5122, 5131, 5293, 5295, 6207, 6209, 6264,
    6266, 6897, 6906, 7039, 7048, 8556, 8558, 9180, 9182, 9282, 9284, 10283, 10285, 10474, 10483, 10781,
    10790, 12096, 12103, 12196, 12205, 19846, 19855, 19986, 19995, 20279, 20288
}
]]--
closedLevelDoors = {
    1227, 1229, 1245, 1247, 1259, 1261, 3540, 3549
}

function getDistanceBetween(firstPosition, secondPosition)
    local xDif = math.abs(firstPosition.x - secondPosition.x)
    local yDif = math.abs(firstPosition.y - secondPosition.y)
    local posDif = math.max(xDif, yDif)
    if firstPosition.z ~= secondPosition.z then
        posDif = posDif + 15
    end
    return posDif
end

function getFormattedWorldTime()
    local worldTime = getWorldTime()
    local hours = math.floor(worldTime / 60)

    local minutes = worldTime % 60
    if minutes < 10 then
        minutes = '0' .. minutes
    end
    return hours .. ':' .. minutes
end

function getLootRandom()
    return math.random(0, MAX_LOOTCHANCE) / configManager.getNumber(configKeys.RATE_LOOT)
end

table.contains = function(array, value)
    for _, targetColumn in pairs(array) do
        if targetColumn == value then
            return true
        end
    end
    return false
end

string.split = function(str, sep)
    local res = {}
    for v in str:gmatch("([^" .. sep .. "]+)") do
        res[#res + 1] = v
    end
    return res
end

string.splitTrimmed = function(str, sep)
    local res = {}
    for v in str:gmatch("([^" .. sep .. "]+)") do
        res[#res + 1] = v:trim()
    end
    return res
end

string.trim = function(str)
    return str:match'^()%s*$' and '' or str:match'^%s*(.*%S)'
end

if not nextUseStaminaTime then
    nextUseStaminaTime = {}
end

function getPlayerDatabaseInfo(name_or_guid)
    local sql_where = ""

    if type(name_or_guid) == 'string' then
        sql_where = "WHERE `p`.`name`=" .. db.escapeString(name_or_guid) .. ""
    elseif type(name_or_guid) == 'number' then
        sql_where = "WHERE `p`.`id`='" .. name_or_guid .. "'"
    else
        return false
    end

    local sql_query = [[
        SELECT
            `p`.`id` as `guid`,
            `p`.`name`,
            CASE WHEN `po`.`player_id` IS NULL
                THEN 0
                ELSE 1
            END AS `online`,
            `p`.`group_id`,
            `p`.`level`,
            `p`.`experience`,
            `p`.`vocation`,
            `p`.`maglevel`,
            `p`.`skill_fist`,
            `p`.`skill_club`,
            `p`.`skill_sword`,
            `p`.`skill_axe`,
            `p`.`skill_dist`,
            `p`.`skill_shielding`,
            `p`.`skill_fishing`,
            `p`.`town_id`,
            `p`.`balance`,
            `gm`.`guild_id`,
            `gm`.`nick`,
            `g`.`name` AS `guild_name`,
            CASE WHEN `p`.`id` = `g`.`ownerid`
                THEN 1
                ELSE 0
            END AS `is_leader`,
            `gr`.`name` AS `rank_name`,
            `gr`.`level` AS `rank_level`,
            `h`.`id` AS `house_id`,
            `h`.`name` AS `house_name`,
            `h`.`town_id` AS `house_town`
        FROM `players` AS `p`
        LEFT JOIN `players_online` AS `po`
            ON `p`.`id` = `po`.`player_id`
        LEFT JOIN `guild_membership` AS `gm`
            ON `p`.`id` = `gm`.`player_id`
        LEFT JOIN `guilds` AS `g`
            ON `gm`.`guild_id` = `g`.`id`
        LEFT JOIN `guild_ranks` AS `gr`
            ON `gm`.`rank_id` = `gr`.`id`
        LEFT JOIN `houses` AS `h`
            ON `p`.`id` = `h`.`owner`
    ]] .. sql_where

    local query = db.storeQuery(sql_query)
    if not query then
        return false
    end

    local info = {
        ["guid"] = result.getNumber(query, "guid"),
        ["name"] = result.getString(query, "name"),
        ["online"] = result.getNumber(query, "online"),
        ["group_id"] = result.getNumber(query, "group_id"),
        ["level"] = result.getNumber(query, "level"),
        ["experience"] = result.getNumber(query, "experience"),
        ["vocation"] = result.getNumber(query, "vocation"),
        ["maglevel"] = result.getNumber(query, "maglevel"),
        ["skill_fist"] = result.getNumber(query, "skill_fist"),
        ["skill_club"] = result.getNumber(query, "skill_club"),
        ["skill_sword"] = result.getNumber(query, "skill_sword"),
        ["skill_axe"] = result.getNumber(query, "skill_axe"),
        ["skill_dist"] = result.getNumber(query, "skill_dist"),
        ["skill_shielding"] = result.getNumber(query, "skill_shielding"),
        ["skill_fishing"] = result.getNumber(query, "skill_fishing"),
        ["town_id"] = result.getNumber(query, "town_id"),
        ["balance"] = result.getNumber(query, "balance"),
        ["guild_id"] = result.getNumber(query, "guild_id"),
        ["nick"] = result.getString(query, "nick"),
        ["guild_name"] = result.getString(query, "guild_name"),
        ["is_leader"] = result.getNumber(query, "is_leader"),
        ["rank_name"] = result.getString(query, "rank_name"),
        ["rank_level"] = result.getNumber(query, "rank_level"),
        ["house_id"] = result.getNumber(query, "house_id"),
        ["house_name"] = result.getString(query, "house_name"),
        ["house_town"] = result.getNumber(query, "house_town")
    }

    result.free(query)
    return info
end

View attachment 67505
Post automatically merged:

item.lua
the problem is not in global.lua at least it must be somewhere inside lib. folder re-check which files have you changed or edited
 
change:
XML:
    <item id="1487" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="damage" value="20" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>

to:
Code:
    <item id="1487" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="200" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>

and try messing with ticks values
 
the problem came back and I didn't move items again, when opening the server it returned with the same speed... very strange I don't know how to solve this
 
show gif or video of what is happening
did you really did not move nothing inside libs folder? i was having the exact same problem and it was because i added a new file inside core folder.. also happened because i had codes in global.lua removing that solved my issue
the problem came back and I didn't move items again, when opening the server it returned with the same speed... very strange I don't know how to solve this
have another issue that players are not taking full damage example firt hit of fire hits 10 instead on 20 when i n items.xml i have it with 20
 
I really don't move lib, or nothing similar
honestly, these fields are bugged by nekiro, one time they work, suddenly they don't work anymore, there's a variation there, one hour at another time it doesn't
I am getting crazy
 
nope, it means that tfs have wrong value :D instead of 10000 it should be 8000

Could you point me out why im not getting full damage? if i use firebomb my player get initial damage 10 and then 5
im using the updated xml fields
Lua:
<item id="1487" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1488" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1489" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1489" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1490" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1491" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1492" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1493" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1494" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1495" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1496" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1497" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="20" />
    </item>
    <item id="1498" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
    </item>
    <item id="1499" name="rush wood">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="45" />
        <attribute key="blocking" value="1" />
    </item>
    <item id="1500" article="a" name="yellow flame">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1501" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1501" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1502" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1502" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1503" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1504" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1505" name="smoke">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
    </item>
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1487) --1492

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
}
don't know why but i have to double the value in order to get them work properly
now i get init damage 20 and after it damage 10, but why i have to double the values?
same for poison field for example
Lua:
<item id="1490" name="poison field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="10" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>


bro this fixed the issue of damage for me, i have to double the values, don't know the reason. @bpm91 hopeefully this would help you at some point
Code:
<item id="1487" article="a" name="fire field"> <!--AGREGADO-->
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="40" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1488" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1489" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1489" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1490" name="poison field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="10" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1491" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="60" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="50" />
        </attribute>
    </item>
    <item id="1492" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="40" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1493" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1494" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1495" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="60" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="50" />
        </attribute>
    </item>
    <item id="1496" name="poison field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="10" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1497" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="20" />
    </item>
    <item id="1498" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
    </item>
    <item id="1499" name="rush wood">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="45" />
        <attribute key="blocking" value="1" />
    </item>
    <item id="1500" article="a" name="yellow flame">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1501" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1501" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1502" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1502" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1503" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1504" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1505" name="smoke">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
    </item>>

also ticks are super low if i set them to 8000 not sure if this is the right behavior
 
Last edited:
Solution
I give up, annoying bug
try with my post
Could you point me out why im not getting full damage? if i use firebomb my player get initial damage 10 and then 5
im using the updated xml fields
Lua:
<item id="1487" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1488" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1489" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1489" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1490" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1491" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1492" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1493" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1494" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1495" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1496" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1497" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="20" />
    </item>
    <item id="1498" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
    </item>
    <item id="1499" name="rush wood">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="45" />
        <attribute key="blocking" value="1" />
    </item>
    <item id="1500" article="a" name="yellow flame">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1501" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1501" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1502" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1502" article="a" name="fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1503" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1504" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1505" name="smoke">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
    </item>
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1487) --1492

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
}
don't know why but i have to double the value in order to get them work properly
now i get init damage 20 and after it damage 10, but why i have to double the values?
same for poison field for example
Lua:
<item id="1490" name="poison field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="10" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>


bro this fixed the issue of damage for me, i have to double the values, don't know the reason. @bpm91 hopeefully this would help you at some point
Code:
<item id="1487" article="a" name="fire field"> <!--AGREGADO-->
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1488" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="40" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1488" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1489" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1489" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1490" name="poison field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="10" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1491" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="60" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="50" />
        </attribute>
    </item>
    <item id="1492" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="40" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1493" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="20" />
        </attribute>
    </item>
    <item id="1494" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1495" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="60" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="50" />
        </attribute>
    </item>
    <item id="1496" name="poison field">
        <attribute key="type" value="magicfield" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="10" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1497" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="20" />
    </item>
    <item id="1498" article="a" name="magic wall">
        <attribute key="type" value="magicfield" />
    </item>
    <item id="1499" name="rush wood">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="45" />
        <attribute key="blocking" value="1" />
    </item>
    <item id="1500" article="a" name="yellow flame">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1501" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="20" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1501" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1502" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire">
            <attribute key="initdamage" value="10" />
            <attribute key="ticks" value="8000" />
            <attribute key="count" value="7" />
            <attribute key="damage" value="10" />
        </attribute>
    </item>
    <item id="1502" article="a" name="fire field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="fire" />
    </item>
    <item id="1503" name="poison gas">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="poison">
            <attribute key="initdamage" value="5" />
            <attribute key="ticks" value="3000" />
            <attribute key="start" value="5" />
            <attribute key="damage" value="95" />
        </attribute>
    </item>
    <item id="1504" article="an" name="energy field">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="120" />
        <attribute key="field" value="energy">
            <attribute key="initdamage" value="30" />
            <attribute key="ticks" value="10000" />
            <attribute key="count" value="3" />
            <attribute key="damage" value="25" />
        </attribute>
    </item>
    <item id="1505" name="smoke">
        <attribute key="type" value="magicfield" />
        <attribute key="replaceable" value="0" />
    </item>>

also ticks are super low if i set them to 8000 not sure if this is the right behavior
offtopic: and if you gave up, but still want to be related to ot things im looking team mates for my server, that im planning to open server soon is based in tfs 1.5 have two servers war skull serv and rpg global enfo(), im planning to open war skull serv just for fun is almost everything done, it has events like ctf zombie change map, but i look for a team because administrate a server, web, handle new content, maybe fix bugs that could appear in the way or content changes, interact with players, advertising and so on, is too much for just one person even if we talk of a low player base. If you are interested message me
 
Last edited:
its work, ty so much <3
this is still a bit buggy :/ up
if player walk on field example fire, only the first step on field will count as init damage(set to 20) and every other step will count as damage set to 10. So if fire id is 1487 and player is constatnly walking on it every step on fire, player should receive 20 of damage instead of 10 how do i solve this? @Evil Puncker
do have this problem? @bpm91 ?
 
Last edited:
this is still a bit buggy :/ up
if player walk on field example fire, only the first step on field will count as init damage(set to 20) and every other step will count as damage set to 10. So if fire id is 1487 and player is constatnly walking on it every step on fire, player should receive 20 of damage instead of 10 how do i solve this? @Evil Puncker
do have this problem? @bpm91 ?
Have this problem, somebody has solved it yet?
 
Back
Top