• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Working Demon Oak Quest

The "radiusx" error is caused by a conflicting functions name caused by another script (some arena). An easy solution is to rename the functions in your lib.

getCreaturesInRange -> getCreaturesInDemonOak

something like that.
 
Hmm i followed ur guide 100% but it dsnt works :/
kno whats wrong? :)




Code:
[16/07/2011 20:14:21] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/demonOak.lua: No such file or directory
[16/07/2011 20:14:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/demonOak.lua)
[16/07/2011 20:14:21] cannot open data/actions/scripts/demonOak.lua: No such file or directory
[16/07/2011 20:14:21] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/demonOakChests.lua: No such file or directory
[16/07/2011 20:14:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/demonOakChests.lua)
[16/07/2011 20:14:21] cannot open data/actions/scripts/demonOakChests.lua: No such file or directory
[16/07/2011 20:14:21] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/demonOakGravestone.lua: No such file or directory
[16/07/2011 20:14:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/demonOakGravestone.lua)
[16/07/2011 20:14:21] cannot open data/actions/scripts/demonOakGravestone.lua: No such file or directory
[16/07/2011 20:14:22] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.
[16/07/2011 20:14:22] Line: 858, Info: Couldn't find end of Start Tag movevent line 856


[16/07/2011 20:14:22] > ERROR: Unable to load MoveEvents!






solved this problem but now i got a new one! :S


namnl?s.jpg



yours hmpf~
 
Last edited:
[16/07/2011 15:11:47] [Error - Npc interface]
[16/07/2011 15:11:48] data/lib/102-demonOak.lua
[16/07/2011 15:11:48] Description:
[16/07/2011 15:11:48] data/lib/102-demonOak.lua:238: attempt to perform arithmetic on a nil value
[16/07/2011 15:11:48] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
 
Code:
Assertion failed!

Program: ...in serv\cryingdamson6pl1-gui\crying damson.exe
File: ../luascript.h
Line: 251

Expression: m_scriptEnvIndex >= 0 && m_scriptEnvIndex <21

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts

(press Retry to debug the application - JIT must be enabled)

Cancel    Try Again    Ignore


hmm i dont kno what to do :/
 
Are you guys testing it on TFS 0.3.6?

@Knight God

I didn't get that error

@Hmpfot

I don't know wat it is
 
haha i missed 1 thing, so sorry darkhaos, now i opened without any errors except that Hand Of Cursed Fate dsnt exist on my server, but i know it does but ill try this quest now :)
 
so i need to kill 11 monster waves at each part of the DEMON OAK? with simple math it means i need to kill 44 monster waves to complete the quest, hmm in rl its like 10 good wave's and some bone beast wave's isnt it? can i decrease the wave amount so just 4 wave's each part? and how do i do that? :p


thx

yours hmpf~
 
so i need to kill 11 monster waves at each part of the DEMON OAK? with simple math it means i need to kill 44 monster waves to complete the quest, hmm in rl its like 10 good wave's and some bone beast wave's isnt it? can i decrease the wave amount so just 4 wave's each part? and how do i do that? :p


thx

yours hmpf~

Go to actions/scripts/demonOak.lua and change
Lua:
		for i = demonOak[1], demonOak[#demonOak] do
			if(getCreatureStorage(cid, i) == #summons + 1) then
				k = k + 1
			end
		end

To
Lua:
		for i = demonOak[1], demonOak[#demonOak] do
			if(getCreatureStorage(cid, i) == 5) then
				k = k + 1
			end
		end

And change
Lua:
		if getCreatureStorage(cid, itemEx.itemid) >= #summons + 1 then
			return doSendMagicEffect(toPosition, CONST_ME_POFF)
		end

To
Lua:
v		if getCreatureStorage(cid, itemEx.itemid) >= 5 then
			return doSendMagicEffect(toPosition, CONST_ME_POFF)
		end
 
I get this error on tfs 0.4!
How to solve this?

Code:
[2:0:29.453] >> Loading script systems

>> Loading Demon Oak Lib V0.68 REV: 2 (July 16 2011) By Darkhaos (Contact: http:
//otland.net/members/darkhaos/)

[!] -> Checking demon oak lib...
[!] --> [Warning - Lib::DemonOak] Table: summons, Id: 4, Monster Hand Of Cursed
Fate does not exists.
[!] --> [Warning - Lib::DemonOak] Table: summons, Id: 11, Monster Hand Of Cursed
 Fate does not exists.
[!] ->  2 problems loaded in 0.406 seconds.

[!] ->  Demon Oak Lib loaded in 1.218 seconds.

data/movements/movements.xml:66: parser error : error parsing attribute name
        <!-- (Depot & Level) tiles -->
        ^
data/movements/movements.xml:66: parser error : attributes construct error
        <!-- (Depot & Level) tiles -->
        ^
data/movements/movements.xml:66: parser error : Couldn't find end of Start Tag m
ovevent line 64
        <!-- (Depot & Level) tiles -->
        ^
[2:0:30.421] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.

[2:0:30.421] Line: 66, Info: Couldn't find end of Start Tag movevent line 64


[2:0:30.421] > ERROR: Unable to load MoveEvents!

Thanks!
 
I get this error on tfs 0.4!
How to solve this?

Code:
[2:0:29.453] >> Loading script systems

>> Loading Demon Oak Lib V0.68 REV: 2 (July 16 2011) By Darkhaos (Contact: http:
//otland.net/members/darkhaos/)

[!] -> Checking demon oak lib...
[!] --> [Warning - Lib::DemonOak] Table: summons, Id: 4, Monster Hand Of Cursed
Fate does not exists.
[!] --> [Warning - Lib::DemonOak] Table: summons, Id: 11, Monster Hand Of Cursed
 Fate does not exists.
[!] ->  2 problems loaded in 0.406 seconds.

[!] ->  Demon Oak Lib loaded in 1.218 seconds.

data/movements/movements.xml:66: parser error : error parsing attribute name
        <!-- (Depot & Level) tiles -->
        ^
data/movements/movements.xml:66: parser error : attributes construct error
        <!-- (Depot & Level) tiles -->
        ^
data/movements/movements.xml:66: parser error : Couldn't find end of Start Tag m
ovevent line 64
        <!-- (Depot & Level) tiles -->
        ^
[2:0:30.421] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.

[2:0:30.421] Line: 66, Info: Couldn't find end of Start Tag movevent line 64


[2:0:30.421] > ERROR: Unable to load MoveEvents!

Thanks!

That bug isn't by my script, you have a wrong configuration on movements.xml, check syntax, maybe you pasted an incomplete line
 
PHP:
[16/07/2011 15:11:47] [Error - Npc interface] 
[16/07/2011 15:11:48] data/lib/102-demonOak.lua
[16/07/2011 15:11:48] Description: 
[16/07/2011 15:11:48] data/lib/102-demonOak.lua:238: attempt to perform arithmetic on a nil value
[16/07/2011 15:11:48] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
im use tfs 0.4
 
I find line 238 and it can't be showing that error, find your line 238 and post it here
 
Code:
function monsterExists(name)
 
	local file = "data/monster/monsters.xml"
	local openFile = io.open(file, "r")
	local m_name, getName, getFile, m_file = 0, 0, 0, 0
	local monsterExists, fileExists = false, false
	if openFile ~= nil then
		for line in io.lines(file) do
			if line:find('name=".*".*') and line:find('file=".*".*') then
				getName = string.match(line, 'name=".*".*')
				getFile = string.match(line, 'file=".*".*')
				m_name = string.sub(getName, string.find(getName, '="') + 2, string.find(getName, '" ') - 1)
[COLOR="#FF0000"]				m_file = string.sub(getFile, string.find(getFile, '="') + 2, string.find(getFile, '"/') - 1)[/COLOR]
				if m_name == name then
					monsterExists = true
					mfile = io.open("data/monster/" .. m_file, "r")
					if mfile ~= nil then
						fileExists = true
						mfile:close()
					end
				end
			end
		end
		openFile:close()
	end
	return monsterExists and fileExists or false
end

in red line 238
 
Try replacing with this
Lua:
m_file = string.sub(getFile, string.find(getFile, '="') + 2, (string.find(getFile, '"/') or string.find(getFile, '" /')) - 1)
 
Code:
function monsterExists(name)
 
	local file = "data/monster/monsters.xml"
	local openFile = io.open(file, "r")
	local m_name, getName, getFile, m_file = 0, 0, 0, 0
	local monsterExists, fileExists = false, false
	if openFile ~= nil then
		for line in io.lines(file) do
			if line:find('name=".*".*') and line:find('file=".*".*') then
				getName = string.match(line, 'name=".*".*')
				getFile = string.match(line, 'file=".*".*')
				m_name = string.sub(getName, string.find(getName, '="') + 2, string.find(getName, '" ') - 1)
				[COLOR="#FF0000"]m_file = string.sub(getFile, string.find(getFile, '="') + 2, (string.find(getFile, '"/') or string.find(getFile, '" /')) - 1)[/COLOR]
				if m_name == name then
					monsterExists = true
					mfile = io.open("data/monster/" .. m_file, "r")
					if mfile ~= nil then
						fileExists = true
						mfile:close()
					end
				end
			end
		end
		openFile:close()
	end
	return monsterExists and fileExists or false
end

so?
 
Code:
function monsterExists(name)
 
	local file = "data/monster/monsters.xml"
	local openFile = io.open(file, "r")
	local m_name, getName, getFile, m_file = 0, 0, 0, 0
	local monsterExists, fileExists = false, false
	if openFile ~= nil then
		for line in io.lines(file) do
			if line:find('name=".*".*') and line:find('file=".*".*') then
				getName = string.match(line, 'name=".*".*')
				getFile = string.match(line, 'file=".*".*')
				m_name = string.sub(getName, string.find(getName, '="') + 2, string.find(getName, '" ') - 1)
				[COLOR="#FF0000"]m_file = string.sub(getFile, string.find(getFile, '="') + 2, (string.find(getFile, '"/') or string.find(getFile, '" /')) - 1)[/COLOR]
				if m_name == name then
					monsterExists = true
					mfile = io.open("data/monster/" .. m_file, "r")
					if mfile ~= nil then
						fileExists = true
						mfile:close()
					end
				end
			end
		end
		openFile:close()
	end
	return monsterExists and fileExists or false
end

so?

Still getting error on console?
 
Back
Top