mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-28 07:36:50 +01:00
fix fluid colors and add few more items functionality from 781
This commit is contained in:
@@ -135,6 +135,7 @@
|
||||
<action itemid="4852" script="misc/ectoplasm_container.lua" />
|
||||
<action itemid="3217" script="misc/letter_bag.lua" />
|
||||
<action fromid="3603" toid="3605" script="misc/baking.lua" />
|
||||
<action itemid="5466" script="misc/distilling_rum.lua" />
|
||||
<action fromid="3264" toid="3276" script="misc/weapons.lua" />
|
||||
<action fromid="3278" toid="3286" script="misc/weapons.lua" />
|
||||
<action fromid="3288" toid="3297" script="misc/weapons.lua" />
|
||||
|
||||
20
data/actions/scripts/misc/distilling_rum.lua
Normal file
20
data/actions/scripts/misc/distilling_rum.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local distillingMachines = {
|
||||
[5468] = 5512,
|
||||
[5469] = 5513
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if not target:isItem() then
|
||||
return false
|
||||
end
|
||||
|
||||
local machine = distillingMachines[target:getId()]
|
||||
if machine then
|
||||
target:transform(machine, 1)
|
||||
target:decay()
|
||||
item:remove(1)
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
@@ -37,6 +37,12 @@ Name = "lifefluid"
|
||||
TypeID = 12
|
||||
Name = "lemonade"
|
||||
|
||||
TypeID = 13
|
||||
Name = "rum"
|
||||
|
||||
TypeID = 14
|
||||
Name = "coconut milk"
|
||||
|
||||
# --- end of server specific object types ---
|
||||
|
||||
TypeID = 100
|
||||
@@ -24702,7 +24708,7 @@ Name = "a fire bug"
|
||||
Description = "This strange creature has the tendency to set certain things on fire"
|
||||
Flags = {UseEvent,MultiUse,Take}
|
||||
Attributes = {Weight=3050,Brightness=3,LightColor=206}
|
||||
# pradeti nuo cia jau padariau, kad iseitu harvestinti sugar cane ir nepamirsti pridedineti naujus daiktus prie npc ir monstru, kurie jau egzistuoja
|
||||
|
||||
TypeID = 5468
|
||||
Name = "a distilling machine"
|
||||
Flags = {Bottom,Unpass,Unmove,Unlay}
|
||||
@@ -24892,13 +24898,13 @@ Flags = {Unpass,Unmove,Unlay}
|
||||
TypeID = 5512
|
||||
Name = "a distilling machine"
|
||||
Flags = {Bottom,Unpass,Unmove,Unlay,Expire}
|
||||
Attributes = {FluidSource=WINE,ExpireTarget=5468,TotalExpireTime=15} # TODO: FluidSource should be RUM
|
||||
Attributes = {FluidSource=RUM,ExpireTarget=5468,TotalExpireTime=10}
|
||||
|
||||
TypeID = 5513
|
||||
Name = "a distilling machine"
|
||||
Flags = {Bottom,Unpass,Unmove,Unlay,Expire}
|
||||
Attributes = {FluidSource=WINE,ExpireTarget=5469,TotalExpireTime=15} # TODO: FluidSource should be RUM
|
||||
|
||||
Attributes = {FluidSource=RUM,ExpireTarget=5469,TotalExpireTime=10}
|
||||
# pradeti nuo cia
|
||||
TypeID = 5514
|
||||
Name = "a closed door"
|
||||
Flags = {Door,Unpass,Unmove,Unthrow,Unlay}
|
||||
|
||||
Reference in New Issue
Block a user