#(mrcrash) Return all numbers between two numbers
61 messages · Page 1 of 1 (latest)
(mrcrash) Return all numbers between two numbers
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
iirc, it's something like <util.int.from[1].to[5]>.
Tag parse results for <util.int.from[1].to[5]>: https://paste.denizenscript.com/View/126027
util.int.from[1].to[5]
Had error: Tag <util.int.from[1].to[5]> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) 'int.from[1].to[5]' for tag <util.int.from[1].to[5]>!
Had error: The returned value from initial tag fragment 'util' was: '(Base-Object)'.
Tag parse results for <util.int[1].to[5]>: https://paste.denizenscript.com/View/126028
util.int[1].to[5]
Had error: Tag <util.int[1].to[5]> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) 'int[1].to[5]' for tag <util.int[1].to[5]>!
Had error: The returned value from initial tag fragment 'util' was: '(Base-Object)'.
Why do you specifically need to return numbers from 1 - 5? Or was this just an example?
I saw <util.random.int[<#>].to[<#>]>. and though it would work without the .random, because why would it not. Turns out, it did, in-fact, not work.
It's a different tag, but I would like to know the usecase first
actually the warning is on the tag itself
!t util.list_numbers
Returns a list of integer numbers in the specified range.
You must specify at least the 'to' input, you can optionally specify 'from' (default 1), and 'every' (default 1).
Note that this generally should not be used as input to the 'foreach' command. Instead, use !command repeat.
ListTag
# Narrates "1, 2, and 3"
- narrate <util.list_numbers[to=3].formatted>
# Narrates "3, 4, and 5"
- narrate <util.list_numbers[from=3;to=5].formatted>
# Narrates "4, 8, and 12"
- narrate <util.list_numbers[from=4;to=12;every=4].formatted>
I need to return a list of slots inside:
<context.inventory.slot[HERE]>
ye
yay
+> YAY!!!
isnt that just value > smallest && value < largest
Mb, i need to return a slot id list
It's for using a foreach slots from 1 to 54
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
What are you trying to do exactly
You did exactly the thing that's the tag is not for
Im trying to use a list of slot inside a foreach loop to set xy items inside each one
Content of Denizen Script Paste #126036: Unnamed Denizen Script Paste... pasted 2024/08/27 04:44:50 UTC-07:00, Paste length: 978 characters across 6 lines, Content: on player opens cim_sel_menu: - foreach <context.inventory.slot[<util.list_numbers[to=5...
?
Mind sharing a debug so I can check what all the values are
Content of Server Log Paste #126037: Denizen Debug Logs From PVP Faction... pasted 2024/08/27 06:00:39 UTC-07:00, Paste length: 680799 characters across 5836 lines, Content: Java Version: 21.0.3Up-time: 18h 52m
Your second foreach loop only contains an a
can you elaborate on this
holdup
@cyan ridge cracked @compact horizon
Role applied.
Thread created: #1277977078859431988
Content of Server Log Paste #126037: Denizen Debug Logs From PVP Faction... pasted 2024/08/27 06:00:39 UTC-07:00, Paste length: 680799 characters across 5836 lines, Content: Java Version: 21.0.3Up-time: 18h 52m
Purpur version 1.20.6-2233-0d6766e (MC: 1.20.6)
Citizens: 2.0.35-SNAPSHOT (build 3479) -- (:warning:Outdated build, behind by 56)
Denizen: 1.3.1-SNAPSHOT (build 7066-DEV) -- (Current build :white_check_mark:)
Depenizen: 2.1.1 (build 864) -- (Current build :white_check_mark:)
@blissful schooner
3 (:triangular_flag_on_post: Offline)
21.0.3 :white_check_mark:
ProtocolLib: 5.3.0-SNAPSHOT-726, Quests: 5.1.2-b501
PvPManager: 3.34.27 - :warning: PvPManager is known to cause issues related to Citizens and Sentinel.
TAB: 4.1.6 - This plugin adds Below_Name scoreboards to NPCs.
ViaVersion: 5.0.3 - Mixed client vs server versions can sometimes cause packet-related issues.
FastAsyncWorldEdit: 2.11.2-SNAPSHOT-879;d1e2511 - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.
Hi, there is a mistake here, i'm the owner and the server are closed for offline player BUT, i used for 30 minutes a Bot plugin for testing the tab. For that i needed to temporarily open the server to offline people.
(that why there is 200+ players in the list probably)
A helper would be able to elaborate further than I can.
Regardless of why, we cannot, and do not support servers that are running in offline mode.
I do not see why you have to have a live server run in offline mode.
This server is probably better served with a wipe in terms of data generated with non UUID v4 data. If you're not willing to do that, at the very least, you'd have to purge your existing player data files to get rid of all the invalid player files.
Not sure what plugin requires offline mode, but it sounds sketchy at best, and piracy at worst; which is also a no-no for I hope you understand are obvious reasons.
that may help you for understanding
For first glance of that, is Citizens 2 not sufficient?
but yes we going to wipe out all player data before release
when i'm setting up the tab, i didn't know citizens are able to do that, good to know
I am not sure if Citizen can, but Denizen definitely can. Keep in mind though, it is forbidden by Mojang to have your server reflect more players than it actually has.
Then yes, you should be able to work just fine with Citizens, and Denizen.
!c tablist
player
tablist [add/remove/update] (name:<name>) (display:<display>) (uuid:<uuid>) (skin_blob:<blob>) (latency:<#>) (gamemode:creative/survival/adventure/spectator) (listed:true/false)
Modifies values in the player's tablist.
Adds, removes, or updates a player profile entry in the player's tab-list view.
Using 'add' will add a new entry to the client's player list.
'name' must be specified.
'display' if unspecified will be the same as the name.
'uuid' if unspecified will be randomly generated.
'skin_blob' if unspecified will be a default Minecraft skin. Skin blob should be in format "texture;signature" (separated by semicolon).
'latency' is a number representing the players ping, if unspecified will be 0. 0 renders ...
Currently, the tab are already set up, but if needed, we will use that, thx
@cyan ridge cracked @blissful mist
Role applied.
Thread created: #1278026622179610695
Contains a ?
the 2nd foreach is just a list of names