module-development
textPage 6 of 43
50 messages on this page
Thursday, July 24, 2025
User bddf69
Ah I see it I think
User a12f6e
I have no idea if it's related but I did rename this command and changed the trigger.
User a12f6e
woot thanks! ๐
User bddf69
Thanks! This will fix the types error. NExt release ;) https://github.com/gettakaro/takaro/pull/2273
User a12f6e
"id": "fd8ec299-f1ea-4ed5-bc13-b19260a3d471"User a12f6e
Sure, gimme a minute. Finishing up making tea. ๐
User bddf69
Can you copy paste the event ID for that please?
User a12f6e
Wellll when I tried to test it I got an InternalServerError lol, any idea what "Unexpected identifier" means for the errormessage?
"command": { "id": "eb6a7d5c-234e-4160-8517-532263ba4893", "name": "Next", "arguments": { "action": "crontest" } }, "result": { "error": "InternalServerError", "errorMessage": "Unexpected identifier", "success": false, "logs": [] } },```
User a12f6e
I can test it in a sec but yeah I'm pretty sure it will work in-game, this seems like just a Studio thing
User a12f6e
I haven't tried it yet though, not done writing the script
User a12f6e
I assume so, it works in JSFiddle heh
User bddf69
Does it work when you run it? Is it only a studio thing?
User bddf69
Ahh yeah I see what you mean! The types are messed up for it
User a12f6e
Yep, one is
new Date() and the other is nextCronJobRun(cron.temporalValue) as Date.User bddf69
Are those two things actually
Date objects?User a12f6e
No not everywhere, just subtracting dates.
User bddf69
Everywhere? That sounds like you have invalid javascript actually :p
User a12f6e
The Studio editor is yelling at me telling me that the left- and right-hand sides of arithmetic operations must be of types 'any', 'number', 'bigint', or enum FYI. Seems like a bug...? ๐
User 6ceaf4
have only
/bank as a command, with one argument. Then work on if argument = deposit, if argument = withdraw...User bddf69
No that's not possible, every command is logged. If you could bypass that system, it would be pretty bad as an audit log <a:scream:803090192784556033>
User 2fc02a
I aalways do my friend
User 041e0a
share it when you do ๐ค
User 2fc02a
i think that can be one trigger but plzzzzz tell me how you are able to remove the deposit from their inventory
User 2fc02a
Thhis is awesome! Soon i plan to integrate it into one
User 041e0a
Ive Spit The VIP Module Two Tiers
User a12f6e
Is there any way I can make my command not write to events? Asking because I'd like to make a set of commands that fall as subcommands of a main command, like "/bank deposit", "/bank withdraw", etc. I'd like to not spam events with event entries from 4-5 command triggers when only one of the triggers is actually doing something.
Wednesday, July 23, 2025
User 041e0a
Updated Version?
User 69dd72
Server status change
User 5c75f2
dont suppose anyones got a module for sending automatic server restart messages as well as Server starting messages for discord?
User 6ceaf4
and advanced claims are not something you can do with takaro, only with cpm, I'm afraid
User 6ceaf4
still, asking in the wrong place wont get you an answer faster
User ba46a0
hopefully this is on the roadmap to be implemented in takaro as a module so add debuff to player when entering and exiting zones
User ba46a0
i are has ... not response yet ๐ฆ
User 6ceaf4
There you go. It is a CPM related thing. #support is where you want to ask this kind of thing
User ba46a0
buff.xml in the CPM mod. When you setup a reset zone on the map when you enter or exit the reset zone nothing happens. It used to give you a debuff while in zone
User 6ceaf4
what buffs are you talking about?
User ba46a0
i dunno. Buffs dont work and there isnt a module for it so not sure if this is something on the roadmap
User 6ceaf4
Is that takaro related?
User ba46a0
Is there a way to get buffs to work on reset zones. For some reason the default implementation just dont come up when entering a reset zone
User bddf69
Very good timing! SInce 0.3.0 it is possible :) Check the sendMessage API endpoint, I added a few examples for posting embed messages
User 2bffa0
Is it possible to create embed messages to Discord?
User 2fc02a
I might make a 250k zombie boss spawn if they're higher than level 100
User a827fb
I'm just waiting for someone to collect their vote inside their base...
User 2fc02a
I would make thi in takaro but most of my players live in zombie free lol
User a827fb
Best of all, it was a joke suggestion from a player ๐
User 2fc02a
Thats awesome!
User a827fb
1 in 10 chance that 5 party girls will spawn to help the player celebrate having voted.
say "${player.name} has just voted and received 50 ${server.config.currencyName} and a nice little gift!"; addCurrency(${player.id}, 50); wait(1); spawnentity ${player.entityId} sc_General; {{setVar "random_(player.steamID)" (randNum 1 20)}}; {{#if (lte (getVar "random_(player.steamID)") 2) }} say "Some friends have come to help ${player.name} unpack their gift!"; wait(1); se ${player.entityId} 9 5; {{else if (eq (getVar "random_(player.steamID)") 20) }}; pm ${player.entityId} "Cha-ching!"; wait(1); giveplus {{player.entityId}} casinoCoin 1000; {{/if}}
Updated. Syntax errors in the original. This gives a reward then rolls a dice. 1-2 = 5 party girls, and a 20 gives 1000 dukes.
