DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 26, 2016, 11:58:51 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Online Duel - Battlegrounds  (Read 10279 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« on: December 02, 2005, 02:06:55 AM »

You want PvP? You want to duel opponents which are online? You want to fight for glory and fame?

Then here is the place for you to go!

Please note, that this module still not even deserves beta status and is not working to my full satisfication at the moment.

Currently you will be able to fight against another player in a turnbased battle where either you or the other player can attack each other. Simple, quick and dirty weapon/strength against weapon/strength combat.

Things, which will come in the future:
  • Support for buffs
  • Other ideas are welcome
Download can be found here!

Maybe some can find the trick to make the buffs work... I'd really appreciate any help on this!
« Last Edit: December 02, 2005, 02:07:31 AM by XChrisX » Logged

Running for more than three years now:
Mr Zone
Captain of the Guard
***
Offline Offline

Posts: 175


what am I?


View Profile WWW
« Reply #1 on: December 02, 2005, 02:09:33 AM »

Cool... I will take a look at code right now.
Logged



" Im Sane And the rest of the world is Insane, and trying to steal my magic Beans!!!"
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #2 on: December 02, 2005, 02:19:00 AM »

Cool... I will take a look at code right now.
Please do so... And let me know, if this really works... (It's almost half a year, that I last worked on this...)
Logged

Running for more than three years now:
Mr Zone
Captain of the Guard
***
Offline Offline

Posts: 175


what am I?


View Profile WWW
« Reply #3 on: December 02, 2005, 02:41:59 AM »

after signing up for a battle for both players, I seem to get stuck with this message ...

"You have to wait for your opponent to make their move."

I tried it a lot of different ways but I am still keep getting that message, i will take a look at the code some more. (but for now... i must sleep, i have to be at work in about 5 hours)
Logged



" Im Sane And the rest of the world is Insane, and trying to steal my magic Beans!!!"
Mindbender
Member
Captain of the Guard
***
Offline Offline

Posts: 190

I don't mind, so what.


View Profile
« Reply #4 on: December 02, 2005, 03:10:27 AM »

Hi,

* Mindbender is very delighted to test such a great mod and waves to XChrisX Grin

unfortunately... same for me, both players have a "You have to wait for your opponent to make their move."

My testserver is running on 1.0.5

Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #5 on: December 02, 2005, 03:25:09 AM »

As I said, this module is far from functional... Wink

Try this:

After line 296 add
Code:
if (e_rand(0,1)) set_module_pref("myturn", true); else set_module_pref("myturn", true, "duel", $duellant);
Logged

Running for more than three years now:
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #6 on: December 02, 2005, 03:27:06 AM »

Just as a side-note: At the moment ONLY superusers will be able to use this module...

If you are in a really suicidal mood, comment-out line 33 to let all users have fun... Tongue
Logged

Running for more than three years now:
Mindbender
Member
Captain of the Guard
***
Offline Offline

Posts: 190

I don't mind, so what.


View Profile
« Reply #7 on: December 02, 2005, 04:33:04 AM »

thnx, added the line, but I still can't go further then the waiting statement.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #8 on: December 02, 2005, 04:35:03 AM »

Yes, you'd now have to uninstall the module and then install it again... OR simply set the myturn-pref in the user editor for one fighter to true. Adding the line should correct this for the future... But not for existing duels...
Logged

Running for more than three years now:
Mindbender
Member
Captain of the Guard
***
Offline Offline

Posts: 190

I don't mind, so what.


View Profile
« Reply #9 on: December 02, 2005, 08:00:08 AM »

i did a re-install initially, but i did not set the my turn option.

now that I have set the my turn for one player to yes and checked that it is set to no for the other player i got a fight nav to klick...
unfortunately...now my screen goes blank after clicking...
Logged
Mr Zone
Captain of the Guard
***
Offline Offline

Posts: 175


what am I?


View Profile WWW
« Reply #10 on: December 02, 2005, 10:33:50 AM »

i did a re-install initially, but i did not set the my turn option.
You have to do an uninstall and then install it again.

I get a little futher, but on line 331 of duel.php it has require_once("lib/pvpbattle.php"); which I think should be require_once("lib/duellib.php");
Logged



" Im Sane And the rest of the world is Insane, and trying to steal my magic Beans!!!"
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #11 on: December 02, 2005, 10:50:48 AM »

Yes, I think so too...

Seems I did some renaming...  Embarrassed

I've updated the download...
Logged

Running for more than three years now:
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #12 on: December 02, 2005, 04:00:10 PM »

Figured I'd mention since your tweaking:
like 234: output("Ye Olde Mail will inform 'tis warrior. Ya canst onyl wait.`6\", he tells you.");

Line 81:
fiecest

only is mispelled. Yeah I know I know! But figured your going to fix it at some point anyway. Might as well tell ya now.
« Last Edit: December 02, 2005, 04:02:12 PM by Arune » Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #13 on: December 03, 2005, 11:02:36 AM »

Thanks, I corrected this.

If you find anything else, please let me know Smiley
Logged

Running for more than three years now:
Mr Zone
Captain of the Guard
***
Offline Offline

Posts: 175


what am I?


View Profile WWW
« Reply #14 on: December 03, 2005, 11:57:21 AM »

when i start a fight and look at the user module perfs, it only sets the array for the person who starts the fight.

This is form the person who started the fight...
Code:
badguy-array    array(1) {
'' = ''
}
goodguy-array    array(9) {
'creaturename' = 'Farmboy name'
'creaturelevel' = '4'
'creatureweapon' = ''
'creatureattack' = '4'
'creaturedefense' = '4'
'creaturehealth' = '40'
'creaturegold' = '0'
'type' = 'duel'
'diddamage' = '0'
}


This is form the person who joined the fight...
Code:
badguy-array  array(9) {
'creaturename' = 'Farmboy name'
'creaturelevel' = '4'
'creatureweapon' = ''
'creatureattack' = '4'
'creaturedefense' = '4'
'creaturehealth' = '40'
'creaturegold' = '0'
'type' = 'duel'
'diddamage' = '0'

}  
goodguy-array  array(1) {
'' = ''

}  
Logged



" Im Sane And the rest of the world is Insane, and trying to steal my magic Beans!!!"
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
67 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search