custom-hooks-commands

textPage 11 of 152
50 messages on this page
Sunday, August 18, 2024
Avatar for 3ae430df95fb1150726a46c68a6fa556508749dde97914e1c4d76ae5563f72bf
User 3ae430
Thank you so much, i replaced "This" with "player" and it worked.
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Every player is 1000 unless there is an entry for it in serveradmin.xml
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
There is no 1500
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Oh and ingame the max permission level is 1000
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
player
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Use the native object
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
But are not in a loop
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
You use "this"
Avatar for 3ae430df95fb1150726a46c68a6fa556508749dde97914e1c4d76ae5563f72bf
User 3ae430
it worked tho, but not like i want it. first time it executed them all so it ended up with me having the Player tag, which is the last one to execute. but now none of them will execute.
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
Someone feel free to correct me if I am wrong here, but pretty sure I recall that V1.0 broke using color codes for player names.
Avatar for 3ae430df95fb1150726a46c68a6fa556508749dde97914e1c4d76ae5563f72bf
User 3ae430
Ok i tried this:
{{#if (lte this.role.level 0)}}
cgc adduser {{this.entityId}} admins;
admin add {{this.entityId}} 1;
ocn ${player.name} "ff3a00 [ffffff]${player.name}";
{{else if (lte this.role.level 1500)}}
cgc adduser {{this.entityId}} donators;
admin add {{this.entityId}} 1500;
ocn ${player.name} "c0207c [ffffff]${player.name}";
{{else if (lte this.role.level 1000)}}
cgc adduser {{this.entityId}} member;
admin add {{this.entityId}} 1000;
ocn ${player.name} "77d41f [ffffff]${player.name}";
{{else if (lte this.role.level 2000)}}
cgc adduser {{this.entityId}} players;
admin add {{this.entityId}} 2000;
ocn ${player.name} "2086c0 [ffffff]${player.name}";
{{/if}}
But it executed them all and then i end up with the player tag.
Edit: going insane, i do not know what im doing wrong and now it wont execute at all.
Avatar for 3ae430df95fb1150726a46c68a6fa556508749dde97914e1c4d76ae5563f72bf
User 3ae430
can anyone help me make a hook to add a tag to connected players? where the tag has a color and the name remains white, i used to have this but i cannot remember the hook.
Friday, August 16, 2024
Avatar for 8649f6d5c34ee55db9120aee200547f7aebd05c7efc82bfc4fc964a56e001205
User 8649f6
Finally did it in C# ๐Ÿฅฒ
Tuesday, August 13, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Try the #each loop
Avatar for 8649f6d5c34ee55db9120aee200547f7aebd05c7efc82bfc4fc964a56e001205
User 8649f6
wait(5);
{{#if (or (ne player.positionX (get "positionX" (lookupPlayer player.steamId)))
           (ne player.positionY (get "positionY" (lookupPlayer player.steamId))))}}
            say"ok tp"
{{else}}
 say "not ok tp "
{{/if}}```

I got this but its everytime returning not ok ^^
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
When a command fires, csmm receives the player location but till the end of the command, the position is not updated. Maybe after the wait you can loop thru each online player and compare the names, and after a match, compare the position from the command and thw loop
Avatar for 8649f6d5c34ee55db9120aee200547f7aebd05c7efc82bfc4fc964a56e001205
User 8649f6
Was thinking about something like that
Avatar for 8649f6d5c34ee55db9120aee200547f7aebd05c7efc82bfc4fc964a56e001205
User 8649f6
Hey all i'm new here and i would like your help ! I am trying to creat a command to teleport in a region, BUT my player can not move during 10 seconds before tp otherwise the tp cmd got canceled, Should i use hooks ? Anyone can tell me where to look ? Thanks
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
Using search string "Better hurry! Its bloodmoon [FF0000]TONIGHT"
Avatar for ea35ab2c248c3dc93bd2ec9f70e54b9dbf0ff87fdad3812e022ca2c9165fc537
User ea35ab
Hello, so this command works on 1.0? Thank you
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Go thru each item looking for whatever you wanted to look for
Avatar for ec6f02314aaf02d42b2a18d1244cf454b73be0ba0e0de78aa5d9578bdad4ce95
User ec6f02
is there a page somewhere with custom hooks people have made I can look at?
Avatar for ec6f02314aaf02d42b2a18d1244cf454b73be0ba0e0de78aa5d9578bdad4ce95
User ec6f02
hey sorry what do I need to check for "player.inventory.bag"?
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
{{#if (gte custom.SecondLevel (sum custom.FirstLevel 5))}} sendDiscord(xxxxx,"Possible Cheater. SteamID: {{custom.steamId}} jumped SteamID: {{custom.steamId}}. From level {{custom.FirstLevel}} to level {{custom.SecondLevel}}") {{/if}}
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Yes that helped a lot thanks
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Search for jumped up in this discord
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
2024-08-10T01:17:18 20165.172 INF [CSMM_Patrons] WARNING: ExplosiveKeyz (Steam_76561198041136902) jumped up more than one level (30 -> 40).
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
I'm capturing the line, but I'm not sure where to look to learn, how to make it send discord, what that line says.
Like:
Player (name) from that line is that I want it to output.
Not finding a lot in the CSMM app info, so I can learn how to do this myself.
Or if I had a good example, I could look at it and understand it better.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
#each with player.inventory.bag is what you want
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Make a custom variable with a regex that matches the whole line
Monday, August 12, 2024
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Is it possible to have it send the log line instead
Avatar for ec6f02314aaf02d42b2a18d1244cf454b73be0ba0e0de78aa5d9578bdad4ce95
User ec6f02
Check inventory if they do have a certain item on them and give a different item, just need it to be able to check the invtery when they make a request in chat
Sunday, August 11, 2024
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
What is the overall outcome desired? If you are just asking to verify something isn't in their inventory (person) before giving them another, what if they drop it put in box, then run command again? Are you looking for a time limit in-between attempt? Or once given, didn't give again? More specific details on what you wish to have happen would help narrow down what can vs can't be accomplished
Avatar for ec6f02314aaf02d42b2a18d1244cf454b73be0ba0e0de78aa5d9578bdad4ce95
User ec6f02
could I have some help with my request please 1271814546880724993
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
User a827fb
ah, ok. My quest for a server tool with decent support continues. Nevertheless, you can expect us to sub to Takaro. We love CSMM! (and the support!)
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
7d2d and Rust is what's supported now, we will totally add support for more games in the future (Minecraft is most likely next) ๐Ÿ˜„
Though it's not server hosting, you will still need to run the gameserver somewhere and Takaro will connect to it to do management. Similar to CSMM ;)
Saturday, August 10, 2024
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
User a827fb
Being helpful is always appreciated!
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
Ahh, I didn't pay attention to the fact you were replying, I'll go back to my hole... ๐Ÿ˜œ
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
User a827fb
Yes, I was replying to Cata's comment about Takaro. I had a look the other day and saw the current plan is for 7 Days and Rust, thus my request to keep it open to other games as well. I'll edit my comment to make that clearer!
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
@User 12497205 there are other options for an actual hosting application thou, you can ask in either #offtopic or join the 7D Admin Coalition #read-this-first to get other suggestions.
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
TCAdmin is for hosting the games, CSMM/CPM are used for controlling in game aspects.... However there is a "little project" https://discord.com/channels/336821518250147850/336822204887203840/1132728654221291610 that will expand into other games.... But it's still being developed.
Avatar for a827fb800b970377940da84d66abc498ff76568b3c64de46b25aee9fc715a430
User a827fb
Please have Takaro support other games like Minecraft & forge modpacks, space engineers, ark, etc.! We're currently paying for TCAdmin and the customer support is garbage ๐Ÿ˜ฆ Would much rather give you our money!
Avatar for ec6f02314aaf02d42b2a18d1244cf454b73be0ba0e0de78aa5d9578bdad4ce95
User ec6f02
I currently have a custom command that when they type it in the server it give an item, however I dont want them to abuse it
Avatar for ec6f02314aaf02d42b2a18d1244cf454b73be0ba0e0de78aa5d9578bdad4ce95
User ec6f02
hi all, I have a request, what command can I use to get csmm to check a players inventory before giving them an item please, I cant seem to get csmm to check inventory as it comes up with API error in the server
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It's not really a secret, it's just not ready yet :P
Friday, August 9, 2024
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
Eventually may replace CSMM I think? Kind of like CSMM, but is a bit more fluid in how things work so can manage other game servers as well. I'm not sure how public it is currently, and I may have screwed up and spoken out of turn. >.>
I really want to get into playing with it, but I have SO many other things that are more important that I keep shuffling around.
Avatar for 2eb44ad6a50c42f0312f635d455b93d5ef620a7d86692a3aa6bdbf31d872a724
User 2eb44a
Whats takaro