Hello!
I want to show you my baking system.
In actions/actions.xml, change:
to:
Add to actions/actions.xml:
Delete file: actions/scripts/other/createbread.lua.
Create file: actions/scripts/other/baking.lua and write inside:
Create file: actions/scripts/other/blewoutcandle.lua and write inside:
Remove from movements/movements.xml:
Add to movements/movements.xml:
Remove file: movements/scripts/dough.lua
Create file: movements/scripts/partycake.lua and write inside:
How to make (by tibia.wikia.net):
- bread
- cake
- decorated cake
- party cake
- cookies
- chocolate cake
Description by me:
Bunch of wheat:
Use
scythe with wheat field.
Flour:
Use bunch of wheat with
millstone.
Lump of dough:
Use flour with
bucket or
trough of water.
Bread:
Use lump of dough with
oven.
Lump of cake dough:
Use flour with bucket or trough of milk.
Cake:
Use lump of cake dough with oven.
Decorated cake:
Take the cake and use
kitchen knife with
cherry or
strawberry.
Party cake:
Put used-up
candlestick on decorated cake.
Baking tray (with dough):
Use lump of cake dough with
baking tray.
Cookies (12):
Use baking tray (with dough) with oven.
Lump of chocolate dough:
Use lump of cake dough with
bar of chocolate.
Chocolate cake:
Use lump of chocolate dough with oven.
Note: in code you can see:
It's my nick!
If you wanna show it in other forum, send a message to me.
Please, leave a comment!![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I want to show you my baking system.
In actions/actions.xml, change:
Code:
<!-- Bread Creating -->
<action itemid="2692" event="script" value="other/createbread.lua"/>
<action itemid="2694" event="script" value="other/createbread.lua"/>
Code:
<!-- Baking -->
<action itemid="2694" script="other/baking.lua"/> <!--Wheat-->
<action itemid="2692" script="other/baking.lua"/> <!--Flour-->
<action itemid="2693" script="other/baking.lua"/> <!--Lump of dough-->
<action itemid="6277" script="other/baking.lua"/> <!--Lump of cake dough-->
<action itemid="2566" script="other/baking.lua"/> <!--Kitchen knife-->
<action itemid="2561" script="other/baking.lua"/> <!--Baking tray-->
<action itemid="8848" script="other/baking.lua"/> <!--Baking tray (with cookies)-->
<action itemid="8846" script="other/baking.lua"/> <!--Lump of chocolate dough-->
Add to actions/actions.xml:
Code:
<action itemid="6280" event="script" value="other/blewoutcandle.lua"/>
Delete file: actions/scripts/other/createbread.lua.
Create file: actions/scripts/other/baking.lua and write inside:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local liquidContainers = {1775, 2005}
local ovens = {1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 6356, 6357, 6358, 6359, 6360, 6361, 6362, 6363}
local lumpsOfChocolateDough = getPlayerItemCount(cid, 6277) + getPlayerItemCount(cid, 6574)
if item.itemid == 2692 and isInArray(liquidContainers, itemEx.itemid) == TRUE and itemEx.type == 1 then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, 2693, 1)
doChangeTypeItem(itemEx.uid, item.type - item.type)
elseif item.itemid == 2694 and itemEx.itemid == 1381 then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, 2692, 1)
elseif item.itemid == 2693 and isInArray(ovens, itemEx.itemid) == TRUE then
doChangeTypeItem(item.uid, item.type - 1)
doCreateItem(2689, 1, toPosition)
elseif item.itemid == 2692 and isInArray(liquidContainers, itemEx.itemid) == TRUE and itemEx.type == 6 then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, 6277, 1)
doChangeTypeItem(itemEx.uid, itemEx.type - itemEx.type)
elseif item.itemid == 6277 and isInArray(ovens, itemEx.itemid) == TRUE then
doChangeTypeItem(item.uid, item.type - 1)
doCreateItem(6278, 1, toPosition)
elseif item.itemid == 2566 and (itemEx.itemid == 2679 or itemEx.itemid == 2680) and getPlayerItemCount(cid, 6278) > 0 then
doRemoveItem(itemEx.uid, 1)
doPlayerRemoveItem(cid, 6278, 1)
doPlayerAddItem(cid, 6279, 1)
elseif item.itemid == 6277 and itemEx.itemid == 2561 then
doRemoveItem(item.uid, 1)
doTransformItem(itemEx.uid, 8848)
elseif item.itemid == 8848 and isInArray(ovens, itemEx.itemid) == TRUE then
doTransformItem(item.uid, 2561)
doCreateItem(2687, 12, toPosition)
elseif item.itemid == 6277 and itemEx.itemid == 6574 then
doRemoveItem(itemEx.uid, 1)
doChangeTypeItem(item.uid, item.type - 1)
if (getPlayerItemCount(cid, 6277) + getPlayerItemCount(cid, 6574)) ~= lumpsOfChocolateDough then
doPlayerAddItem(cid, 8846, 1)
else
doCreateItem(8846, 1, toPosition)
end
elseif item.itemid == 8846 and isInArray(ovens, itemEx.itemid) == TRUE then
doChangeTypeItem(item.uid, item.type - 1)
doCreateItem(8847, 1, toPosition)
else
return FALSE
end
return TRUE
end
--Made by Freewolny
Create file: actions/scripts/other/blewoutcandle.lua and write inside:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doTransformItem(item.uid, 6279)
doCreatureSay(cid, getPlayerName(cid) .. " blew out the candle.", TALKTYPE_ORANGE_1)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
return TRUE
end
--Made by Freewolny
Remove from movements/movements.xml:
Code:
<!-- Create bread movements -->
<movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/>
Add to movements/movements.xml:
Code:
<movevent type="AddItem" tileitem="1" itemid="6279" event="script" value="partycake.lua"/>
Remove file: movements/scripts/dough.lua
Create file: movements/scripts/partycake.lua and write inside:
Code:
function onAddItem(moveitem, tileitem, pos)
if moveitem.itemid == 2048 then
doRemoveItem(tileitem.uid, 1)
doRemoveItem(moveitem.uid, 1)
doCreateItem(6280, 1, pos)
end
end
--Made by Freewolny
How to make (by tibia.wikia.net):
- bread
- cake
- decorated cake
- party cake
- cookies
- chocolate cake
Description by me:
![Bunch_of_Wheat.gif](/proxy.php?image=http%3A%2F%2Fimages4.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fc%2Fcc%2FBunch_of_Wheat.gif&hash=bb2f719cfe93879825540bb89c2b30fc)
Use
![Scythe.gif](/proxy.php?image=http%3A%2F%2Fimages4.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F7%2F7a%2FScythe.gif&hash=63c14d93eb9a618aef520285227402c6)
![Flour.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F1%2F13%2FFlour.gif&hash=0b189c1a828c683cd215896afea1e3fc)
Use bunch of wheat with
![Millstone.gif](/proxy.php?image=http%3A%2F%2Fimages3.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F0%2F05%2FMillstone.gif&hash=1e7e83549c786204c51063c7d2a87d77)
![Lump_of_Dough.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F3%2F3c%2FLump_of_Dough.gif&hash=4c5a2da79836abf52a2b3c68abbf4c00)
Use flour with
![Bucket.gif](/proxy.php?image=http%3A%2F%2Fimages3.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fb%2Fb9%2FBucket.gif&hash=68f92e823fa6f894b0fae3d9cb6f8127)
![Trough.gif](/proxy.php?image=http%3A%2F%2Fimages4.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F1%2F15%2FTrough.gif&hash=55172a0437f314af9230686e60a66509)
![Bread.gif](/proxy.php?image=http%3A%2F%2Fimages3.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F2%2F22%2FBread.gif&hash=2a5a52a829c807550edbac92cb8a08db)
Use lump of dough with
![Oven.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fa%2Fa2%2FOven.gif&hash=9028f08be346c0df703e3a63e521d3f8)
![Lump_of_Cake_Dough.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F6%2F66%2FLump_of_Cake_Dough.gif&hash=eec620024f6170fef6ed0ae984adbf66)
Use flour with bucket or trough of milk.
![Cake.gif](/proxy.php?image=http%3A%2F%2Fimages3.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F7%2F7d%2FCake.gif&hash=c13651effcdce533ddd0813c1a05e18b)
Use lump of cake dough with oven.
![Decorated_Cake.gif](/proxy.php?image=http%3A%2F%2Fimages3.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fe%2Fee%2FDecorated_Cake.gif&hash=e8cd546a09bdccc27ef6141cd5000bca)
Take the cake and use
![Kitchen_Knife.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F1%2F18%2FKitchen_Knife.gif&hash=8edb4935a35852861cd3580e49d5e076)
![Cherry.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fe%2Fed%2FCherry.gif&hash=f8ee101b823b85e4a6961cc11e109a94)
![Strawberry.gif](/proxy.php?image=http%3A%2F%2Fimages4.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fa%2Fa1%2FStrawberry.gif&hash=de3edffb7b5eb4bbdce10a0027d62610)
![Party_Cake.gif](/proxy.php?image=http%3A%2F%2Fimages2.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F9%2F93%2FParty_Cake.gif&hash=7d55bad6346309e92239f143265e4073)
Put used-up
![Candlestick.gif](/proxy.php?image=http%3A%2F%2Fimages4.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fc%2Fcd%2FCandlestick.gif&hash=aec6343b016bcc957a8a65184d93b7c8)
![Baking_Tray_%28With_Dough%29.gif](/proxy.php?image=http%3A%2F%2Fimages2.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F8%2F81%2FBaking_Tray_%2528With_Dough%2529.gif&hash=3865be498da0b2f86fab087d71b19311)
Use lump of cake dough with
![Baking_Tray.gif](/proxy.php?image=http%3A%2F%2Fimages3.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F0%2F01%2FBaking_Tray.gif&hash=38a950cf6b6ff2501ef0620d1aab648a)
![Cookie.gif](/proxy.php?image=http%3A%2F%2Fimages4.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F4%2F42%2FCookie.gif&hash=6008432798174665095fc04b1e70fb0f)
Use baking tray (with dough) with oven.
![Lump_of_Chocolate_Dough.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F9%2F95%2FLump_of_Chocolate_Dough.gif&hash=011672260426463a0edb329286e13765)
Use lump of cake dough with
![Bar_of_Chocolate.gif](/proxy.php?image=http%3A%2F%2Fimages2.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2Fc%2Fc4%2FBar_of_Chocolate.gif&hash=0619dbc153ff8e8d07dcaf95c278dfe5)
![Chocolate_Cake.gif](/proxy.php?image=http%3A%2F%2Fimages1.wikia.nocookie.net%2Ftibia%2Fen%2Fimages%2F9%2F97%2FChocolate_Cake.gif&hash=428706f350b16449c4365ec4159600d5)
Use lump of chocolate dough with oven.
Note: in code you can see:
Code:
--Made by Freewolny
If you wanna show it in other forum, send a message to me.
Please, leave a comment!
Last edited: