• 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.4] The Forgotten Server v0.3 beta 2

Status
Not open for further replies.
There is no edit button in Distributions board.
 
OMFG Again Error; Mod delete the posts and leave only this 1;
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
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
-- OTServ event handling functions end
function creatureSayCallback(cid, type, msg)
-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addSellableItem({'broken amulet'}, 2196, 1000, 'broken amulet')

shopModule:addBuyableItem({'stone skin amulet'}, 2197, 2000, 'stone skin amulet')
shopModule:addBuyableItem({'elven amulet'}, 2198, 1000, 'elven amulet')
shopModule:addBuyableItem({'amulet of loss'}, 2173, 25000, 'amulet of loss')
shopModule:addBuyableItem({'red backpack'}, 2000, 10, 'red backpack')
shopModule:addBuyableItem({'machete'}, 2420, 50, 'machete')

shopModule:addBuyableItem({'scarf'}, 2661, 250, 'scarf')
shopModule:addBuyableItem({'bronze amulet'}, 2172, 250, 'bronze amulet')
shopModule:addBuyableItem({'silver amulet'}, 2170, 250, 'silver amulet')
shopModule:addBuyableItem({'garlic necklace'}, 2199, 250, 'garlic necklace')
shopModule:addBuyableItem({'protection amulet'}, 2200, 250, 'protection amulet')
shopModule:addBuyableItem({'dragon necklace'}, 2201, 250, 'dragon necklace')
shopModule:addBuyableItem({'strange talisman'}, 2161, 250, 'strange talisman')
shopModule:addBuyableItem({'crystal necklace'}, 2125, 250, 'crystal necklace')

npcHandler:addModule(FocusModule:new())

what did you change? so i can change that in the other one?
 
Oh still haven't released new beta ? ....
Why have you set up release dates ? For lie us ? :(

Hope you release it soon.
 
npcHandlernCreatureAppear
to
npcHandler:eek:nCreatureAppear
 
XD Emoticon

it's:

Code:
npcHandlernCreatureAppear
to
npcHandler[B]:o[/B]nCreatureAppear
 
Hi!
Why Cant i oên it with Map 8.3? :X
The map run perfectily in others versioes, but not in this.. And map 8.4 also do not work..
Can someone help? Cya
 
and i have problem with it o_O

[19/01/2009 21:16:45] data/talkactions/scripts/reports.lua:17: attempt to call field 'tonumber' (a nil value)
[19/01/2009 21:16:45] stack traceback:
[19/01/2009 21:16:45] data/talkactions/scripts/reports.lua:17: in function <data/talkactions/scripts/reports.lua:5>
 
I get this errors when i have add svargrond arena, and i ahve read that gesior svargrond arena dosent work for TFS beta2, but for one person it does.
[19/01/2009 21:37:25] luaSetPlayerStorageValue(). Player not found

[19/01/2009 21:37:25] Lua Script Error: [CreatureScript Interface]
[19/01/2009 21:37:25] data/creaturescripts/scripts/login.lua


Code:
    function onLogin(cid)
	registerCreatureEvent(cid, "PlayerDeath")
	return TRUE
end
   
    registerCreatureEvent(cid, "PlayerKill")
    if (InitArenaScript ~= 0) then
    InitArenaScript = 1
    -- make arena rooms free
        for i = 42300, 42309 do
            setGlobalStorageValue(i, 0)
            setGlobalStorageValue(i+100, 0)
        end
    end
    -- if he did not make full arena 1 he must start from zero
    if getPlayerStorageValue(cid, 42309) < 1 then
        for i = 42300, 42309 do
            setPlayerStorageValue(cid, i, 0)
        end
    end
    -- if he did not make full arena 2 he must start from zero
    if getPlayerStorageValue(cid, 42319) < 1 then
        for i = 42310, 42319 do
            setPlayerStorageValue(cid, i, 0)
        end
    end
    -- if he did not make full arena 3 he must start from zero
    if getPlayerStorageValue(cid, 42329) < 1 then
        for i = 42320, 42329 do
            setPlayerStorageValue(cid, i, 0)
        end
    end
    if getPlayerStorageValue(cid, 42355) == -1 then
        setPlayerStorageValue(cid, 42355, 0) -- did not arena level
    end
    setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
    setPlayerStorageValue(cid, 42352, 0) -- is not in arena
 
XD Emoticon

it's:

Code:
npcHandlernCreatureAppear
to
npcHandler[B]:o[/B]nCreatureAppear

hmm, the most of them have already that. but i can take a picture on the "trade" bar ingame.

Note: have someone the new monsters pack with yalaharian?
 
erp0t should release so only ppl that can compile by them self can use it :p

Yea, but still there will be guy who will compile this and post for others to gain reputation.
 
Yea, but still there will be guy who will compile this and post for others to gain reputation.

Thats bad for u ? They release it for all not only for experienced ppl. Im sure, that there are many people whose don't know how to compile. You're like selfish jerk -.-
 
Yea, but still there will be guy who will compile this and post for others to gain reputation.

yes there is always people who do things to gain rep hauhauhauha like you :x
 
Status
Not open for further replies.
Back
Top