[8.60] The Forgotten Server 0.4

PB3LL

Member
Joined
Oct 30, 2015
Messages
60
Reaction score
8
does this cast system work? How do you view other players casts?
 

PB3LL

Member
Joined
Oct 30, 2015
Messages
60
Reaction score
8
nvm i figured it out.

entering the client with no password or account info will show all casts. incase im not the only idiot..
 

tddf1995

New Member
Joined
Oct 13, 2016
Messages
9
Reaction score
3
Some things was been implemented guys:
* Fix BUG on cast system channel
* DoOpenChannel function was added
* Removed premium condition to be vice leader from a guild
 

bury

Excellent OT User
Joined
Jul 27, 2008
Messages
375
Reaction score
9
Trying this 64 bits version the quests/system.lua (with the Aid = 2000 and Uid = X) is bugged in the quests. My datapack was used in ovh debian server some years ago and the quest/system.lua worked properly then. When I'm doing a quest I receive a chest in the quest chest lol, I used a script that a user gave me and it works better but not 100%:

If the quest is not giving containers it gives you only the first item selected in the RME content (for example, doing the magma set quest, I only received the coat and the boots lol it doesnt give you the second or more items), and if it gives any tipe of container it's always empty.

quests/system.lua that im using now:
Lua:
local specialQuests = {
    [2001] = 30015 --Annihilator
}
local questsExperience = {
    [30015] = 10000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF, cid)
        return true
    end
    local storage = specialQuests[item.actionid]
    if(not storage) then
        storage = item.uid
        if(storage > 65535) then
            return false
        end
    end
    if(getPlayerStorageValue(cid, storage) > 0) then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
        return true
    end
    local items = {}
    local reward = 0
    local size = isContainer(item.uid) and getContainerSize(item.uid) or 0
    for i = 0, size do
        local tmp = getContainerItem(item.uid, i)
        if(tmp.itemid > 0) then
            table.insert(items, tmp)
        end
    end
    size = table.maxn(items)
    if(size == 1) then
        reward = doCopyItem(items[1], true)
    end
    local result = ""
    if(reward ~= 0) then
        local ret = getItemDescriptions(reward.uid)
        if(reward.type > 0 and isItemRune(reward.itemid)) then
            result = reward.type .. " charges " .. ret.name
        elseif(reward.type > 0 and isItemStackable(reward.itemid)) then
            result = reward.type .. " " .. ret.plural
        else
            result = ret.article .. " " .. ret.name
        end
    else
        if(size > 20) then
            reward = doCopyItem(item, false)
        elseif(size > 8) then
            reward = getThing(doCreateItemEx(1988, 1))
        else
            reward = getThing(doCreateItemEx(1987, 1))
        end
        for i = 1, size do
            local tmp = doCopyItem(items[i], true)
            if(doAddContainerItemEx(reward.uid, tmp.uid) ~= RETURNVALUE_NOERROR) then
                print("[Warning] QuestSystem:", "Could not add quest reward")
            else
                local ret = ", "
                if(i == 2) then
                    ret = " and "
                elseif(i == 1) then
                    ret = ""
                end
                result = result .. ret
                ret = getItemDescriptions(tmp.uid)
                if(tmp.type > 0 and isItemRune(tmp.itemid)) then
                    result = result .. tmp.type .. " charges " .. ret.name
                elseif(tmp.type > 0 and isItemStackable(tmp.itemid)) then
                    result = result .. tmp.type .. " " .. ret.plural
                else
                    result = result .. ret.article .. " " .. ret.name
                end
            end
        end
    end
    if(doPlayerAddItemEx(cid, reward.uid, false) ~= RETURNVALUE_NOERROR) then
        result = "You have found a reward weighing " .. getItemWeight(reward.uid) .. " oz. It is too heavy or you have not enough space."
    else
        result = "You have found " .. result .. "."
        setPlayerStorageValue(cid, storage, 1)
        if(questsExperience[storage] ~= nil) then
            doPlayerAddExp(cid, questsExperience[storage])
            doSendAnimatedText(getCreaturePosition(cid), questsExperience[storage], TEXTCOLOR_WHITE)
        end
    end
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, result)
    return true
end


How can I solve this?
 

Skuniasz

Well-Known Member
Joined
Jan 14, 2014
Messages
33
Reaction score
12
I have problem with paralyze rune, dont give exhaust for potions and heal, anyone can help me?
 

Skuniasz

Well-Known Member
Joined
Jan 14, 2014
Messages
33
Reaction score
12
I mean, when I use paralyze on target he can normally use heal and use potions. Where i xan fix this on this engine.
 

GhostWD

I'm in love with the var_dump()
Joined
Jan 25, 2009
Messages
185
Reaction score
27
Hi There! I've got problem during compilation I'm using libs from readme and VS2012 even with VS2017 it returns this error:

<code>
1> waitlist.cpp
1> weapons.cpp
1> Creating library C:\Users\x\src\vc10\x64\Release\theforgottenserver.lib and object C:\Users\x\src\vc10\x64\Release\theforgottenserver.exp
1> Generating code
1> Finished generating code
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</code>

any ideas? Thanks!
 
OP
Fir3element

Fir3element

Member
Joined
Dec 31, 2015
Messages
21
Reaction score
25
Location
Brazil
Hi There! I've got problem during compilation I'm using libs from readme and VS2012 even with VS2017 it returns this error:

<code>
1> waitlist.cpp
1> weapons.cpp
1> Creating library C:\Users\x\src\vc10\x64\Release\theforgottenserver.lib and object C:\Users\x\src\vc10\x64\Release\theforgottenserver.exp
1> Generating code
1> Finished generating code
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</code>

any ideas? Thanks!
try msvc10

https://github.com/Fir3element/binaries/raw/master/x32.rar
 
Top