mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 22:54:53 +02:00
finish many new 7.92 items and missing todo items from 7.8
This commit is contained in:
16
data/actions/scripts/misc/catch_fish.lua
Normal file
16
data/actions/scripts/misc/catch_fish.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
if target.itemid ~= 5553 then
|
||||
return false
|
||||
end
|
||||
|
||||
if math.random(2) ~= 1 then
|
||||
player:say("The golden fish escaped.", TALKTYPE_MONSTER_SAY)
|
||||
return true
|
||||
end
|
||||
|
||||
player:say("You catch a golden fish in the bowl.", TALKTYPE_MONSTER_SAY)
|
||||
item:transform(5929)
|
||||
target:remove()
|
||||
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
|
||||
return true
|
||||
end
|
@@ -1,5 +1,5 @@
|
||||
local lockedDoors = {
|
||||
1628, 1631, 1650, 1653, 1668, 1671, 1682, 1691, 5006, 5007, 5097, 5106, 5115, 5124, 5133, 5136, 5139, 5142, 5277, 5280, 5732, 5735
|
||||
1628, 1631, 1650, 1653, 1668, 1671, 1682, 1691, 5006, 5007, 5097, 5106, 5115, 5124, 5133, 5136, 5139, 5142, 5277, 5280, 5732, 5735, 6191, 6194, 6248, 6251
|
||||
}
|
||||
|
||||
local closedNormalDoors = {
|
||||
@@ -43,6 +43,14 @@ local closedNormalDoors = {
|
||||
[5516] = 5517,
|
||||
[5733] = 5734,
|
||||
[5736] = 5737,
|
||||
[6192] = 6193,
|
||||
[6195] = 6196,
|
||||
[6197] = 6198,
|
||||
[6199] = 6200,
|
||||
[6249] = 6250,
|
||||
[6252] = 6253,
|
||||
[6254] = 6255,
|
||||
[6256] = 6257,
|
||||
}
|
||||
|
||||
local openVerticalDoors = {
|
||||
@@ -81,6 +89,14 @@ local openVerticalDoors = {
|
||||
[5515] = 5514,
|
||||
[5737] = 5736,
|
||||
[5748] = 5749,
|
||||
[6193] = 6192,
|
||||
[6198] = 6197,
|
||||
[6202] = 6201,
|
||||
[6206] = 6205,
|
||||
[6250] = 6249,
|
||||
[6255] = 6254,
|
||||
[6259] = 6258,
|
||||
[6263] = 6262,
|
||||
}
|
||||
|
||||
local openHorizontalDoors = {
|
||||
@@ -119,6 +135,14 @@ local openHorizontalDoors = {
|
||||
[5517] = 5516,
|
||||
[5734] = 5733,
|
||||
[5746] = 5745,
|
||||
[6196] = 6195,
|
||||
[6200] = 6199,
|
||||
[6204] = 6203,
|
||||
[6208] = 6207,
|
||||
[6253] = 6252,
|
||||
[6257] = 6256,
|
||||
[6261] = 6260,
|
||||
[6265] = 6264,
|
||||
}
|
||||
|
||||
local levelDoors = {
|
||||
@@ -137,6 +161,10 @@ local levelDoors = {
|
||||
[5129] = 5130,
|
||||
[5291] = 5292,
|
||||
[5293] = 5294,
|
||||
[6205] = 6206,
|
||||
[6207] = 6208,
|
||||
[6262] = 6263,
|
||||
[6264] = 6265,
|
||||
}
|
||||
|
||||
local questDoors = {
|
||||
@@ -155,6 +183,10 @@ local questDoors = {
|
||||
[5289] = 5290,
|
||||
[5745] = 5746,
|
||||
[5749] = 5748,
|
||||
[6201] = 6202,
|
||||
[6203] = 6204,
|
||||
[6258] = 6259,
|
||||
[6260] = 6261,
|
||||
}
|
||||
|
||||
local passthrough = {
|
||||
|
@@ -40,6 +40,8 @@ local parcels = {
|
||||
[5086] = 5046,
|
||||
[5087] = 5055,
|
||||
[5088] = 5056,
|
||||
[6114] = 6111,
|
||||
[6115] = 6109,
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
|
@@ -39,6 +39,14 @@ local closedDoors = {
|
||||
[5733] = 5732,
|
||||
[5735] = 5737,
|
||||
[5736] = 5735,
|
||||
[6191] = 6193,
|
||||
[6192] = 6191,
|
||||
[6194] = 6196,
|
||||
[6195] = 6194,
|
||||
[6248] = 6250,
|
||||
[6249] = 6248,
|
||||
[6251] = 6253,
|
||||
[6252] = 6251,
|
||||
}
|
||||
|
||||
local openDoors = {
|
||||
@@ -62,6 +70,10 @@ local openDoors = {
|
||||
[5282] = 5280,
|
||||
[5734] = 5732,
|
||||
[5737] = 5735,
|
||||
[6193] = 6191,
|
||||
[6196] = 6194,
|
||||
[6250] = 6248,
|
||||
[6253] = 6251,
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
|
Reference in New Issue
Block a user