Skip to content

Commit c39aa1d

Browse files
author
Heron
committed
Location fix for shellfish harvesting tool
1 parent 89b44d7 commit c39aa1d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

sku.0/sys.server/compiled/game/script/harvesting/shellfish_harvesting.java

100755100644
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public int harvest(obj_id self, dictionary params) throws InterruptedException
109109
{
110110
return SCRIPT_CONTINUE;
111111
}
112+
113+
location playerLocation = getLocation(player);
114+
112115
int searchRoll = rand(1, 100);
113116
if (searchRoll < 25)
114117
{
@@ -118,13 +121,13 @@ else if (searchRoll < 70)
118121
{
119122
sendSystemMessage(player, SID_FOUND_MOLLUSKS);
120123
int amt = rand(8, 14);
121-
resource.createRandom("seafood_mollusk", amt, getLocation(self), pInv, player, 2);
124+
resource.createRandom("seafood_mollusk_" + playerLocation.area, amt, playerLocation, pInv, player, 2);
122125
}
123126
else
124127
{
125128
sendSystemMessage(player, SID_FOUND_CRUSTACEANS);
126129
int amt = rand(8, 14);
127-
resource.createRandom("seafood_crustacean", amt, getLocation(self), pInv, player, 2);
130+
resource.createRandom("seafood_crustacean_" + playerLocation.area, amt, playerLocation, pInv, player, 2);
128131
}
129132
utils.removeScriptVar(player, "shellfish_harvesting");
130133
return SCRIPT_CONTINUE;

0 commit comments

Comments
 (0)