This repository has been archived by the owner on Apr 29, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change LSTYPE and breaklinkshell/kicking. Add 'broken' column to linkshells table. * Break linkshell and all pearls/sacks by dropping linkshell or gm command. * Pearlsack kick breaks equipped pearl, linkshell kick breaks all pearls/sacks in all inventories. * lsmes privilege. * Equipable from any local inventory (inventory, satchel, sack, case).
- Loading branch information
Showing
12 changed files
with
269 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--------------------------------------------------------------------------------------------------- | ||
-- func: breaklinkshell | ||
-- desc: Breaks a linkshell and all pearls/sacks | ||
--------------------------------------------------------------------------------------------------- | ||
|
||
cmdprops = | ||
{ | ||
permission = 4, | ||
parameters = "s" | ||
}; | ||
|
||
function error(player, msg) | ||
player:PrintToPlayer(msg); | ||
player:PrintToPlayer("!breaklinkshell <linkshell name>"); | ||
end; | ||
|
||
function onTrigger(player, target) | ||
|
||
-- validate target | ||
if not target then | ||
error(player, "You must enter a linkshell name."); | ||
return | ||
end | ||
|
||
if player:breakLinkshell(target) then | ||
player:PrintToPlayer("Linkshell named \""..target.."\" has been broken!"); | ||
else | ||
error(player, string.format("Linkshell named \"%s\" not found!", target)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.