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

TalkAction Darkhaos' Pet System

@up
you have to create a new lua file in yourserver/data/lib and there is where you put the code
 
[11/02/2012 16:22:40] Lua Script Error: [Npc interface]
[11/02/2012 16:22:40] data/npc/scripts/perra.lua:eek:nCreatureSay

[11/02/2012 16:22:40] data/npc/scripts/perra.lua:79: attempt to call global 'getCreatureStorageValue' (a nil value)
[11/02/2012 16:22:40] stack traceback:
[11/02/2012 16:22:40] data/npc/scripts/perra.lua:79: in function 'callback'
[11/02/2012 16:22:40] data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'
[11/02/2012 16:22:40] data/npc/scripts/perra.lua:8: in function <data/npc/scripts/perra.lua:8>

Lua Code:
<talkaction log="yes" words="/del" access="5" event="script" value="Delete Player.lua"/>


I have this problem it's working in tfs 0.4?
 
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/


What is this? How do I fix it?

One more question, how do I configure the pets as u said? Where should i put the script?


EDIT: This script is a total fuck up, everything gives an error.
Using 0.3.6pl1.
 
Last edited:
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[14/02/2012 17:11:22] [Error - LuaScriptInterface::loadFile] data/lib/pets.lua:190: unexpected symbol near '}'
[14/02/2012 17:11:22] [Warning - LuaScriptInterface::initState] Cannot load data/lib/


What is this? How do I fix it?

One more question, how do I configure the pets as u said? Where should i put the script?


EDIT: This script is a total fuck up, everything gives an error.
Using 0.3.6pl1.

So fix it? Propably it's script for TFS 0.4 not 0.3
 
[11/02/2012 16:22:40] Lua Script Error: [Npc interface]
[11/02/2012 16:22:40] data/npc/scripts/perra.lua:eek:nCreatureSay

[11/02/2012 16:22:40] data/npc/scripts/perra.lua:79: attempt to call global 'getCreatureStorageValue' (a nil value)
[11/02/2012 16:22:40] stack traceback:
[11/02/2012 16:22:40] data/npc/scripts/perra.lua:79: in function 'callback'
[11/02/2012 16:22:40] data/npc/lib/npcsystem/npchandler.lua:374: in function 'onCreatureSay'
[11/02/2012 16:22:40] data/npc/scripts/perra.lua:8: in function <data/npc/scripts/perra.lua:8>

Lua Code:
<talkaction log="yes" words="/del" access="5" event="script" value="Delete Player.lua"/>


BUMP someone?
 
[04/03/2012 19:37:37] [Warning - Monster::Monster] Unknown event name - petDeath

[04/03/2012 19:40:36] [Error - LuaScriptInterface::loadFile] data/lib/pet.lua:190: unexpected symbol near '}'
[04/03/2012 19:40:36] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

plx i have these erros help me ;$
 
[04/03/2012 19:37:37] [Warning - Monster::Monster] Unknown event name - petDeath

[04/03/2012 19:40:36] [Error - LuaScriptInterface::loadFile] data/lib/pet.lua:190: unexpected symbol near '}'
[04/03/2012 19:40:36] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

plx i have these erros help me ;$

change this:
Code:
		{
			[1] = {name = "Ice Bomb", level = 100, petLevel = 100, mana = 250, type = TYPE_DISTANCE, range = 3, combat = COMBAT_ICEDAMAGE, effect = CONST_ME_ICEAREA, distEffect = CONST_ANI_ICE, damageMin = 1.5, damageMax = 2.0, area = AREA_CROSS1X1}}},
			[2] = {name = "Poison Strike", level = 95, petLevel = 95, mana = 80, type = TYPE_DISTANCE, range = 8, combat = COMBAT_POISONDAMAGE, effect = CONST_ME_GREENRINGS, distEffect = CONST_ANI_POISON, damageMin = 1.2, damageMax = 1.8}	
		}

for:
Code:
		{
			[1] = {name = "Ice Bomb", level = 100, petLevel = 100, mana = 250, type = TYPE_DISTANCE, range = 3, combat = COMBAT_ICEDAMAGE, effect = CONST_ME_ICEAREA, distEffect = CONST_ANI_ICE, damageMin = 1.5, damageMax = 2.0, area = AREA_CROSS1X1},
			[2] = {name = "Poison Strike", level = 95, petLevel = 95, mana = 80, type = TYPE_DISTANCE, range = 8, combat = COMBAT_POISONDAMAGE, effect = CONST_ME_GREENRINGS, distEffect = CONST_ANI_POISON, damageMin = 1.2, damageMax = 1.8}	
		}
 
17:14 Admin [247]: orc warlord
17:14 Petnpc: This pet is not buyable, please tell me the name of the pet that you can buy.
i cant buy a pet by the npc ;(

[04/03/2012 19:37:37] [Warning - Monster::Monster] Unknown event name - petDeath

and my server say this error evry time i run it

+ i used the newst version of darkhaos pet systeem
 
Back
Top