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

Windows List of Error's. Any ideas how to fix?

Leo Ganxta

New Member
Joined
Jul 21, 2008
Messages
3
Reaction score
0
Hiho. WHen i start my OT Engine, i got lot of error's and Warning's. Can u guys say me what is the problem? Any hint's what to edit/delete?


Code:
Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua

Code:
I/O warning : failed to load external entity "data/npc/Knight Slower.xml"
[color=green]This one mean i don't have such a film i guess[/color]

Code:
[Warning] NpcSystem:    Parameter(s) missing for item:  throwing knife2410
25      nil
[color=red]No idea wtf is that ;O[/color]

Code:
Warning: [OTBM loader] Moveable item with ID: 4347, in house: 141, at position [
x: 756, y: 564, z: 11].
[color=green]Shuld i delete those items? Give them any special propeties?[/color]

I'm using TFS 0.2.4. I know that anyone wifth little part of brain can fix it by only reading error messages, but i don't wonna mess up wifth code.

Script Code's for Epic:

Donated Manarune.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 25000) 
doCreatureSay(cid,"Ahh, VIP Manarune rocks.!!",19)
return doCombat(cid, combat, var)
end

From Items.xml
Code:
<item id="2410" article="a" name="throwing knife" plural="throwing knives">
		<attribute key="weight" value="500"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="throwingknife"/>
		<attribute key="range" value="5"/>
		<attribute key="breakChance" value="7"/>
		<attribute key="ammoAction" value="moveback"/>
	</item>

[color=red]Is there somthing wrong wifth "attack" value?[/color]

No.2 Solved <= No such file :D
No.3 Solved <= It's problem in NPC Script.

To Arrish!

Here is Solution. Look the NPC File that sell kind of item u see in the error.

Fine the "<parameter key="shop_buyable (...)" Line. And now let me image it.

BAD ONE!
Code:
value="throwing [color=red]knife2410[/color],25;royal spear,7378,15;crossbow,2455,500;

GOOD ONE!
Code:
value="throwing knife,2410,25;royal spear,7378,15;crossbow,2455,500;

The construcion of it is:

Value="Item Name,Item Number,Price

Still need answer to 1 and 4 problem.
Ty arrish for advice, but it's not working. Just curious does TFS 0.2.4 <Mystic Script> have such a lua function like onUse? And if not, can i add it somehow?
 
Last edited:
Leo this prob
Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua
is prolly because u dont have the donated manarune.lua
do like this go into ur server then data/spells/script/custom then if u find donated manarune.lua i dont why u get error but if u dont have any donated manarune.lua there copy one of the lua files u have there then rename it to donated manarune then inside it it should look like this

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, 25000) 
doCreatureSay(cid,"Ahh, VIP Manarune rocks.!!",19)
return doCombat(cid, combat, var)
end
and make sure u have donated manarune in ur spells.xml
rep if helped please
 
Leo i think i found the prob , i downloaded the roxor again and it have exactly same problem , u know why cause the donate mana rune doesnt exist in spells.xml
add this line into ur spells.xml
PHP:
<rune name="Donated ManaRune" id="TYPE IN THE ID OF DONATEDMANARUNE"  aggressive="0" charges="10" lvl="100" maglv="5" mana="0" soul="0" exhaustion="1" prem="0" enabled="1" allowfaruse="1" script="custom/donated manarune.lua"></rune>
dont forgett to write in id=" the id of donated manarune

hope it helped m8
 
Ok, i got next error! I wonna to remove rune, when someone used it. But i still got error, and i don't know WTF IS WRONG :O

The rune id is: 2272 Checked it 10x!

Here is the error code:
Code:
Lua Script Error: [Spell Interface]
data/spells/scripts/custom/magic prison.lua:onCastSpell

luaDoRemoveItem(). Item not found

And the script:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499)

local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	doRemoveItem(2272, 1)
	return doCombat(cid, combat, var)
end

Any ideas how to fix it? :O
 
Back
Top