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

TalkAction Darkhaos' Pet System

Have a problem with this script, when I make !pet call with GOD, is ok.. But with player send a msg, need level to call the pet.
I changed the level on script, but I have the same error.

What I can do?
 
Have a problem with this script, when I make !pet call with GOD, is ok.. But with player send a msg, need level to call the pet.
I changed the level on script, but I have the same error.

What I can do?

Check vocations
 
[Error - TalkAction Interface]
data/talkactions/scripts/pet.lua:eek:nSay
Description:
data/lib/pet.lua:355: attempt to perform arithmetic on a boolean value
stack traceback:
data/lib/pet.lua:355: in function <data/lib/pet.lua:307>
(tail call): ?

LINE: function callPet(cid)

The script stop alone, some players can make this command and other no..
can help?
 
{
monster = "water elemental", --The monster name.
vocations = {2}, --Vocations that can use this pet.
level = 95, --Level required to use this pet.
attacks =
{
[1] =
{
name = "Ice Bomb", --Attack name, pet will say the name when you use the attack.
level = 100, --Level that player needs to use the attack.
petLevel = 100, --Level that pets needs to use the attack.
mana = 200, --Mana that the pets needs to use the attack.
type = TYPE_DISTANCE, --(TYPE_NEAR/TYPE_DISTANCE) _NEAR = Used for melee attacks. _NEAR = Used for distance attacks. (Declare this correct or you'll get some bugs.)
range = 3, --Attack range, used only for distance attacks.
combat = COMBAT_ICEDAMAGE, --Damage type.
effect = CONST_ME_ICEAREA, --Floor effect.
distEffect = CONST_ANI_ICE, --Distance effect.
damageMin = 1.5, --Damage min.
damageMax = 2.0, --Damage max.
area = AREA_CROSS1X1 --Area for the attack, if you want an attack without area, remove this param.
}
}
},

where do i put that?
 
{
monster = "water elemental", --The monster name.
vocations = {2}, --Vocations that can use this pet.
level = 95, --Level required to use this pet.
attacks =
{
[1] =
{
name = "Ice Bomb", --Attack name, pet will say the name when you use the attack.
level = 100, --Level that player needs to use the attack.
petLevel = 100, --Level that pets needs to use the attack.
mana = 200, --Mana that the pets needs to use the attack.
type = TYPE_DISTANCE, --(TYPE_NEAR/TYPE_DISTANCE) _NEAR = Used for melee attacks. _NEAR = Used for distance attacks. (Declare this correct or you'll get some bugs.)
range = 3, --Attack range, used only for distance attacks.
combat = COMBAT_ICEDAMAGE, --Damage type.
effect = CONST_ME_ICEAREA, --Floor effect.
distEffect = CONST_ANI_ICE, --Distance effect.
damageMin = 1.5, --Damage min.
damageMax = 2.0, --Damage max.
area = AREA_CROSS1X1 --Area for the attack, if you want an attack without area, remove this param.
}
}
},

where do i put that?

this just show to you what you can edit, dont need put this in nothing :D
 
[Error - TalkAction Interface]
data/talkactions/scripts/pet.lua:eek:nSay
Description:
data/lib/pet.lua:355: attempt to perform arithmetic on a boolean value
stack traceback:
data/lib/pet.lua:355: in function <data/lib/pet.lua:307>
(tail call): ?

LINE: function callPet(cid)

The script stop alone, some players can make this command and other no..
can help?

Find line 355, line 307 and show me
 
Could you protect players on Optional pvp servers from being attacked by pets and vice-versa by "getWorldType()" to skip useless script config and "isPlayer" ofc.?
 
this
sin201.jpg
 
You are not using TFS 0.3.6pl1, you're using mystic spirit, read the error. The problem ison't my script, the problem is that the function 'doSendAnimatedText' is deprecated.
 
I'm still waiting for the npc that sells pets, is it coming or not?
 
im super noob and i stil ldont get it could you tach me what exactly i have to do to make a new pet?
 
Back
Top