keirod / rpgserv Goto Github PK
View Code? Open in Web Editor NEWRPGServ for Anope.
RPGServ for Anope.
Discussing the issue with Azander in IRC produced the following conversation:
[04:36:28PM] <~Azander> if you reoll the dice in the hors between midnight and 4 am (server time) it rolls REALLY really low rolls
[04:36:35PM] <Keiro> Oh dear.
[04:36:48PM] <Keiro> That's odd, though... how'd you find that one?
[04:37:04PM] <~Azander> since my server is UTC, but my gamers are EST they notid it during their evening games
[04:37:20PM] <~Azander> but while testing I could not reproduce it (during early afternoon)
[04:37:20PM] <Keiro> Ah. That'd do it.
[04:37:44PM] <~Azander> so I sat in on some games, some during the day, others in the evening, Then I saw the pattern.
[04:38:10PM] <Keiro> Ah... so you had to be there to notice it at all.
[04:38:10PM] <~Azander> The solution is to not use time_t as your random seed
[04:38:17PM] <~Azander> right
Solution is to do:
[04:44:59PM] <~Azander> just add" srand(time(NULL)); after decklaring your variables in each command
[04:45:12PM] <Keiro> Got it.
[04:45:17PM] * ~Azander went to look it up to get the code for you.. then saw I had that commented out
So, for example, if you wanted RPGServ
to act out something for you in say, #tavern
, you could do so via /msg rpgserv act #tavern welcomes a guard into the tavern with a smile
and you'll get an output in #tavern
of RPGServ
doing its thing, similar to the below:
[04:28:16AM] <RPGServ> welcomes a guard into the tavern with a smile
However, the above only works if one uses /msg rpgserv say #channel somethingsomething or other
instead of act without causing Services to crash.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.