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

An idea for a pig breeding system

nasu

Active Member
Joined
Jan 20, 2008
Messages
122
Reaction score
33
GitHub
KrwawyOrk
Hi, I would like to create a pig breeding system on the server. Generally, the name of the pig will change from time to time, e.g.:

Monster name: Piglet [5kg]
Monster name: Weaned Piglet [25kg]
Monster name: Grower [50kg]
Monster name: Market Hog [100kg]

* We can sell pigs, and I would like to do this in such a way that there will be an appropriate ‘Pig Sell Rune’ and the sale currency will be set on the server. For example, I use ‘Pig Sell Rune’ on a pig, it disappears, and we get gold, e.g.: 100kg * 35 gold.

* Of course, there would be a system for feeding pigs, with feed and water, thanks to which the pigs would increase their weight in kilograms.

*Pigs will also sometimes get sick, e.g. diarrhoea, broken leg, and then such pigs will gain weight much more slowly. Such pigs must be treated with appropriate runes (so-called cattle vaccines, you have to use the rune on the sick pig every 24 hours to cure it, the treatment lasts three days lol :D).

*Other players cannot kill your pigs on farms, only you can slaughter them.

*I would like it to be possible to move your pigs so that large pigs do not arrive with small ones, because a large pig can attack a small one... haha that's why I would like a pig sorting system. Pigs can be moved using the cursor.

*It would be cool if there was a ‘Pig Summoning Rune’ that summons 10-15 pigs in one place (the pig summoning rune will be expensive, but the sale of fattened pigs will return gold).

*It would be cool if pigs slept at night, with the words ‘zZZzZzzz’ appearing above them.

I wonder if LUA scripts are enough, or if C++ code needs to be implemented.

notes:
Piglet
Weight: 1–10 kg (2–22 lbs)

Weaned Pig
Weight: 10–30 kg (22–66 lbs)

Grower
Weight: 30–60 kg (66–132 lbs)

Market Hog:
Weight: 60–120 kg (132–265 lbs)
 
I wonder if LUA scripts are enough, or if C++ code needs to be implemented.
You cannot change creature name - there is no such packet in Tibia protocol, it would require a lot of C++ changes/hacks to make it work.
Simplest way to do this, would be to remove given pig and create new monster/NPC on same position.
*Other players cannot kill your pigs on farms, only you can slaughter them.
*I would like it to be possible to move your pigs so that large pigs do not arrive with small ones, because a large pig can attack a small one... haha that's why I would like a pig sorting system. Pigs can be moved using the cursor.
*It would be cool if pigs slept at night, with the words ‘zZZzZzzz’ appearing above them.
I think it will be easier to achieve with NPC (with `speed="0" so it does not move), than monster. NPCs have onThink etc. events. You can add them to monsters (register events for create monster), but Lua code will be more complicated.
 
Back
Top