Rizzla
Donator / Photoshop
I can't go into the first tp that takes u to the first arena.. It just say "first, kill the monster"
Help please.
i have same problem -.-
I can't go into the first tp that takes u to the first arena.. It just say "first, kill the monster"
Help please.
[07/10/2008 23:54:51] Lua Script Error: [MoveEvents Interface]
[07/10/2008 23:54:51] data/movements/scripts/arenaroom.lua:onStepIn
[07/10/2008 23:54:51] luaGetThingPos(). Thing not found
[07/10/2008 23:54:51] Lua Script Error: [MoveEvents Interface]
[07/10/2008 23:54:51] data/movements/scripts/arenaroom.lua:onStepIn
[07/10/2008 23:54:51] luaDoSummonCreature(). Can not summon monster: Frostfur
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
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 enterArena(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
local cost = 0
local levelname = ''
if getPlayerStorageValue(cid, 42355) < 1 then
cost = 1000
levelname = 'greenshore'
levelneeded = 30
elseif getPlayerStorageValue(cid, 42355) == 1 then
cost = 5000
levelname = 'scrapper'
levelneeded = 50
elseif getPlayerStorageValue(cid, 42355) == 2 then
cost = 10000
levelname = 'warlord'
levelneeded = 80
end
if string.lower(keywords[1]) == 'yes' and parameters.prepare ~= 1 then
if getPlayerStorageValue(cid, 42351) ~= 1 then
if(getPlayerLevel(cid) >= levelneeded) then
if(getPlayerMoney(cid) >= cost) then
npcHandler:say('Now you can go to test.', cid)
doPlayerRemoveMoney(cid, cost)
setPlayerStorageValue(cid, 42351, 1)
else
npcHandler:say('You don\'t have ' .. cost .. ' gp! Come back when you will be ready!', cid)
end
else
npcHandler:say('You don\'t have ' .. levelneeded .. ' level! Come back when you will be ready!', cid)
end
else
npcHandler:say('You have paid already!', cid)
end
npcHandler:resetNpc()
elseif string.lower(keywords[1]) == 'no' then
npcHandler:say('Come back later then!', cid)
npcHandler:resetNpc()
else
if getPlayerStorageValue(cid, 42355) < 3 then
npcHandler:say('You test will be ' .. levelname .. ' level. If you want enter you must pay ' .. cost .. ' gp and have ' .. levelneeded .. ' level. Wanna try?', cid)
else
npcHandler:say('You did all arena levels.',cid)
end
end
return true
end
npcHandler:setMessage(MESSAGE_GREET, 'Hello |PLAYERNAME|! Do you want to make arena?')
local yesNode = KeywordNode:new({'yes'}, enterArena, {})
local noNode = KeywordNode:new({'no'}, enterArena, {})
local node1 = keywordHandler:addKeyword({'arena'}, enterArena, {prepare=1})
node1:addChildKeywordNode(yesNode)
node1:addChildKeywordNode(noNode)
local node1 = keywordHandler:addKeyword({'fight'}, enterArena, {prepare=1})
node1:addChildKeywordNode(yesNode)
node1:addChildKeywordNode(noNode)
local node1 = keywordHandler:addKeyword({'yes'}, enterArena, {prepare=1})
node1:addChildKeywordNode(yesNode)
node1:addChildKeywordNode(noNode)
npcHandler:addModule(FocusModule:new())
[07/10/2008 23:54:51] Lua Script Error: [MoveEvents Interface]
[07/10/2008 23:54:51] data/movements/scripts/arenaroom.lua:onStepIn
[07/10/2008 23:54:51] luaGetThingPos(). Thing not found
[07/10/2008 23:54:51] Lua Script Error: [MoveEvents Interface]
[07/10/2008 23:54:51] data/movements/scripts/arenaroom.lua:onStepIn
[07/10/2008 23:54:51] luaDoSummonCreature(). Can not summon monster: Frostfur
Maybe you maked...but Gesior is first who public released this script ;] So, atleast for this, we must say thanks for him
I don't think that any one of you have got any point here. It's fully working arena script. You've made better? Great, but note that Gesior actually shares his work and his scripts are most widely used in OT community.. I think someone's got an ego problem indeed, but it's not Gesior.
Then release some professional scripts and I'll compare them. Until then, as you said - there's no alternative and they're simply the best.Yeah, used widely because you don't have alternative and can't compare his work with professional scripts
Do you even talked with him ever? Try, then rate, ok? Guy that think he's smartest and teaches everyone around how to do something. I wouldn't have anything against, if he wouldn't be so sure of himself, at least work he's doin'.
I did talk to him via Otland PMs and didn't find anything wrong about him. Besides, what are we talking here about? His scripts or himself? Don't you think that rating his ego is a little bit off-topic here, regardless of how mean it is?
My problem ^Lua Script Error: [Npc interface]
data/npc/scripts/Halvar.luanCreatureSay
data/npc/scripts/Halvar.lua:11: attempt to call method 'isFocused' (a nil value)
stack traceback:
data/npc/scripts/Halvar.lua:11: in function 'callback'
data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
data/npc/lib/npcsystem/keywordhandler.lua:128: in function 'processMessage'
data/npc/lib/npcsystem/npchandler.lua:265: in function 'onCreatureSay'
data/npc/scripts/Halvar.lua:7: in function <data/npc/scripts/Halvar.lua:7>