some 7.92 items update

This commit is contained in:
ErikasKontenis
2020-03-05 21:56:52 +02:00
parent 6624800f1c
commit 434daeb010
12 changed files with 157 additions and 75 deletions

View File

@@ -164,6 +164,7 @@
<action itemid="5776" script="misc/sabrehaven_talon.lua" />
<action itemid="5928" script="misc/catch_fish.lua" />
<action itemid="6279" script="misc/party_cake.lua" />
<action itemid="6387" script="misc/christmas_card.lua" />
<!-- Dolls -->
<action itemid="5080" script="misc/dolls.lua" />
@@ -306,6 +307,9 @@
<action itemid="6125" script="misc/food.lua" />
<action itemid="6277" script="misc/food.lua" />
<action itemid="6278" script="misc/food.lua" />
<action itemid="6392" script="misc/food.lua" />
<action itemid="6393" script="misc/food.lua" />
<action itemid="6500" script="misc/food.lua" />
<!-- Passthrough -->
<action fromid="2334" toid="2341" script="misc/doors.lua" />

View File

@@ -0,0 +1,5 @@
function onUse(player, item, fromPosition, target, toPosition)
item:getPosition():sendMagicEffect(CONST_ME_SOUND_YELLOW)
item:getPosition():sendMonsterSay("Merry Christmas, " .. player:getName() .. "!")
return true
end

View File

@@ -42,7 +42,10 @@ local foods = {
[5678] = "Gulp.", -- tortoise egg
[6125] = "Gulp.", -- tortoise egg from Nargor
[6277] = "Mmmm.", -- cake
[6278] = "Mmmm." -- cake
[6278] = "Mmmm.", -- cake
[6392] = "Mmmm.", -- valentine's cake
[6393] = "Mmmm.", -- cream cake
[6500] = "Mmmm.", -- gingerbreadman
}
function onUse(player, item, fromPosition, target, toPosition)