Skip to content

Commit

Permalink
Merge pull request #1 from mauriliogenovese/dev
Browse files Browse the repository at this point in the history
v1.1.0
  • Loading branch information
mauriliogenovese committed Aug 24, 2023
2 parents 480394a + 2995eb8 commit 420cb34
Show file tree
Hide file tree
Showing 23 changed files with 1,477 additions and 1,022 deletions.
38 changes: 35 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# SPAM
Seymour PAckage for Mudlet
## Installation
## _Seymour PAckage for Mudlet_
SPAM è un package Mudlet per migliorare l'esperienza di gioco in [Dei delle Ere].

lua uninstallPackage("SPAM") installPackage("https://raw.githubusercontent.com/mauriliogenovese/SPAM/main/build/SPAM.mpackage")
## Features
SPAM include i seguenti moduli, ciascuno attivabile o disattivabile:
- DdEgroup: monitor per la gestione dei PF e dei buff del gruppo
- AbbilChat: monitor per la visualizzazione delle comunicazioni sviluppato da [Abbil]
- Gloria: timer per tracciare la gloria ottenuta nelle ultime 24 ore
- Appunti: possibilità di copiare negli appunti del sistema operativo identificazioni e valuta mostri
- NariaDB: possibilità di inviare automaticamente al database di [Nikeb] le identificazioni
- Colorazione per i PF del prompt, lo stato di usura degli oggetti
- Suoni: trillo quando si riceve un beep
- Build e test mediante [Muddler]


## Installazione
Per installare SPAM la prima volta è sufficiente dare in gioco il seguente comando in un'unica riga:
```
lua uninstallPackage("SPAM") installPackage("https://raw.githubusercontent.com/mauriliogenovese/SPAM/main/build/SPAM.mpackage")
```
Oppure scaricare ed importare in Mudlet l'[ultima release].

Per i successivi aggiornamenti è possibile utilizzare in gioco il comando <spam update>

## Utilizzo
Per esplorare tutte le funzioni del package basta digitare il comando <spam> in gioco
Per le opzioni del monitor buff è possibile digitare il comando <observe>


[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)

[Dei delle Ere]: https://discord.gg/5X7HHaE9PN
[Abbil]: https://moylen.eu/dde/
[Nikeb]: http://arendil.sytes.net:5000/
[Muddler]: https://github.com/demonnic/muddler
[ultima release]: https://raw.githubusercontent.com/mauriliogenovese/SPAM/main/build/SPAM.mpackage
Binary file modified build/SPAM.mpackage
Binary file not shown.
2 changes: 1 addition & 1 deletion mfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package": "SPAM",
"version": "1.0.4",
"version": "1.1.0",
"author": "Seymour",
"title": "Seymour PAckage for Mudlet",
"outputFile": true
Expand Down
6 changes: 5 additions & 1 deletion src/aliases/gd.lua
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
send("gd " .. persistent_variables[character_name]["gd_start"] .. matches[3] .. persistent_variables[character_name]["gd_end"] .. "&d")
if SPAM.config.get("gdcolor")==true then
send("gd " .. SPAM.config.get("gd_start") .. matches[3] .. SPAM.config.get("gd_end") .. "&d")
else
send(matches[1])
end
65 changes: 45 additions & 20 deletions src/aliases/observe.lua
Original file line number Diff line number Diff line change
@@ -1,56 +1,81 @@
local help_string =
[[
Questo è l'aiuto per l'alias observe del package BuffObserver
<grey>Questo è l'aiuto per l'alias observe del package BuffObserver
Il comando è abbreviabile con ob.
Se vuoi monitorare i buff di un alleato usa: observe nome ruolo
I ruoli ammessi sono: base, tank, dps, tankdps, remove (rimuove l'alleato)
Per visionare tutti gli alleati in observe usa: observe list
Per svuotare la lista degli alleati in observe usa: observe clear
Per aggiungere un buff optionale usa: observe optionalbuff alleato cast
Se vuoi monitorare i buff di un alleato usa: <yellow>observe nomealleato ruolo
<grey>I ruoli ammessi sono: <yellow>base, tank, dps, tankdps, remove (rimuove l'alleato)
<grey>Per visionare tutti gli alleati in observe usa: <yellow>observe list
<grey>Per svuotare la lista degli alleati in observe usa: <yellow>observe clear
<grey>Per aggiungere un buff optionale usa: <yellow>observe optionalbuff nomealleato cast
<grey>Inoltre è possibile riattivare un buff su se stessi con comandi personalizzati
(ad esempio indossando un oggetto, o qualsiasi altra cosa).
Per aggiungere un buff personalizzato usa: <yellow>observe customrefresh cast-comando1,comando2,...
<grey>Ad esempio: <yellow>observe customrefresh scudo di ghiaccio-impuigna bacchetta, zap me,rimuovi bacchetta
]]
local roles = {"remove", "base", "tank", "dps", "tankdps", "dpstank"}
local role = ""
local split = explode(matches[3])
if #split == 1 then
if string.starts("list", string.lower(split[1])) then
echo("\nLista observe:")
display(persistent_variables[character_name]["observe_list"])
cecho("\n<yellow>Lista observe: ")
display(SPAM.config.get("observe_list"))
cecho("\n\n<yellow>Lista buff opzionali:")
display(SPAM.config.get("optional_buff"))
cecho("\n\n<yellow>Lista custom refresh:")
display(SPAM.config.get("custom_refresh"))
return
end
if string.starts("clear", string.lower(split[1])) then
persistent_variables[character_name]["observe_list"] = nil
persistent_variables[character_name]["observe_list"] = {}
save_persistent_var(character_name)
SPAM.config.set("observe_list", {})
echo("\nLista observe svuotata")
send("\n")
return
end
end
if #split > 1 then
if string.starts("optionalbuff", string.lower(split[1])) then
allyName = getAllyName(split[2])
local allyName = getAllyName(split[2])
if allyName == nil then
cecho("\n<red>Nessun alleato trovato per " .. split[2])
echo("\nLa sintassi corretta è: observe optionalbuff alleato cast\n")
cecho("\nLa sintassi corretta è: <yellow>observe optionalbuff alleato cast\n")
send("\n")
return
end
if persistent_variables[character_name]["optional_buff"][allyName] == nil then
persistent_variables[character_name]["optional_buff"][allyName] = {}
if SPAM.config.get("optional_buff")[allyName] == nil then
SPAM.config.get("optional_buff")[allyName] = {}
end
buff = removeFirstTwoWords(matches[3])
if persistent_variables[character_name]["optional_buff"][allyName][buff] == true then
local buff = removeFirstTwoWords(matches[3])
if SPAM.config.get("optional_buff")[allyName][buff] == true then
echo("\nRimuovo " .. buff .. " per " .. allyName .. "\n")
persistent_variables[character_name]["optional_buff"][allyName][buff] = nil
SPAM.config.get("optional_buff")[allyName][buff] = nil
else
echo("\nOsservo " .. buff .. " per " .. allyName .. "\n")
persistent_variables[character_name]["optional_buff"][allyName][buff] = true
SPAM.config.get("optional_buff")[allyName][buff] = true
end
send("\n")
save_persistent_var(character_name)
SPAM.config.save_characters()
return
elseif string.starts("customrefresh", string.lower(split[1])) then
if SPAM.config.get("custom_refresh") == nil then
SPAM.config.set("custom_refresh", {})
end
local exp = explode(removeFirstWord(matches[3]), "-")
if #exp == 2 then
exp[1] = trim(exp[1])
if SPAM.config.get("custom_refresh")[exp[1]] ~= nil then
echo("\nRimuovo custom refresh " .. exp[1] .. "\n")
SPAM.config.get("custom_refresh")[exp[1]] = nil
else
echo("\nOsservo custom refresh " .. exp[1] .. " with command" .. exp[2] .. "\n")
SPAM.config.get("custom_refresh")[exp[1]] = explode(exp[2],",")
end
send("\n")
SPAM.config.save_characters()
return

end
end
if ob_role(split[1], split[2], true) then
return
Expand Down
Loading

0 comments on commit 420cb34

Please sign in to comment.