Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-18-2005, 09:53 AM   #1
Member (2 bit)
 
Join Date: Mar 2005
Posts: 3
PHP RPG Issue

Hi, I'm building a MMORPG using php & mysql.

I've encountered a problem. I want to implement a battle system with multiple rounds. Something like:

Round 1.
Player tries to hit monster... HIT:10 dmg
Monster tries to hit player... MISS

Actions: Next Round | Try To Run | Cast Spell | Use Item

BUT, I don't want the player to hit the browser's "back button" to escape the fight... If he is pushing the back button, I want his browser to load the same page, or to show something like "You can't use the back button when fighting"

Any ideeas please...
radiopunk is offline   Reply With Quote
Old 03-20-2005, 07:57 AM   #2
Member (2 bit)
 
Join Date: Mar 2005
Posts: 3
Anyone? Please?
radiopunk is offline   Reply With Quote
Old 03-24-2005, 08:54 AM   #3
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,035
Send a message via AIM to catacon Send a message via Yahoo to catacon
I don't know how or even if this would work, but you might try setting a session that stores the battle data. That might not work, or maybe you already tried it.
__________________
Main Computer: Intel Core i5 2500K | AsRock Extreme3 Z68 | Corsair Vengeance 2 x 4GB DDR3 1600 | EVGA GTX460 768MB | Western Digital Caviar 750GB 7200RPM SATAII | Mushkin 60GB SSD w/ SRT enabled | Asus 20X DVD Burner | Antec 550W Modular | Cooler Master HAF 912 w/ 4 fans | NXZT Sentry Mesh fan controller | W7 | 2 x 23" LG IPS Monitors

Laptop: Asus EEE 1000HE | 2GB RAM | Ubuntu

Laptop: Lenovo Thinkpad T60p | 4GB RAM | W7
catacon is offline   Reply With Quote
Old 03-26-2005, 04:06 AM   #4
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Rounds are stored in a database right? Give each round a unique ID, and check whether the round has been played before...
aym is offline   Reply With Quote
Old 03-26-2005, 11:48 AM   #5
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,035
Send a message via AIM to catacon Send a message via Yahoo to catacon
Problem with doing that, aym, is your dbs could get very big if every round is stored.
catacon is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:19 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2