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?
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
From Items.xml
No.2 Solved <= No such file
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!
GOOD ONE!
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?
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
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: