• 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

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

You added the flag to the monsters file?
 
i and this V
<script>
<event name="petDeath"/>
</script>


but this i dont know how i and this? V

4] = --Id, should be in order
{
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.
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.
}
}
 
i change this <flag convinceable="0"/>

to <flag convinceable="1"/>

and he say this pet is not buyable
 
thats my error, on NPC, i cant say OFFER to him and got this bug..
I'm using Tibia 8.54 ..
I add all vocations, 1,2,3,4,5,6,7,8 ...

[21/03/2012 10:57:05] The Forgotten Server, version 0.3.6 (Crying Damson)
[21/03/2012 10:57:05] Compiled with GNU C++ version 3.4.5 (mingw special) at Dec 24 2009, 10:39:30.
[21/03/2012 10:57:05] A server developed by Elf, slawkens, Talaturen, Lithium, KaczooH, Kiper, Kornholijo.
[21/03/2012 10:57:05] Visit our forum for updates, support and resources: http://otland.net.


[21/03/2012 10:57:11] [Error - Npc interface]
[21/03/2012 10:57:11] data/npc/scripts/petsystem.lua:eek:nCreatureSay
[21/03/2012 10:57:11] Description:
[21/03/2012 10:57:11] data/npc/scripts/petsystem.lua:28: attempt to get length of field 'vocations' (a nil value)
[21/03/2012 10:57:11] stack traceback:
[21/03/2012 10:57:11] data/npc/scripts/petsystem.lua:28: in function 'callback'
[21/03/2012 10:57:11] data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[21/03/2012 10:57:11] data/npc/scripts/petsystem.lua:8: in function <data/npc/scripts/petsystem.lua:8>
 
Last edited:
ToDo
Level system. Pet gain level and experience.
Pet gain ticks like players (Health, Mana) you can configure time and amount.
Pet gain health/mana for each level, like players. You can configure how many.
You can configure the pet's exp-rate.
Pets can carry items. You can configure how many.
You can block items, so pets won't carry these items.
You can configure how much cost to revive a pet.
You can add how many pets you want.
You can configure level required for each pet.
You can configure vocations that can use that pet.
You can add/remove and configure attacks for each pet.
This pet system supports area spells and distance spells.
You can configure the level that a pet needs to use an attack.
You can confugre the level that player needs to use an attack.
You can configure range (Distance attacks) for each attack.
For now, attacks works only with normal areas (Circles). Support for wave/beam areas will be added soon.
You can move your pet with a command.
You can make pets says the text you want.

Is this what you have added, or what your going to do, because as far as reading the script the pets do level, so this is basically what your saying we can do with it; correct? So I can edit the pet gain of mana and health ticks?
 
ToDo
Level system. Pet gain level and experience.
Pet gain ticks like players (Health, Mana) you can configure time and amount.
Pet gain health/mana for each level, like players. You can configure how many.
You can configure the pet's exp-rate.
Pets can carry items. You can configure how many.
You can block items, so pets won't carry these items.
You can configure how much cost to revive a pet.
You can add how many pets you want.
You can configure level required for each pet.
You can configure vocations that can use that pet.
You can add/remove and configure attacks for each pet.
This pet system supports area spells and distance spells.
You can configure the level that a pet needs to use an attack.
You can confugre the level that player needs to use an attack.
You can configure range (Distance attacks) for each attack.
For now, attacks works only with normal areas (Circles). Support for wave/beam areas will be added soon.
You can move your pet with a command.
You can make pets says the text you want.

Is this what you have added, or what your going to do, because as far as reading the script the pets do level, so this is basically what your saying we can do with it; correct? So I can edit the pet gain of mana and health ticks?

These are the current features, already added.
 
darkhaos can you update the script so the monsters can promote like you have an orc lvl 10 you need level him to lvl 20 and he promote to orc speerman then orc warrior on level 30 then orc warlord on lvl 50. can you do tis ore say how i can do this to my server? thanks for helping rep+
 
There should be a configurable protection that you couldn't kill your own pet.
 
can you make it promote to an onther monster ? like orc promote to orc warlord ar somthing, spider to gaint spider
 
easy
and this to the pet.lib
V


[10] =
{
monster = "PET NAME",
vocations = {1, 2, 3, 4},
level = 100
},

and this on the pet you wil use and ready
V

<script>
<event name="petDeath"/>
</script>
 
can anyone help me with the doSendAnimatedText string?
as u people should know this wont work on tibia 9.1+

anyway to use something else instead of doSendAnimatedText ? help please :/ it does bug the pets and stuff
 
Hello Darkhaos'
You Pet System Is Really Good And I'm Using On My Server And Work's Perfectly

But I Have Some Wish To Told You, if You Can help I Will Be So Extremely Grateful

Lets!

1º - I'm Trying to Modify The Code To Add A Evolution System, But No Results (Can You Give Me A Function To Do This? Thanks)
2º - Wish I Did Not Have The Option Of Killing My PET¬ ¬ º, Cause When I'm In A Battle And Use Spells Of High Scale He is Affected And Lose Health!
3º - (NPC) I Want The Option To "Sell" The Pet. (Talkaction) I Want The Option To "Release" The Pet


Am Eternally Grateful If You Can Help Me!
 
how can i get a pet?
i've been using !pet call "pet name" and isnt working :|
doesnt send me any error :p
 
Nice. Nice. I will for sure use in a future server I create xD
ht1.jpg
jh88.jpg
test.jpg
huang10
 
guy, congratulations for your script, i am a brazilian and my english is bad ( =/ ), but i am talk: !pet call orc spearman and do not work =S, please help me, i have buyed the orc spearman by the npc and he speak: "08:40 Arthur Pet Manager: Do you want to buy orc spearman [30] for 15000 gold coins?
08:40 ADM Chaolim [157]: yes
08:40 Arthur Pet Manager: Congratulations! you bought orc spearman [30]."
and the !pet call orc spearman do not working =[ . Thank You. =]
 
How would you make it so that the players can do a quest to get a new pet? No level requirements.. just must do the quest to obtain a monster.

Example: !summon dragon
Then only players who have completed this quest may summon a dragon?
 
Back
Top