I can't skype right now. Have you tried the "Save link as..." and the firefox options?
If it still opens it with notepad, select all the text and paste it here: pastebin.com Click submit and send me the link to it.
Alright I posted it. And about the skype idea, all I need to do is share my screen with you.
No worries, can't believe I didn't think to check whether I posted the correct script. I was messing around with it for a while and I kept pasting stuff back and forth between notepad & ingame.
Hey, it happens, friend. You've been busy with a lot of stuff (don't think I haven't noticed you posting like a maniac on the Voxel Forums), and you're still doing your part to get the VoxelModPack ready for 1.4.6, as well as getting other projects that the more... passive-aggressive... members have been demanding, finished.
I'm just grateful that you took the time to make a timer script for me, and took the time to help me figure out how to use it. I'm absolutely thrilled to be able to roam underground, and look at my game clock to know if it's safe to go outside yet... or if I should cower underground. And... given that my favorite server host decided to make "Hard Survival" "OH MY GOD WHY!?!?!?" difficult, by breaking out the "Giant Roaming Zombies" mobs, if it's nighttime, I do ~not~ want to roam the wilderness. Period.
I never thought I'd say this but thank God for Internet Explorer. I managed to get the files I needed without it opening up notepad.
Just make sure that ~if~ Internet Explorer saved your litemod files as .zip, that you rename them to .litemod (except, of course, for the liteloader.zip file, as that stays a zip file, so you can extract it and add it to your minecraft.jar).
I haven't a clue ~why~ you were somehow getting .txt files from .litemod downloads... but... that's just weird.
It doesn't :/ INDEXOF is used to get the arraynumber containing a given by user string : I want to know what's the arraynumber containing the string "lol", I do :
INDEXOF(&array,&output,"lol");
So I don't see how to output the containing of a given value of the array :/
Hm, you're right
I don't understand then, why is output a string variable if it only ever contains a number =/
Your original code works though, Log(%&list[%#num%]%)
As does Set(&out,%&list[%#num%]%)
Set(&list[1],one)
Set(&list[2],two)
Set(&list[3],three)
ForEach(&list,&var,#num)
Log(%#num%: %&var%)
Next
#num = 2
Log(getting index %#num%)
Log(%&list[%#num%]%)
Log("Var is %&list[%#num%]%");
outputs
0:
1: one
2: two
3: three
getting index 2
two
Var is two
Well, I spent the last 4 hours searching through this thread trying to find an answer or explanation on how to setup something correctly but cannot for the life of me find anything on it.
The server I'm on recently had a reset to 2.0, so when new players join it says "Welcome Player to Server v2.0!" If the player is completely new to the server they're name is shown in gray. If they were previously on the server they will be any other color depending on their rank. We also have mcmmo, which has a party chat feature.
What I am looking for is a script for when new players join so that the following happens:
If party chats on:
-Do /p to toggle party chat off
-Check if the player was already on server or not(gray name or not)
-If completely new, display "Welcome PLAYER to Server v2.0!"
-if new to the 2.0 server display "Welcome back PLAYER to Server v2.0!"
If party chats off:
-Check if the player was already on server or not(gray name or not)
-If completely new, display "Welcome PLAYER to Server v2.0!"
-if new to the 2.0 server display "Welcome back PLAYER to Server v2.0!"
Also I was wanting to change the color of "Player left the game" to Red, and "Player joined the game" to Green, if possible.
And the last thing for now is to have the party chat changed from green to aqua.
If you could post explaining how this was done along with the coding for it that'd be lovely. I learn better by seeing the final product and the steps as reference.
IFMATCHES(%CHAT%,"Welcome (§.+?)§. to server v2\.0!",&playerncolor)
IF(@partychat)
Echo(/p)
UnSet(@partychat)
ENDIF
IFMATCHES(%&playerncolor%,^§[^7](.+)$,&player)
Modify(Welcome back %&player% to server v2.0!)
ENDIF
ENDIF
IFMATCHES(%CHAT%,"^§e.+? joined the game.$",)
Modify(&a%CHATCLEAN%)
ENDIF
IFMATCHES(%CHAT%,"^§e.+? left the game.$")
Modify(&c%CHATCLEAN%)
ENDIF
I hope you're already aware of the basic premise of how scripts work?
script tags... $${ }$$
the way commands are built up... Command(param1,param2)
and so on
I don't have enough info on Party Chat to identify whether it is on or off, nor to change it's color
as a placeholder, i used a global flag @partychat which another script would have to set and unset correctly
If you learn from examples though, here are some of my scripts..
ChatFilter for near vanilla
Set(&type,unknown)
IFMATCHES(%CHATCLEAN%,"^<.+?> (.+)$")
Set(&type,chatmessage)
MATCH(%CHAT%,"<§(.)(.+?)>...(.+)",{&color,&name,&msg})
ENDIF
IFMATCHES(%CHAT%,"^§7(.+?) whispers (.+)$")
Set(&type,chatwhisper)
MATCH(%CHAT%,"^§7(.+?) whispers (.+)$",{&whispername,&whispermsg})
ENDIF
IFMATCHES(%CHAT%,^§e)
IFMATCHES(%CHAT%,"^§e(.+?) joined the game\.$",&lastjoinplayer,1)
Set(&type,playerjoin)
ELSE
IFMATCHES(%CHAT%,"^§e(.+?) left the game\.$",&lastleaveplayer,1)
Set(&type,playerleave)
ELSE
Set(&type,playerdeath)
ENDIF
ENDIF
ENDIF
Set(@&lastmsgtype,%&type%)
Set(@&lastchatcoloredname,&%&color%%&name%)
Set(@&lastchatcolor,%&color%)
Set(@&lastchatname,%&name%)
Set(@&lastchatmsg,%&msg%)
Set(@&lastwhispername,%&whispername%)
Set(@&lastwhispermsg,%&whispermsg%)
Set(@&lastjoin,%&lastjoinplayer%)
Set(@&lastleave,%&lastleaveplayer%)
A prototype assault script i stopped working on when it was just about ready
//assault-onchat.txt
IFMATCHES(%CHAT%,"(.+?) was (slain|shot|killed) by (.+)",&death,1)
Wait(7)
IFMATCHES(%@&attackers%%@&defenders%,%&death%)
Set(@&dead,"%@&dead%%&death%,")
LogTo(top,%&death% died)
ELSE
LogTo(top,unknown person)
ENDIF
ENDIF
IFMATCHES(%CHAT%,"(.+?) (was pricked to death|hit the ground too hard|died)",&death,1)
Wait(7)
IFMATCHES(%@&attackers%%@&defenders%,%&death%)
LogTo(top,%&death% died)
Set(@&dead,"%@&dead%%&death%,")
ELSE
LogTo(top,unknown person)
ENDIF
ENDIF
IFMATCHES(%CHAT%,>>respawn)
IFMATCHES(%@&dead%,%@&lastmsgname%)
LogTo(top,&7you are already in queue to respawn)
ELSE
Set(@&dead,"%@&dead%%@&lastmsgname%,")
ENDIF
ENDIF
Huh..., i guess i didn't make files for any simple ones =/
Looking through files, i remembered
there is currently no way to see color codes without opening opening a file in notepad, (or using many lines of code dedicated to finding and replacing them)
Could that be implemented somehow; it's fine if they're displayed as a different rare to unused character
it's difficult to make chat related scripts since there's always color codes and you never know exactly where they are..., or if for some reason the plugin decided to use two that cancel out with no visible effect
Looking through files, i remembered
there is currently no way to see color codes without opening opening a file in notepad, (or using many lines of code dedicated to finding and replacing them)
Could that be implemented somehow; it's fine if they're displayed as a different rare to unused character
it's difficult to make chat related scripts since there's always color codes and you never know exactly where they are..., or if for some reason the plugin decided to use two that cancel out with no visible effect
You could temporarily put something in onChat that just replaces "§" with "#" then logs it for you, wouldn't be difficult to make at all.
Lol, thanks. Apparently when you reach 1,000 posts you get curse premium as well, who'da thunk it, was a nice christmas present anyway
But seriously, I'm immensely greatful for everyone that uses the mod and all the great feedback I've received over the past 18 months working on this thing. Also especially grateful to all the guys who help people out here with questions and problems and such.
Either someone bought it for you, or you bought it for yourself, because I don't have premium xD
Thanks for this mod, it is seriously the best SMP mod you can get! I only know how to use the basic stuff on it, like macros, buttons, and waits, but it is still awesome.
Rollback Post to RevisionRollBack
I began minecraft ~July 7 2011 1.7.3 Beta
My username used to be Creative_Dalek but is now Dalek since 2/4/2015
I have found a bug. I created an auto-repair macro which checks the durability of an item. It works for every item besides fishing poles. For a reason it can't read fishing poles' durability. (I have used "If DURABILITY < 'something' etc etc" )
Fishing rods are treated really bizarrely by the game, instead of having one item where the durability changes (like with weapons, tools, etc), each time you use the fishing rod you get a new fishing rod with less durability... this means that the onItemDurabilityChange doesn't work (since it's a new item and the durability doesn't actually change) but you should still be able to read the durability itself via the DURABILITY variable.
Either someone bought it for you, or you bought it for yourself, because I don't have premium xD
It's possible someone bought it for me as a present but it seems odd that it was anonymous, I certainly didn't buy it. I did discover by searching that Curse give premium to users who have mods/plugins that receive a large number of cumulative downloads and also provide good support to their users by being active on the forums, so it's possibly that.
Thanks for this mod, it is seriously the best SMP mod you can get! I only know how to use the basic stuff on it, like macros, buttons, and waits, but it is still awesome.
You're welcome, it's so worthwhile developing this mod for all the positive feedback I get, plus when I factor in the various modpacks that distribute it like Voxel ModPack and FTB then I estimate that there's a million plus downloads total, which is staggering taken alone. Unfortunately this is Minecraft and a million dowloads is pretty low by some standards, and I wish I knew how to improve the popularity or bring the mod to a wider audience. That's a target for 2013 certainly though
I would like to request a copy of the source code of the mod
Thanks in advance, I am a big fan of this mod.
Sorry I need to remove that from the readme, that statement is quite old and I no longer supply the source on request, mainly because it represents so many hours of work at this point. Sorry about that.
I ran into a strange issue with the chatfilter module. When another player literally says something like %CHAT% or %CHATCLEAN% in modified chat, I think the filter actually tries to put the contents of the global variable they said. So, for example, I used chat filter to color my favorite server's local channel to yellow. Someone says in local "%CHATCLEAN%" or "%CHAT%" literally. The filter actually tries to replace "%CHATCLEAN%" with what CHATCLEAN was, but since CHATCLEAN contains "%CHATCLEAN%", it tries to replace THAT, creating sort of an infinite loop that, for some people, spammed their chat like crazy, or, in my case, crashed my client. I know this is confusing, and I hope it made any sense, just something I would like to report.
Oh, and while I'm posting here, any reason ITEMIDDMG doesn't show the damage values of tools?
Strange, I tried and it failed :?: Thank you Mart.
Little other question that I got reading the forum : what does MODIFY (); do ?
It's a chatfilter command that changes the chat before it appears on screen
similarily, FILTER() can make it not appear at all (won't trigger the text box's background either, and PASS let's the message through (default behaviour) and stops processing for that message
Thank you very much for the quick response. I noticed in the code however that you only have the message for old players returning. Could you include the new players as well? I'd imagine it may be a bit more coding to do to get it right with the colors but it's pretty nice once completed. Also, for detecting party chat, anytime you do /p it toggles party chat. Here's some pictures to help ya with that.
And yeah, I'm familiar with the scripting, just not the chat filter as I could not find a list anywhere of what all you could use with it, other than the links to the regex syntax list. It would be heavenly if someone made a proper readme that is updated. No hard feelings Mumfrey.
Thank you very much for the quick response. I noticed in the code however that you only have the message for old players returning. Could you include the new players as well? I'd imagine it may be a bit more coding to do to get it right with the colors but it's pretty nice once completed. Also, for detecting party chat, anytime you do /p it toggles party chat. Here's some pictures to help ya with that.
Is the /p feature already existent? Like when you type /p? If not then you will have to do some deep coding things, like rewiring how chat works by overriding chat with a prompt.
The Meaning of Life, the Universe, and Everything.
Join Date:
1/29/2012
Posts:
90
Minecraft:
rookie1024
Member Details
Is there a way you can intercept incoming or outgoing chat strings? That would be helpful for implementing custom commands that lead to macros. Also, is there any way to add color codes?
Is there a way you can intercept incoming or outgoing chat strings? That would be helpful for implementing custom commands that lead to macros. Also, is there any way to add color codes?
Incoming yes, outgoing no
for incoming chat you need the chatfilter module
to use color codes in log messages or labels or such, use the & sign
for example, &agreen text is now &lbold &afor no reason,&r have fun!
Thank you very much for the quick response. I noticed in the code however that you only have the message for old players returning. Could you include the new players as well? I'd imagine it may be a bit more coding to do to get it right with the colors but it's pretty nice once completed. Also, for detecting party chat, anytime you do /p it toggles party chat. Here's some pictures to help ya with that.
And yeah, I'm familiar with the scripting, just not the chat filter as I could not find a list anywhere of what all you could use with it, other than the links to the regex syntax list. It would be heavenly if someone made a proper readme that is updated. No hard feelings Mumfrey.
I only have the message for old ones because that's the only one that's different
if there's nothing to change about the message, you don't need a command for that
basically, if it's a new player you see the message as the server sends it, which is what you intended, no?
however, if he's not new then MODIFY adds "back" to the message
Chatfilter doesn't have any extra commands other than what i just listed previously; they're very few but super useful
a readme is on the way, until then his scripting tutorial video holds the basics, and you can get the rest from changelogs, other people's scripts, or asking
I'm just grateful that you took the time to make a timer script for me, and took the time to help me figure out how to use it. I'm absolutely thrilled to be able to roam underground, and look at my game clock to know if it's safe to go outside yet... or if I should cower underground. And... given that my favorite server host decided to make "Hard Survival" "OH MY GOD WHY!?!?!?" difficult, by breaking out the "Giant Roaming Zombies" mobs, if it's nighttime, I do ~not~ want to roam the wilderness. Period.
Just make sure that ~if~ Internet Explorer saved your litemod files as .zip, that you rename them to .litemod (except, of course, for the liteloader.zip file, as that stays a zip file, so you can extract it and add it to your minecraft.jar).
I haven't a clue ~why~ you were somehow getting .txt files from .litemod downloads... but... that's just weird.
Hm, you're right
I don't understand then, why is output a string variable if it only ever contains a number =/
Your original code works though, Log(%&list[%#num%]%)
As does Set(&out,%&list[%#num%]%)
Set(&list[1],one)
Set(&list[2],two)
Set(&list[3],three)
ForEach(&list,&var,#num)
Log(%#num%: %&var%)
Next
#num = 2
Log(getting index %#num%)
Log(%&list[%#num%]%)
Log("Var is %&list[%#num%]%");
outputs
0:
1: one
2: two
3: three
getting index 2
two
Var is two
'Cause tomorrow spring is here
The server I'm on recently had a reset to 2.0, so when new players join it says "Welcome Player to Server v2.0!" If the player is completely new to the server they're name is shown in gray. If they were previously on the server they will be any other color depending on their rank. We also have mcmmo, which has a party chat feature.
What I am looking for is a script for when new players join so that the following happens:
If party chats on:
-Do /p to toggle party chat off
-Check if the player was already on server or not(gray name or not)
-If completely new, display "Welcome PLAYER to Server v2.0!"
-if new to the 2.0 server display "Welcome back PLAYER to Server v2.0!"
If party chats off:
-Check if the player was already on server or not(gray name or not)
-If completely new, display "Welcome PLAYER to Server v2.0!"
-if new to the 2.0 server display "Welcome back PLAYER to Server v2.0!"
Also I was wanting to change the color of "Player left the game" to Red, and "Player joined the game" to Green, if possible.
And the last thing for now is to have the party chat changed from green to aqua.
If you could post explaining how this was done along with the coding for it that'd be lovely. I learn better by seeing the final product and the steps as reference.
Chat filter script (you'll need the module)
I hope you're already aware of the basic premise of how scripts work?
script tags... $${ }$$
the way commands are built up... Command(param1,param2)
and so on
I don't have enough info on Party Chat to identify whether it is on or off, nor to change it's color
as a placeholder, i used a global flag @partychat which another script would have to set and unset correctly
If you learn from examples though, here are some of my scripts..
ChatFilter for near vanilla
A prototype assault script i stopped working on when it was just about ready
Assault-end.txt
Huh..., i guess i didn't make files for any simple ones =/
Looking through files, i remembered
there is currently no way to see color codes without opening opening a file in notepad, (or using many lines of code dedicated to finding and replacing them)
Could that be implemented somehow; it's fine if they're displayed as a different rare to unused character
it's difficult to make chat related scripts since there's always color codes and you never know exactly where they are..., or if for some reason the plugin decided to use two that cancel out with no visible effect
'Cause tomorrow spring is here
You could temporarily put something in onChat that just replaces "§" with "#" then logs it for you, wouldn't be difficult to make at all.
...there's REPLACE?
damn, that's nice, thank you
'Cause tomorrow spring is here
Either someone bought it for you, or you bought it for yourself, because I don't have premium xD
Thanks for this mod, it is seriously the best SMP mod you can get! I only know how to use the basic stuff on it, like macros, buttons, and waits, but it is still awesome.
I began minecraft ~July 7 2011 1.7.3 Beta
My username used to be Creative_Dalek but is now Dalek since 2/4/2015
Fishing rods are treated really bizarrely by the game, instead of having one item where the durability changes (like with weapons, tools, etc), each time you use the fishing rod you get a new fishing rod with less durability... this means that the onItemDurabilityChange doesn't work (since it's a new item and the durability doesn't actually change) but you should still be able to read the durability itself via the DURABILITY variable.
It's possible someone bought it for me as a present but it seems odd that it was anonymous, I certainly didn't buy it. I did discover by searching that Curse give premium to users who have mods/plugins that receive a large number of cumulative downloads and also provide good support to their users by being active on the forums, so it's possibly that.
You're welcome, it's so worthwhile developing this mod for all the positive feedback I get, plus when I factor in the various modpacks that distribute it like Voxel ModPack and FTB then I estimate that there's a million plus downloads total, which is staggering taken alone. Unfortunately this is Minecraft and a million dowloads is pretty low by some standards, and I wish I knew how to improve the popularity or bring the mod to a wider audience. That's a target for 2013 certainly though
Thanks in advance, I am a big fan of this mod.
Sorry I need to remove that from the readme, that statement is quite old and I no longer supply the source on request, mainly because it represents so many hours of work at this point. Sorry about that.
You can of course still decompile it though.
Oh, and while I'm posting here, any reason ITEMIDDMG doesn't show the damage values of tools?
It's a chatfilter command that changes the chat before it appears on screen
similarily, FILTER() can make it not appear at all (won't trigger the text box's background either, and PASS let's the message through (default behaviour) and stops processing for that message
'Cause tomorrow spring is here
Thank you very much for the quick response. I noticed in the code however that you only have the message for old players returning. Could you include the new players as well? I'd imagine it may be a bit more coding to do to get it right with the colors but it's pretty nice once completed. Also, for detecting party chat, anytime you do /p it toggles party chat. Here's some pictures to help ya with that.
And yeah, I'm familiar with the scripting, just not the chat filter as I could not find a list anywhere of what all you could use with it, other than the links to the regex syntax list. It would be heavenly if someone made a proper readme that is updated. No hard feelings Mumfrey.
Is the /p feature already existent? Like when you type /p? If not then you will have to do some deep coding things, like rewiring how chat works by overriding chat with a prompt.
Incoming yes, outgoing no
for incoming chat you need the chatfilter module
to use color codes in log messages or labels or such, use the & sign
for example, &agreen text is now &lbold &afor no reason,&r have fun!
I only have the message for old ones because that's the only one that's different
if there's nothing to change about the message, you don't need a command for that
basically, if it's a new player you see the message as the server sends it, which is what you intended, no?
however, if he's not new then MODIFY adds "back" to the message
Chatfilter doesn't have any extra commands other than what i just listed previously; they're very few but super useful
Add into the chatfilter
IFMATCHES(%CHAT%,"^Party chat only (§aon|§coff)"$,&partychat)
IF(%&partychat% = "§aon")
Set(@partychat)
ELSE
UnSet(@partychat)
ENDIF
ENDIF
a readme is on the way, until then his scripting tutorial video holds the basics, and you can get the rest from changelogs, other people's scripts, or asking
'Cause tomorrow spring is here
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
Anyone got a link, or something that leads to this?