• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Contributions (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

dice rolling

Post a bug fix, a new feature, a theme ...

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby elpaso » Fri Feb 10, 2006 9:41 am

Hello, my son needed this for role game playing...

Following the link below, you can find a diff file against version 0.4 and a Dice class file with all the rolling logic (very simple indeed).

I hope this command can be integrated in the sources.

Regards, and many thanks to the developers.

This is a wonderful and very promising chat program.

http://dednetbattle.servegame.com/dice_rolling.tgz
elpaso
New member
 
Posts: 3
Joined: Fri Feb 10, 2006 9:08 am
Top

Postby phpfreechat » Fri Feb 10, 2006 9:53 am

Very nice !

I'm refactoring pfc for 1.0 release and I plan to separate each commands into a specific class.
Then at initialization it will be possible to plugin a list of commands (Handler) into the HandlerProcessor.
Your Dice class will then be really easy to integrate.
Moreover it will also be possible to "allow" "disallow" a list of commands for each users.
For your case, the gamemaster will be able to roll the dice but not other people :-)

regards,
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby elpaso » Fri Feb 10, 2006 11:08 am

kerphi wrote:Very nice !

I'm refactoring pfc for 1.0 release and I plan to separate each commands into a specific class.
Then at initialization it will be possible to plugin a list of commands (Handler) into the HandlerProcessor.
regards,

Great, I think this new architecture will ease contributions.

All the best.
elpaso
New member
 
Posts: 3
Joined: Fri Feb 10, 2006 9:08 am
Top

Postby phpfreechat » Thu Feb 23, 2006 4:51 pm

Commands refactoring is done. (for 0.8 release)
I integrated your contribution into demo27 to illustrate how to create a customized command.
It works like a charme. :)

regards,
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby cedzero » Thu Oct 22, 2009 3:26 pm

I put the script on my website with jpfchat, it's working fine ! We play a game who's named 421. very funny :p

Does any1 have animated dice that could roll before stopping on the final number ?
Could be more exciting.
cedzero
New member
 
Posts: 4
Joined: Fri Oct 09, 2009 10:24 am
Top


Post a reply
5 posts • Page 1 of 1

Return to Contributions (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub