module-development

textPage 6 of 43
50 messages on this page
Thursday, July 24, 2025
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ah I see it I think
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
I have no idea if it's related but I did rename this command and changed the trigger.
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
woot thanks! ๐Ÿ™‚
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Thanks! This will fix the types error. NExt release ;) https://github.com/gettakaro/takaro/pull/2273
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
"id": "fd8ec299-f1ea-4ed5-bc13-b19260a3d471"
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Sure, gimme a minute. Finishing up making tea. ๐Ÿ™‚
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Can you copy paste the event ID for that please?
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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": []
    }
  },```
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
I haven't tried it yet though, not done writing the script
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
I assume so, it works in JSFiddle heh
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Does it work when you run it? Is it only a studio thing?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ahh yeah I see what you mean! The types are messed up for it
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Yep, one is
new Date()
and the other is
nextCronJobRun(cron.temporalValue) as Date
.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Are those two things actually
Date
objects?
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
No content
image.png

image.png

PNG โ€ข 4.9 KB

Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
No not everywhere, just subtracting dates.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Everywhere? That sounds like you have invalid javascript actually :p
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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...? ๐Ÿ™‚
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
have only
/bank
as a command, with one argument. Then work on if argument = deposit, if argument = withdraw...
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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>
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
I aalways do my friend
Avatar for 041e0acf3ce0775f2a8138ba5237661bdc9677ecb35f67146ba301eca81a1e80
User 041e0a
share it when you do ๐ŸคŸ
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
i think that can be one trigger but plzzzzz tell me how you are able to remove the deposit from their inventory
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Thhis is awesome! Soon i plan to integrate it into one
Avatar for 041e0acf3ce0775f2a8138ba5237661bdc9677ecb35f67146ba301eca81a1e80
User 041e0a
No content

VIP2-1753327631807.json

JSON โ€ข 3.6 KB

VIP1-1753327718063.json

JSON โ€ข 4.7 KB

Avatar for 041e0acf3ce0775f2a8138ba5237661bdc9677ecb35f67146ba301eca81a1e80
User 041e0a
Ive Spit The VIP Module Two Tiers
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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
Avatar for 041e0acf3ce0775f2a8138ba5237661bdc9677ecb35f67146ba301eca81a1e80
User 041e0a
Updated Version?
Avatar for 69dd72e9beda7be7af827395b1f4c2eae3591be65684955a7d6af40731acc13c
User 69dd72
Server status change
Avatar for 5c75f2ead9539cedf84becdac7befc72fa3bc877c1541fb168d92420c32b6730
User 5c75f2
dont suppose anyones got a module for sending automatic server restart messages as well as Server starting messages for discord?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
and advanced claims are not something you can do with takaro, only with cpm, I'm afraid
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
still, asking in the wrong place wont get you an answer faster
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
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
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
i are has ... not response yet ๐Ÿ˜ฆ
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
There you go. It is a CPM related thing. #support is where you want to ask this kind of thing
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
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
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
what buffs are you talking about?
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
i dunno. Buffs dont work and there isnt a module for it so not sure if this is something on the roadmap
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Is that takaro related?
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for 2bffa0f5cab2a92d04b2e63aae81661c79638a7959c6e2f44f576d976e0aa78a
User 2bffa0
Is it possible to create embed messages to Discord?
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
I might make a 250k zombie boss spawn if they're higher than level 100
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
User a827fb
I'm just waiting for someone to collect their vote inside their base...
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
I would make thi in takaro but most of my players live in zombie free lol
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
User a827fb
Best of all, it was a joke suggestion from a player ๐Ÿ˜„
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Thats awesome!
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
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.