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

[8.0] - TFS 1.2

the player only loses experience once after death, each subsequent death does not take his experience

additionally player: addBlessing does not work

edit--

You can't have less than 3780 Exp idk why
 
Last edited:
the player only loses experience once after death, each subsequent death does not take his experience

additionally player: addBlessing does not work

edit--

You can't have less than 3780 Exp idk why
That's because I didn't implement the rook system, so the minimum experience a player can get before being sent to the rookgard is 3780.
 
1585999360071.png

Theres animation on player when use area spells: exevo gran mas vis, exori, exevo gran mas pox etc
How to fix it?
 
Lua:
local config = {
    [ITEM_GOLD_COIN] = {changeTo = ITEM_PLATINUM_COIN},
    [ITEM_PLATINUM_COIN] = {changeBack = ITEM_GOLD_COIN, changeTo = ITEM_CRYSTAL_COIN},
    [ITEM_CRYSTAL_COIN] = {changeBack = ITEM_PLATINUM_COIN}
}

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local coin = config[item:getId()]
    if coin.changeTo and item.type == 100 then
        item:remove()
        player:addItem(coin.changeTo, 1)
        doSendAnimatedText(player, "$$$", TEXTCOLOUR_BLUE)
    elseif coin.changeBack then
        item:remove(1)
        player:addItem(coin.changeBack, 100)
        doSendAnimatedText(player, "$$$", TEXTCOLOUR_BLUE)
    else
        return false
    end
    return true
end

this function does not work for me. Maybe you have another example?
 
Lua:
local config = {
    [ITEM_GOLD_COIN] = {changeTo = ITEM_PLATINUM_COIN},
    [ITEM_PLATINUM_COIN] = {changeBack = ITEM_GOLD_COIN, changeTo = ITEM_CRYSTAL_COIN},
    [ITEM_CRYSTAL_COIN] = {changeBack = ITEM_PLATINUM_COIN}
}

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local coin = config[item:getId()]
    if coin.changeTo and item.type == 100 then
        item:remove()
        player:addItem(coin.changeTo, 1)
        doSendAnimatedText(player, "$$$", TEXTCOLOUR_BLUE)
    elseif coin.changeBack then
        item:remove(1)
        player:addItem(coin.changeBack, 100)
        doSendAnimatedText(player, "$$$", TEXTCOLOUR_BLUE)
    else
        return false
    end
    return true
end

this function does not work for me. Maybe you have another example?
Will you suggest something in the subject ??
doSendAnimatedText
 
@krejken
In this engine function doSendAnimatedText working correctly, but order of parameters has changed.

Example of use:
doSendAnimatedText("text", getCreaturePosition(cid), TEXTCOLOR_BLUE)
 
@krejken
In this engine function doSendAnimatedText working correctly, but order of parameters has changed.

Example of use:
doSendAnimatedText("text", getCreaturePosition(cid), TEXTCOLOR_BLUE)

Very cool but it doesn't work ehh. . :(
Lua:
local config = {
    [ITEM_GOLD_COIN] = {changeTo = ITEM_PLATINUM_COIN},
    [ITEM_PLATINUM_COIN] = {changeBack = ITEM_GOLD_COIN, changeTo = ITEM_CRYSTAL_COIN},
    [ITEM_CRYSTAL_COIN] = {changeBack = ITEM_PLATINUM_COIN}
}

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local coin = config[item:getId()]
    if coin.changeTo and item.type == 100 then
        item:remove()
        player:addItem(coin.changeTo, 1)
        doSendAnimatedText("$$$", getCreaturePosition(cid), TEXTCOLOR_BLUE)
    elseif coin.changeBack then
        item:remove(1)
        player:addItem(coin.changeBack, 100)
        doSendAnimatedText("$$$", getCreaturePosition(cid), TEXTCOLOR_BLUE)
    else
        return false
    end
    return true
end
 
@krejken
In your script cid variable is undefinied, you schould use player variable.

Code:
doSendAnimatedText("$$$", getCreaturePosition(player), TEXTCOLOR_BLUE)
 


A problem with the player's position relative to the direction of entering the plots. If you go west then you stop with your face north go east and turn your character south see movie
 


A problem with the player's position relative to the direction of entering the plots. If you go west then you stop with your face north go east and turn your character south see movie
Already fixed , If someone using this files has something to contribute please do it ,even small fixes ,everything is welcome ,help me to keep updating this distro ,you can help here or on github . =)
 
Could any moderator please update the first post by replacing the old download with this one and also the changelog ,and remove spoiler bugs and spoiler changes?Thanks.

Added teleport summons to master -- Crédits to Delusion --
Added stopAttackingAtExit in config.lua (working with players and monsters)
Added server save when close the .exe -- crédits to danielsalim1 --
Added old school exhausted (celohere/forgottenserver (https://github.com/celohere/forgottenserver/tree/exhausted-old-school)) -- crédits to me --
Added summons drop corpse option on config.lua -- crédits to me --
Added autoloot gold coins (celohere/forgottenserver (https://github.com/celohere/forgottenserver/tree/celohere-autoloot-gold))
Fixed container queryAdd issues -- Crédits to Nekiro --
Fixed push the last creature from stack -- crédits to Jhon_ and Emilianenko --
Fixed auto stack -- Crédits Nekiro --
Fixed Container::queryMaxCount() bug -- Crédits to Nekiro --
Fixed issue with armors and shields -- crédits to me --
Fixed combat modes -- crédits to me --
Fixed max summons bug -- crédits to me --
Fixed visual bug in beds -- crédits to me --
Fixed a bug related to npc selling runes trying to stack inside full containers -- crédits to me --
Fixed another bug related to runes trying to stack when conjured inside full containers -- crédits me -- (and thanks Kubakos and OTAmator for helping me reporting and testing.)
Removed level requirement from runes
Cleaned the datapack
Updated actions
Updated depotlocker(now are counting all items inside locker not just inside depot)
Updated some text collors
Changed the map for Yurots map
Changed /clean command to clean corpses(celohere/forgottenserver (https://github.com/celohere/forgottenserver/tree/clean-removing-corpses))


Fixed hotkeys message again(was showing wrong number of runes) -- crédits to danielsalim1 --
fixed the use of lifefluid on hotkeys -- crédits to me --
fixed fluid wrong message on hotkeys -- crédits to danielsalim1 --
fixed bug of runes in full container -- crédits to me --
fixed monsters walk dashing -- crédits to me --
fixed crash on login -- crédits to danielsalim1 and mattyx14 --
fixed stairhope delay (now its working properly on config.lua)
fixed send parcel to offline players -- crédits to Gesior.pl --
fixed stackpos -- crédits to Nekiro --
fixed Check that player partner isn't self -- crédits to jo3bingham --
fixed Update premium time on login -- crédits to Nekiro --
fixed client debug when gm or monster spawn on player -- crédits to Ferrus --
fixed distance attacks not hitting targets on the same sqm -- crédits to Anastaciaa --
fixed logout delay when player is disconected
Moved shared experience formula to Lua -- crédits to DSpeichert ,edumntg and me --
removed party description onlook ex:Your party has 2 members and 0 pending invitations.
removed guild online and count members onlook
removed damage ,heal and experience message to spectators
changed /clean command ,now cleans protect zones
changed unjustified kill warning message to red =)
changed skill advance message
added player ban -- crédits to Gesior.pl -- (now the ban for excessive player killing is banning only the player, and not the entire account)
added auto recharge ammo (arrows and bolts recharges automatically now) -- crédits to Joe Rod and Emilianenko --
added autostack, configurable on config.lua
added allow fight back, configurable on config.lua
added loot message, configurable on config.lua
added loot channel -- crédits to cbrm --
(if you dont want the loot channel to open everytime a player login, just remove this line on creaturescripts <event type="login" name="loot" script="loot.lua"/>
added field owner name onlook -- crédits to Steve Albert --
added magic wall and wild growth counter
added players can walk through GMs in ghost mode -- crédits to me --
added Walkthrough everything Ctrl + Arrow keys -- crédits to Printer --
added classicAttackSpeed, configurable on config.lua -- crédits to Mkalo --
Monster direction fix (monsters standing to your left look to the east and monsters standing to your right look to the west.) -- crédits to joseluis2g --


Known Bugs:

*skull in protect zone ,if you throw some field and enter pz ,you will get white skull if someone step in the field
 

Attachments

  • forgottenserver-8.0_32x and 64x.rar
    3.8 MB · Views: 41 · VirusTotal
Back
Top