mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-01 01:59:21 +02:00
fix few more items 7.92
This commit is contained in:
parent
3cb71f9127
commit
2ce746ea27
@ -146,6 +146,7 @@
|
|||||||
<action itemid="4852" script="misc/ectoplasm_container.lua" />
|
<action itemid="4852" script="misc/ectoplasm_container.lua" />
|
||||||
<action itemid="3217" script="misc/letter_bag.lua" />
|
<action itemid="3217" script="misc/letter_bag.lua" />
|
||||||
<action fromid="3603" toid="3605" script="misc/baking.lua" />
|
<action fromid="3603" toid="3605" script="misc/baking.lua" />
|
||||||
|
<action itemid="6276" script="misc/baking.lua" />
|
||||||
<action itemid="5466" script="misc/distilling_rum.lua" />
|
<action itemid="5466" script="misc/distilling_rum.lua" />
|
||||||
<action fromid="3264" toid="3276" script="misc/weapons.lua" />
|
<action fromid="3264" toid="3276" script="misc/weapons.lua" />
|
||||||
<action fromid="3278" toid="3286" script="misc/weapons.lua" />
|
<action fromid="3278" toid="3286" script="misc/weapons.lua" />
|
||||||
@ -161,6 +162,7 @@
|
|||||||
<action itemid="5957" script="misc/lottery_ticket.lua" />
|
<action itemid="5957" script="misc/lottery_ticket.lua" />
|
||||||
<action itemid="5776" script="misc/sabrehaven_talon.lua" />
|
<action itemid="5776" script="misc/sabrehaven_talon.lua" />
|
||||||
<action itemid="5928" script="misc/catch_fish.lua" />
|
<action itemid="5928" script="misc/catch_fish.lua" />
|
||||||
|
<action itemid="6279" script="misc/party_cake.lua" />
|
||||||
|
|
||||||
<!-- Dolls -->
|
<!-- Dolls -->
|
||||||
<action itemid="5080" script="misc/dolls.lua" />
|
<action itemid="5080" script="misc/dolls.lua" />
|
||||||
@ -301,6 +303,8 @@
|
|||||||
<action itemid="5096" script="misc/food.lua" />
|
<action itemid="5096" script="misc/food.lua" />
|
||||||
<action itemid="5678" script="misc/food.lua" />
|
<action itemid="5678" script="misc/food.lua" />
|
||||||
<action itemid="6125" script="misc/food.lua" />
|
<action itemid="6125" script="misc/food.lua" />
|
||||||
|
<action itemid="6277" script="misc/food.lua" />
|
||||||
|
<action itemid="6278" script="misc/food.lua" />
|
||||||
|
|
||||||
<!-- Passthrough -->
|
<!-- Passthrough -->
|
||||||
<action fromid="2334" toid="2341" script="misc/doors.lua" />
|
<action fromid="2334" toid="2341" script="misc/doors.lua" />
|
||||||
|
@ -29,6 +29,12 @@ function onUse(player, item, fromPosition, target, toPosition)
|
|||||||
item:remove(1)
|
item:remove(1)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
elseif item:getId() == 6276 then
|
||||||
|
if table.contains(ovens, target:getId()) then
|
||||||
|
Game.createItem(6277, 1, target:getPosition())
|
||||||
|
item:remove(1)
|
||||||
|
return true
|
||||||
|
end
|
||||||
elseif item:getId() == 3605 then
|
elseif item:getId() == 3605 then
|
||||||
if table.contains(milestone, target:getId()) then
|
if table.contains(milestone, target:getId()) then
|
||||||
local parent = item:getParent()
|
local parent = item:getParent()
|
||||||
|
@ -40,7 +40,9 @@ local foods = {
|
|||||||
[3732] = "Munch.", -- green mushroom
|
[3732] = "Munch.", -- green mushroom
|
||||||
[5096] = "Yum.", -- mango
|
[5096] = "Yum.", -- mango
|
||||||
[5678] = "Gulp.", -- tortoise egg
|
[5678] = "Gulp.", -- tortoise egg
|
||||||
[6125] = "Gulp." -- tortoise egg from Nargor
|
[6125] = "Gulp.", -- tortoise egg from Nargor
|
||||||
|
[6277] = "Mmmm.", -- cake
|
||||||
|
[6278] = "Mmmm." -- cake
|
||||||
}
|
}
|
||||||
|
|
||||||
function onUse(player, item, fromPosition, target, toPosition)
|
function onUse(player, item, fromPosition, target, toPosition)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
local fruits = {3584, 3585, 3586, 3587, 3588, 3589, 3590, 3591, 3592, 3593, 3595, 3596, 5096}
|
||||||
|
|
||||||
function onUse(player, item, fromPosition, target, toPosition)
|
function onUse(player, item, fromPosition, target, toPosition)
|
||||||
if not target:isItem() then
|
if not target:isItem() then
|
||||||
return false
|
return false
|
||||||
@ -7,6 +9,11 @@ function onUse(player, item, fromPosition, target, toPosition)
|
|||||||
target:transform(2977, 1)
|
target:transform(2977, 1)
|
||||||
target:decay()
|
target:decay()
|
||||||
return true
|
return true
|
||||||
|
elseif isInArray(fruits, target:getId()) and player:removeItem(6277, 1) then
|
||||||
|
target:remove(1)
|
||||||
|
player:addItem(6278, 1)
|
||||||
|
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
6
data/actions/scripts/misc/party_cake.lua
Normal file
6
data/actions/scripts/misc/party_cake.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
function onUse(player, item, fromPosition, target, toPosition)
|
||||||
|
item:getPosition():sendMagicEffect(CONST_ME_POFF)
|
||||||
|
item:transform(6278, 1)
|
||||||
|
item:getPosition():sendMonsterSay(player:getName() .. " blew out the candle.")
|
||||||
|
return true
|
||||||
|
end
|
@ -28448,8 +28448,6 @@ TypeID = 6275
|
|||||||
Name = "an archway"
|
Name = "an archway"
|
||||||
Flags = {Top,Unmove}
|
Flags = {Top,Unmove}
|
||||||
|
|
||||||
# TODO: pradeti nuo cia
|
|
||||||
|
|
||||||
TypeID = 6276
|
TypeID = 6276
|
||||||
Name = "a lump of cake dough"
|
Name = "a lump of cake dough"
|
||||||
Flags = {Cumulative,Take}
|
Flags = {Cumulative,Take}
|
||||||
@ -28457,19 +28455,23 @@ Attributes = {Weight=100}
|
|||||||
|
|
||||||
TypeID = 6277
|
TypeID = 6277
|
||||||
Name = "a cake"
|
Name = "a cake"
|
||||||
Flags = {Take}
|
Flags = {UseEvent,Take}
|
||||||
Attributes = {Weight=500}
|
Attributes = {Nutrition=10,Weight=500}
|
||||||
|
|
||||||
TypeID = 6278
|
TypeID = 6278
|
||||||
Name = "a cake"
|
Name = "a cake"
|
||||||
Flags = {Take}
|
Description = "It is nicely decorated with fruits and icing"
|
||||||
Attributes = {Weight=500}
|
Flags = {UseEvent,CollisionEvent,Take}
|
||||||
|
Attributes = {Nutrition=10,Weight=500}
|
||||||
|
|
||||||
TypeID = 6279
|
TypeID = 6279
|
||||||
Name = "a party cake"
|
Name = "a party cake"
|
||||||
Flags = {Take}
|
Description = "It is nicely decorated with fruits, icing and a candle. Someone is caring about you"
|
||||||
|
Flags = {UseEvent,Take}
|
||||||
Attributes = {Weight=500}
|
Attributes = {Weight=500}
|
||||||
|
|
||||||
|
# TODO: pradeti nuo cia
|
||||||
|
|
||||||
TypeID = 6280
|
TypeID = 6280
|
||||||
Name = "a broken brick wall"
|
Name = "a broken brick wall"
|
||||||
Flags = {Bottom,Unpass,Unmove,Unthrow,Unlay}
|
Flags = {Bottom,Unpass,Unmove,Unthrow,Unlay}
|
||||||
@ -28551,6 +28553,7 @@ Attributes = {Weight=80}
|
|||||||
|
|
||||||
TypeID = 6300
|
TypeID = 6300
|
||||||
Name = "a death ring"
|
Name = "a death ring"
|
||||||
|
Description = "Wearing it makes you feel a little weaker than usual"
|
||||||
Flags = {Take,Expire}
|
Flags = {Take,Expire}
|
||||||
Attributes = {Weight=80,ExpireTarget=0,TotalExpireTime=480}
|
Attributes = {Weight=80,ExpireTarget=0,TotalExpireTime=480}
|
||||||
|
|
||||||
@ -28888,11 +28891,13 @@ Attributes = {Capacity=6}
|
|||||||
|
|
||||||
TypeID = 6371
|
TypeID = 6371
|
||||||
Name = "an oven kit"
|
Name = "an oven kit"
|
||||||
|
Description = "Use it in your house to construct an oven"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=2500}
|
Attributes = {Weight=2500}
|
||||||
|
|
||||||
TypeID = 6372
|
TypeID = 6372
|
||||||
Name = "a bookcase kit"
|
Name = "a bookcase kit"
|
||||||
|
Description = "Use it in your house to construct a bookcase"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=2500}
|
Attributes = {Weight=2500}
|
||||||
|
|
||||||
@ -28970,6 +28975,7 @@ Attributes = {FluidSource=WATER}
|
|||||||
|
|
||||||
TypeID = 6390
|
TypeID = 6390
|
||||||
Name = "a nightmare shield"
|
Name = "a nightmare shield"
|
||||||
|
Description = "It was crafted by the ancient order of the nightmare knights"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=3200}
|
Attributes = {Weight=3200}
|
||||||
|
|
||||||
@ -29141,6 +29147,7 @@ Flags = {Bottom,Unpass,Unmove}
|
|||||||
|
|
||||||
TypeID = 6432
|
TypeID = 6432
|
||||||
Name = "a necromancer shield"
|
Name = "a necromancer shield"
|
||||||
|
Description = "It is enchanted with unholy, necromantic powers"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=3200}
|
Attributes = {Weight=3200}
|
||||||
|
|
||||||
@ -29404,6 +29411,7 @@ Flags = {Unmove}
|
|||||||
|
|
||||||
TypeID = 6496
|
TypeID = 6496
|
||||||
Name = "a christmas present bag"
|
Name = "a christmas present bag"
|
||||||
|
Description = "It contains presents which were stolen from Santa. Bring them back to Ruprecht on Vega"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=8000}
|
Attributes = {Weight=8000}
|
||||||
|
|
||||||
@ -29413,11 +29421,13 @@ Flags = {Top,Unmove}
|
|||||||
|
|
||||||
TypeID = 6498
|
TypeID = 6498
|
||||||
Name = "a certificate"
|
Name = "a certificate"
|
||||||
|
Description = "You have mastered the Dream Challenge and may apply for joining the order of the Nightmare Knights"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=150}
|
Attributes = {Weight=150}
|
||||||
|
|
||||||
TypeID = 6499
|
TypeID = 6499
|
||||||
Name = "a demonic essence"
|
Name = "a demonic essence"
|
||||||
|
Description = "Someone might be interested in trading this"
|
||||||
Flags = {Cumulative,Take}
|
Flags = {Cumulative,Take}
|
||||||
Attributes = {Weight=100}
|
Attributes = {Weight=100}
|
||||||
|
|
||||||
@ -29453,16 +29463,19 @@ Attributes = {Capacity=5,Weight=600}
|
|||||||
|
|
||||||
TypeID = 6506
|
TypeID = 6506
|
||||||
Name = "a red christmas bundle"
|
Name = "a red christmas bundle"
|
||||||
|
Description = "It contains random christmas decoration"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=2500}
|
Attributes = {Weight=2500}
|
||||||
|
|
||||||
TypeID = 6507
|
TypeID = 6507
|
||||||
Name = "a blue christmas bundle"
|
Name = "a blue christmas bundle"
|
||||||
|
Description = "It contains random christmas decoration"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=2500}
|
Attributes = {Weight=2500}
|
||||||
|
|
||||||
TypeID = 6508
|
TypeID = 6508
|
||||||
Name = "a green christmas bundle"
|
Name = "a green christmas bundle"
|
||||||
|
Description = "It contains random christmas decoration"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=2500}
|
Attributes = {Weight=2500}
|
||||||
|
|
||||||
@ -29540,11 +29553,13 @@ Attributes = {Weight=1000}
|
|||||||
|
|
||||||
TypeID = 6526
|
TypeID = 6526
|
||||||
Name = "a christmas token"
|
Name = "a christmas token"
|
||||||
|
Description = "Collect enough of these to trade them for valuable prizes"
|
||||||
Flags = {Cumulative,Take}
|
Flags = {Cumulative,Take}
|
||||||
Attributes = {Weight=5}
|
Attributes = {Weight=5}
|
||||||
|
|
||||||
TypeID = 6527
|
TypeID = 6527
|
||||||
Name = "the avenger"
|
Name = "the avenger"
|
||||||
|
Description = "This holy blade was forged of shattered dreams"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=6400}
|
Attributes = {Weight=6400}
|
||||||
|
|
||||||
@ -29655,11 +29670,13 @@ Attributes = {Weight=750}
|
|||||||
|
|
||||||
TypeID = 6550
|
TypeID = 6550
|
||||||
Name = "a red powder"
|
Name = "a red powder"
|
||||||
|
Description = "It reeks of hatred and malice"
|
||||||
Flags = {Cumulative,Take}
|
Flags = {Cumulative,Take}
|
||||||
Attributes = {Weight=100}
|
Attributes = {Weight=100}
|
||||||
|
|
||||||
TypeID = 6551
|
TypeID = 6551
|
||||||
Name = "a blue powder"
|
Name = "a blue powder"
|
||||||
|
Description = "Sun can be a merciless killer, but so can you"
|
||||||
Flags = {Cumulative,Take}
|
Flags = {Cumulative,Take}
|
||||||
Attributes = {Weight=100}
|
Attributes = {Weight=100}
|
||||||
|
|
||||||
@ -29681,16 +29698,19 @@ Name = ""
|
|||||||
|
|
||||||
TypeID = 6556
|
TypeID = 6556
|
||||||
Name = "a tic-tac-toe token"
|
Name = "a tic-tac-toe token"
|
||||||
|
Description = "It seems to be rather fragile"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=500}
|
Attributes = {Weight=500}
|
||||||
|
|
||||||
TypeID = 6557
|
TypeID = 6557
|
||||||
Name = "a tic-tac-toe token"
|
Name = "a tic-tac-toe token"
|
||||||
|
Description = "It seems to be rather fragile"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=500}
|
Attributes = {Weight=500}
|
||||||
|
|
||||||
TypeID = 6558
|
TypeID = 6558
|
||||||
Name = "concentrated demonic blood"
|
Name = "concentrated demonic blood"
|
||||||
|
Description = "Shake it to create a potion"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=200}
|
Attributes = {Weight=200}
|
||||||
|
|
||||||
@ -29758,6 +29778,11 @@ Name = "a party trumpet"
|
|||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=50}
|
Attributes = {Weight=50}
|
||||||
|
|
||||||
|
TypeID = 6572
|
||||||
|
Name = "a party trumpet"
|
||||||
|
Flags = {Take,Expire}
|
||||||
|
Attributes = {Weight=50,ExpireTarget=6572,TotalExpireTime=4}
|
||||||
|
|
||||||
TypeID = 6574
|
TypeID = 6574
|
||||||
Name = "a bar of chocolate"
|
Name = "a bar of chocolate"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
@ -29770,6 +29795,7 @@ Attributes = {Weight=10}
|
|||||||
|
|
||||||
TypeID = 6576
|
TypeID = 6576
|
||||||
Name = "a fireworks rocket"
|
Name = "a fireworks rocket"
|
||||||
|
Description = "Do not use in your backpack or while asleep. Keep away from animals or children"
|
||||||
Flags = {Take}
|
Flags = {Take}
|
||||||
Attributes = {Weight=100}
|
Attributes = {Weight=100}
|
||||||
|
|
||||||
|
@ -644,6 +644,7 @@
|
|||||||
<movevent event="RemoveItem" itemid="2927" script="misc/candelabrum.lua" />
|
<movevent event="RemoveItem" itemid="2927" script="misc/candelabrum.lua" />
|
||||||
<movevent event="RemoveItem" itemid="3482" script="misc/open_trap.lua" />
|
<movevent event="RemoveItem" itemid="3482" script="misc/open_trap.lua" />
|
||||||
<movevent event="StepIn" frommovementid="51191" tomovementid="51198" script="misc/turtles.lua" />
|
<movevent event="StepIn" frommovementid="51191" tomovementid="51198" script="misc/turtles.lua" />
|
||||||
|
<movevent event="AddItem" itemid="6278" tileitem="1" script="misc/lit_candlestick.lua" />
|
||||||
|
|
||||||
<!--Doors -->
|
<!--Doors -->
|
||||||
<movevent event="StepOut" itemid="1643" script="misc/doors.lua" />
|
<movevent event="StepOut" itemid="1643" script="misc/doors.lua" />
|
||||||
|
8
data/movements/scripts/misc/lit_candlestick.lua
Normal file
8
data/movements/scripts/misc/lit_candlestick.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
function onAddItem(item, tileitem, position)
|
||||||
|
if item:getId() == 2918 or item:getId() == 2917 then
|
||||||
|
tileitem:transform(6279, 1)
|
||||||
|
item:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
|
||||||
|
item:remove()
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user