Iyouboushi

Iyouboushi

Joined
Jan 19, 2004
Website

Threads

Iyouboushi   -  Feb 16, 2017

Hello everyone. Everyone who knows me knows that I'm big into programming various mIRC RPG bots. My current, and largest, Battle Arena (https://github.com/Iyouboushi/mIRC-BattleArena) is still going strong but I feel like it's reaching the end of its life in the way it is currently coded. Briefly I'll just say that everything is pretty static. There are pre-made weapons/items/equipment and while I could continue to add more manually I'm starting to think about the future.

I'm thinking of trying to make a Diablo style RPG bot where weapons and armor are randomly generated and dropped by the enemies. My problem is trying to figure out a good way of doing this. I feel like I could have templates and have the bot randomly pick a template and fill in various values based on the level of the player or the level of the battle but I feel like an armor/weapons database or player's character sheets would become really clogged over time. Not to mention there'd be a chance that the bot would randomly pick the same name and overwrite something.

The point of this thread is just to ask other mIRC scripters out there what kind of approach they would take to program something like this in mIRC. Any suggestions/ideas?

Iyouboushi   -  Sep 22, 2014

[mIRC scripting question] Is there a way to copy an INI section from one ini file to another ini file and keep it the same except for the name? For example:

in default.ini

[noname]
setting1=blahblahblah
setting2=blahblahblah

I want to copy [noname] from default.ini to someother.ini but change the [noname] to something else, but keep everything else inside it the same.

I know I could have the script go through and set a variable for each setting and then write the section using those but the sections I plan on copying are going to be much longer than just two or three lines. Plus if I change or add something in those sections I'd have to go edit the code again, whereas if there's a way to just copy the section it will just be that one non-changing code.

Hope that makes sense.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.