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

Errors in Console

aququ

New Member
Joined
Jan 17, 2011
Messages
85
Reaction score
1
[06/04/2010 00:18:57] [Error - Action Interface]
[06/04/2010 00:18:57] data/actions/scripts/quests/ambolt.lua
[06/04/2010 00:18:57] Description:
[06/04/2010 00:18:58] (internalGetPlayerInfo) Player not found when requesting player info #6

When Im opening server i got this error and also :

[Error - Npc interface]
data/npc/scripts/loot.lua
Description:
data/lib/050-function.lua:222: attempt to index a boolean value
[Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua

Just please help me ! Repp ++
 
How to fix it please help me . I have also error when Im playing when I want to buy something from npc for example :"rune seller"
I have 10cc and Im trading with him but is not showing that I can buy. Is something like You dont have enough gold.. Please help me ..
Of course I will rep + ! Please
 
How to fix it please help me . I have also error when Im playing when I want to buy something from npc for example :"rune seller"
I have 10cc and Im trading with him but is not showing that I can buy. Is something like You dont have enough gold.. Please help me ..
Of course I will rep + ! Please

how do you expect us to help you, if you don't post the script?
 
[06/04/2010 00:18:57] [Error - Action Interface]
[06/04/2010 00:18:57] data/actions/scripts/quests/ambolt.lua
[06/04/2010 00:18:57] Description:
[06/04/2010 00:18:58] (internalGetPlayerInfo) Player not found when requesting player info #6

AMBOLT.lua
local pvoc = getPlayerVocation(cid)
local ppos = {x=3800,y=3124,z=7}
local stpos = {x=3799,y=3125,z=7}
local mcpos = {x=3801,y=3125,z=7}

function onUse(cid, item, frompos, item2, topos)
if item.uid == 1111 then -- change ***
if getCreaturePosition(cid) == ppos and getThingfromPos(stpos).itemid == 2350 and getThingfromPos(mcpos).itemid == 8980 then -- change * into swordtil id and ** into mexica cabilar id
setPlayerStorageValue(cid,1111,1)-- change **** into storagevalue
doRemoveItem(getThingfromPos(stpos).uid,1)
doRemoveItem(getThingfromPos(mcpos).uid,1)
if pvoc == 1 or pvoc == 2 or pvoc == 3 or pvoc == 5 or pvoc == 6 or pvoc == 7 then
doPlayerAddItem(cid, 7702) -- change *** into exp scroll id
elseif pvoc == 4 or pvoc == 8 then
doPlayerAddItem(cid, 2165) -- change *** into ring id
end
end
end
end

[Error - Npc interface]
data/npc/scripts/loot.lua

loot.lua
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
-- OTServ event handling functions end

-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'clubs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy dragon hammers(2k), skull staffs(6k), war hammers(1.2k), dragonbone staffs(3k) and daramanian maces(110gp). I also buy amber staffs(8k), sapphire hammers(2k), brutetamer\s staff(1.5k), furry clubs(1k), taurus maces(500gp), lunar staffs(5k), mammoth whoppers(300gp) and diamond sceptres(3k).'})
keywordHandler:addKeyword({'axes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy knight axes(2k), dragon lances(9k), fira axes (8k), obsidian lances(500gp), war axes(9k) and daramanian waraxes (1k). I also buy beastslayer axe(1.5k).'})
keywordHandler:addKeyword({'swords'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy giant swords (17k), poison daggers (50gp), scimiteras (150gp), serpent sword (900gp), fire sword (4k), spike swords(1k), ice rapiers(1k), broad swords(500gp), dragon slayers(15k), wyvern fang(1.5k), silver dagger(500gp) and heavy machetes(90gp).'})
keywordHandler:addKeyword({'wands'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy magic lightwands(30gp), wand of vortexes(100gp), wand of dragonbreaths(200gp), wand of plagues(1k), wand of cosmic energys(2k) and wand if infernoes(3k).'})
keywordHandler:addKeyword({'rods'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy snakebite rods(100gp), moonlight rods(200gp), volcanic rods(1k), quarmire rods(2k) and tempest rods(3k).'})
keywordHandler:addKeyword({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy boots of hastes(30k), steel boots(30k), pirate boots(2k) and crocodile boots(1k). I also buy fur boots(2k).'})
keywordHandler:addKeyword({'armors'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy crown armors(12k), blue robes(10k), noble armors(900gp), dark armors(400gp), knight armors(5k), dragon scale mails(40k), golden armors(20k) and pirate scirts(500gp). I also buy mammoth fur capes(6k), leopard armors(1k).'})
keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy crown legs(12k), knight legs(5k) and pirate knee breeches(200gp).'})
keywordHandler:addKeyword({'shields'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy phoenix shields(16k), crown shields(8k), dragon shields(4k), guardian shields(2k), beholder shields(1.2k), ancient shields(900gp), black shields, tower shields(8k), vampire shields(15k), demon shields(30k), medusa shields(9k), castle shields(5k), scarab shields(2k), dark shields(400gp), tortoise shields(150gp) and bone shields(80gp).'})
keywordHandler:addKeyword({'helmets'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy royal(30k), crusader(6k), crown(2.5k), dark(250gp), strange(500gp), warrior(5k), skull(40k), beholder(7.5k), devil(1k), ragnir(400gp) and krimhorn(200gp). I also buy mystic turbans(150gp) and pirate hats(1k).'})

-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())

Description:
data/lib/050-function.lua:222: attempt to index a boolean value
[Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua

050-function.lua:222:

function getItemNameById(itemid)
return getItemDescriptionsById(itemid).name
end
 
data/npc/scripts/loot.lua

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
-- OTServ event handling functions end

-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'clubs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy dragon hammers(2k), skull staffs(6k), war hammers(1.2k), dragonbone staffs(3k) and daramanian maces(110gp). I also buy amber staffs(8k), sapphire hammers(2k), brutetamer\s staff(1.5k), furry clubs(1k), taurus maces(500gp), lunar staffs(5k), mammoth whoppers(300gp) and diamond sceptres(3k).'})
keywordHandler:addKeyword({'axes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy knight axes(2k), dragon lances(9k), fira axes (8k), obsidian lances(500gp), war axes(9k) and daramanian waraxes (1k). I also buy beastslayer axe(1.5k).'})
keywordHandler:addKeyword({'swords'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy giant swords (17k), poison daggers (50gp), scimiteras (150gp), serpent sword (900gp), fire sword (4k), spike swords(1k), ice rapiers(1k), broad swords(500gp), dragon slayers(15k), wyvern fang(1.5k), silver dagger(500gp) and heavy machetes(90gp).'})
keywordHandler:addKeyword({'wands'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy magic lightwands(30gp), wand of vortexes(100gp), wand of dragonbreaths(200gp), wand of plagues(1k), wand of cosmic energys(2k) and wand if infernoes(3k).'})
keywordHandler:addKeyword({'rods'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy snakebite rods(100gp), moonlight rods(200gp), volcanic rods(1k), quarmire rods(2k) and tempest rods(3k).'})
keywordHandler:addKeyword({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy boots of hastes(30k), steel boots(30k), pirate boots(2k) and crocodile boots(1k). I also buy fur boots(2k).'})
keywordHandler:addKeyword({'armors'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy crown armors(12k), blue robes(10k), noble armors(900gp), dark armors(400gp), knight armors(5k), dragon scale mails(40k), golden armors(20k) and pirate scirts(500gp). I also buy mammoth fur capes(6k), leopard armors(1k).'})
keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy crown legs(12k), knight legs(5k) and pirate knee breeches(200gp).'})
keywordHandler:addKeyword({'shields'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy phoenix shields(16k), crown shields(8k), dragon shields(4k), guardian shields(2k), beholder shields(1.2k), ancient shields(900gp), black shields, tower shields(8k), vampire shields(15k), demon shields(30k), medusa shields(9k), castle shields(5k), scarab shields(2k), dark shields(400gp), tortoise shields(150gp) and bone shields(80gp).'})
keywordHandler:addKeyword({'helmets'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy royal(30k), crusader(6k), crown(2.5k), dark(250gp), strange(500gp), warrior(5k), skull(40k), beholder(7.5k), devil(1k), ragnir(400gp) and krimhorn(200gp). I also buy mystic turbans(150gp) and pirate hats(1k).'})

-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())

data/actions/scripts/quests/ambolt.lua

local pvoc = getPlayerVocation(cid)
local ppos = {x=3800,y=3124,z=7}
local stpos = {x=3799,y=3125,z=7}
local mcpos = {x=3801,y=3125,z=7}

function onUse(cid, item, frompos, item2, topos)
if item.uid == 1111 then -- change ***
if getCreaturePosition(cid) == ppos and getThingfromPos(stpos).itemid == 2350 and getThingfromPos(mcpos).itemid == 8980 then -- change * into swordtil id and ** into mexica cabilar id
setPlayerStorageValue(cid,1111,1)-- change **** into storagevalue
doRemoveItem(getThingfromPos(stpos).uid,1)
doRemoveItem(getThingfromPos(mcpos).uid,1)
if pvoc == 1 or pvoc == 2 or pvoc == 3 or pvoc == 5 or pvoc == 6 or pvoc == 7 then
doPlayerAddItem(cid, 7702) -- change *** into exp scroll id
elseif pvoc == 4 or pvoc == 8 then
doPlayerAddItem(cid, 2165) -- change *** into ring id
end
end
end
end
 
ambolt.lua

Code:
local ppos = {x=3800,y=3124,z=7}
local stpos = {x=3799,y=3125,z=7}
local mcpos = {x=3801,y=3125,z=7}

function onUse(cid, item, frompos, item2, topos)
	local pvoc = getPlayerVocation(cid)
	if item.uid == 1111 then -- change ***
		if getCreaturePosition(cid) == ppos and getThingfromPos(stpos).itemid == 2350 and getThingfromPos(mcpos).itemid == 8980 then
			setPlayerStorageValue(cid,1111,1)-- change **** into storagevalue
			doRemoveItem(getThingfromPos(stpos).uid,1)
			doRemoveItem(getThingfromPos(mcpos).uid,1)
			if pvoc == 1 or pvoc == 2 or pvoc == 3 or pvoc == 5 or pvoc == 6 or pvoc == 7 then
				doPlayerAddItem(cid, 7702) -- change *** into exp scroll id
			elseif pvoc == 4 or pvoc == 8 then
				doPlayerAddItem(cid, 2165) -- change *** into ring id
			end
		end
	end
end
 
Back
Top