• 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.41/42] The Forgotten Server 0.3.4PL2 (Crying Damson)

Status
Not open for further replies.
Server is currently offline on otservlist.org
But it's online and more than 6 players logged in
 

Attachments

TFS 0.34 PL 2 Block otservlist (musisz sam odblokować w dev c ++)^_^
 
HI guys, I'll update my server for 0.3.4 because 0.3.2 crash ever, but I have one problem with first items, when I login in char I receive first itens forever, look my script:

Ok I help you.
Change your script with this one:
Code:
local commonItems = {
-- ITEMS ALL VOC RECEIVE
{itemid=2457, count=1}, -- steel helmet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2152, count=5}, -- 50 platinum coins
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1} -- shovel
}

local firstItems = {
{ -- SORC ITEMS
{itemid=2190, count=1}, -- wand of vortex
{itemid=7457, count=1}, -- spell book
{itemid=2200, count=1} -- aol
},
{ -- DRUID ITEMS
{itemid=2182, count=1}, -- snakebite rod
{itemid=7457, count=1}, -- spellbook
{itemid=2200, count=1} -- aol
},
{ -- PALADIN ITEMS
{itemid=2456, count=1}, -- bow
{itemid=7457, count=1}, -- spell book
{itemid=2544, count=100}, -- 100 arrows
{itemid=2200, count=1}, -- aol
{itemid=1294, count=20}
},
{ -- KNIGHT ITEMS
{itemid=2413, count=1}, -- clerical mace
{itemid=2518, count=1}, -- beholder shield
{itemid=2200, count=1} -- aol
}
}

for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end

function onLogin(cid)
if getPlayerGroupId(cid) < 2 then
if getPlayerStorageValue(cid, 90808) <= 0 then
doPlayerAddItem(cid, 1988, 1)

local giveItems = firstItems[getPlayerVocation(cid)]

if giveItems ~= nil then
for _, v in ipairs(giveItems) do
doPlayerAddItem(cid, v.itemid, v.count or 1)
end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You received your first items depending on your vocation.")
end
setPlayerStorageValue(cid, 90808, 1)
end
end
return TRUE
end

Rep+ me for help
 
I've problem with :
Code:
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
> ERROR: Failed to save account: 1!
Your database sql is readonly, click propeteries in your file example: database.sql and uncheck options "Read Only"

Sorry for double post...
 
local noneItems =
{
2173,
2471,
2472,
2523,
2400,
2361,
2495,
2640
}
local noneItemsBP =
{
}
local sorcItems =
{
2173,
2323,
8870,
8900,
2190,
2160,
2647,
2643
}
local sorcItemsBP =
{
5710,
7731,
8189,
5952,
2666
}
local druidItems =
{
2173,
2323,
8870,
8900,
2182,
2160,
2647,
2643
}
local druidItemsBP =
{
5710,
7731,
8189,
5952,
2666
}
local knightItems =
{
2173,
2491,
2476,
2515,
2160,
2477,
2643
}
local knightItemsBP =
{
5710,
7731,
8189,
5952,
2429,
7385,
2666
}
local pallItems =
{
2173,
2457,
8891,
2455,
2543,
2477,
2643
}
local pallItemsBP =
{
5710,
7731,
8189,
5952,
6529,
2160,
2666
}

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
if getPlayerVocation(cid) == 0 then
for i = 1, table.maxn(noneItems) do
doPlayerAddItem(cid, noneItems, 1)
end
local bp = doPlayerAddItem(cid, 2000, 1)
for i = 1, table.maxn(noneItemsBP) do
doAddContainerItem(bp, noneItemsBP, 1)
end
elseif isSorcerer(cid) == true then
for i = 1, table.maxn(sorcItems) do
doPlayerAddItem(cid, sorcItems, 1)
end
local bp = doPlayerAddItem(cid, 2000, 1)
for i = 1, table.maxn(sorcItemsBP) do
doAddContainerItem(bp, sorcItemsBP, 1)
end
elseif isDruid(cid) == true then
for i = 1, table.maxn(druidItems) do
doPlayerAddItem(cid, druidItems, 1)
end
local bp = doPlayerAddItem(cid, 2000, 1)
for i = 1, table.maxn(druidItemsBP) do
doAddContainerItem(bp, druidItemsBP, 1)
end
elseif isKnight(cid) == true then
for i = 1, table.maxn(knightItems) do
doPlayerAddItem(cid, knightItems, 1)
end
local bp = doPlayerAddItem(cid, 2000, 1)
for i = 1, table.maxn(knightItemsBP) do
doAddContainerItem(bp, knightItemsBP, 1)
end
elseif isPaladin(cid) == true then
for i = 1, table.maxn(pallItems) do
doPlayerAddItem(cid, pallItems, 1)
end
local bp = doPlayerAddItem(cid, 2000, 1)
for i = 1, table.maxn(pallItemsBP) do
doAddContainerItem(bp, pallItemsBP, 1)
end
end
end
setPlayerStorageValue(cid, 30001, 1)
return TRUE
end
 
2 Bugs by me:

1.

-> If I hold on a hotkey, only 1 sec this comes, but i drink only 1 time a potion(8x "Using one of 17 mana potions...", BUT i drink only 1!).

2.
[16/05/2009 20:55:56] mysql_real_query(): INSERT INTO `server_motd` (`id`, `world_id`, `text`) VALUES (1, 0, 'Welcome to ~"Not Interesting"~!'); - MYSQL ERROR: Duplicate entry '1-0' for key 1 (1062)

Can someone say me how to fix the 2 bugs ?
 
Sorry for double post, but i want say that this..
2.
Quote:
[16/05/2009 20:55:56] mysql_real_query(): INSERT INTO `server_motd` (`id`, `world_id`, `text`) VALUES (1, 0, 'Welcome to ~"Not Interesting"~!'); - MYSQL ERROR: Duplicate entry '1-0' for key 1 (1062)
.. comes only by the first player who login.
 
I have a question for some time is that if you can repair the stairs ID: 7925 & 7924 and I've never seen it working well I would just like to know if they can fix, thanks
 
Why it do not work?
HTML:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid)            end
function onCreatureDisappear(cid)            npcHandler:onCreatureDisappear(cid)            end
function onCreatureSay(cid, type, msg)            npcHandler:onCreatureSay(cid, type, msg)        end
function onThink()                    npcHandler:onThink()                    end

function creatureSayCallback(cid, type, msg)
    if(not npcHandler:isFocused(cid)) then
        return false
    end

    local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid


    if msgcontains(msg, 'demon oak') then
if getPlayerStorageValue(cid, 15006) == 4 and getPlayerStorageValue(cid, 15005) == -1 then
selfSay('You found the demon oak ? For kill it\'s you need a {Hallowed Axe}. You want get this ?', cid)
talkState[talkUser] = 1
elseif getPlayerStorageValue(cid, 15005) == -1 and getPlayerStorageValue(cid, 15006) <= 4 then
selfSay('This a old demon , but we don\'t know where it\'s live.', cid)
         elseif getPlayerStorageValue(cid, 15005) == 3 then
                selfSay('Go defeat demon oak. When you do this report me.', cid)
                talkState[talkUser] = 0
        elseif getPlayerStorageValue(cid, 15005) == 7 then
                selfSay('I can\'t believe, you really defeat the demon oak. Now is possible you get you reward. Search near cemitery.', cid)
                setPlayerStorageValue(cid,15005,8)
                talkState[talkUser] = 0
        end
        

    elseif msgcontains(msg, 'hallowed axe') then
        if getPlayerStorageValue(cid, 15005) == -1 then
                selfSay('I can forge this but i need {1000 gold coins} and a {axe}. You interessed ?', cid)
                talkState[talkUser] = 1
        elseif getPlayerStorageValue(cid, 15005) == 1 then
                selfSay('Great. You have 1000 gold coins to give me ?.', cid)
                talkState[talkUser] = 2
        elseif getPlayerStorageValue(cid, 15005) == 2 then
                selfSay('Great. Now you have a {axe} to me ?.', cid)
                talkState[talkUser] = 3
            end

    elseif talkState[talkUser] == 1 then
        if msgcontains(msg, 'yes') then
                selfSay('Great. You have 1000 gold coins to give me ?.', cid)
                setPlayerStorageValue(cid,15005,1)
                talkState[talkUser] = 2
                else
                selfSay('Ok.', cid)
        end

    elseif talkState[talkUser] == 2 then
        if msgcontains(msg, 'yes') then
            if(doPlayerRemoveMoney(cid, 1000) == TRUE) then
                selfSay('Great. Now you have a {axe} to me ?.', cid)
                setPlayerStorageValue(cid,15005,2)
                talkState[talkUser] = 3
                else
                selfSay('Ok.', cid)
            end
        end

    elseif talkState[talkUser] == 3 then
        if msgcontains(msg, 'yes') then
            if doPlayerRemoveItem(cid,2386,1) == 1 then
                selfSay('Great. Now go and defeat a Demon Oak. Later report me.', cid)
                doPlayerAddItem(cid,8293,1)
                setPlayerStorageValue(cid,15005,3)
                talkState[talkUser] = 3
                else
                selfSay('Ok.', cid)
            end
        end

    end

    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
This is not the right thread or even section for most of your questions.
 
2 Bugs by me:

1.

-> If I hold on a hotkey, only 1 sec this comes, but i drink only 1 time a potion(8x "Using one of 17 mana potions...", BUT i drink only 1!).





Can someone say me how to fix the 2 bugs ?

1. It's how it's suppoed to be, just like in real tibia.

2. Remove all entries from your server_motd table and then run the server again

@jofilly

change all

doPlayerRemoveItem(cid,xxxx,1) == 1
to

doPlayerRemoveItem(cid,xxxx,1) == true
 
Hey, anyone knows why when the char die if amulet of loss, they don't losse the amulet ?
And why the TFS4p2 is block in otservlist?
 
ey it gives me this bug why?
Code:
[16/05/2009 15:07:11] mysql_real_query(): INSERT INTO `server_motd` (`id`, `world_id`, `text`) VALUES (7, 0, 'Bienvenidos a Owner Server, Disfrutenlo. !help para comandos'); - MYSQL ERROR: Duplicate entry '7-0' for key 'id' (1062)
[16/05/2009 15:07:15] [Warning - Groups::getGroup] Group 0 not found.
[16/05/2009 15:07:15] [Warning - Groups::getGroup] Group 0 not found.
 
should my ram useage jump up from 380Mb to 1,78Gig, while running the server console version?
 
When player die without bless, he doesn't loss experience ( 9 % only )
How to fix it ?
 
Status
Not open for further replies.
Back
Top