mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-27 16:56:48 -04:00
Merge pull request #401 from SWG-Source/fix/shellfish-harvesting-planet-resource
Location fix for shellfish harvesting tool
This commit is contained in:
Executable → Regular
+5
-2
@@ -109,6 +109,9 @@ public class shellfish_harvesting extends script.base_script
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
location playerLocation = getLocation(player);
|
||||
|
||||
int searchRoll = rand(1, 100);
|
||||
if (searchRoll < 25)
|
||||
{
|
||||
@@ -118,13 +121,13 @@ public class shellfish_harvesting extends script.base_script
|
||||
{
|
||||
sendSystemMessage(player, SID_FOUND_MOLLUSKS);
|
||||
int amt = rand(8, 14);
|
||||
resource.createRandom("seafood_mollusk", amt, getLocation(self), pInv, player, 2);
|
||||
resource.createRandom("seafood_mollusk_" + playerLocation.area, amt, playerLocation, pInv, player, 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendSystemMessage(player, SID_FOUND_CRUSTACEANS);
|
||||
int amt = rand(8, 14);
|
||||
resource.createRandom("seafood_crustacean", amt, getLocation(self), pInv, player, 2);
|
||||
resource.createRandom("seafood_crustacean_" + playerLocation.area, amt, playerLocation, pInv, player, 2);
|
||||
}
|
||||
utils.removeScriptVar(player, "shellfish_harvesting");
|
||||
return SCRIPT_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user