vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   RPG Integration Hack /w Battle (BETA) (https://vborg.vbsupport.ru/showthread.php?t=46417)

Bitsys 02-25-2003 01:54 AM

Quote:

Originally posted by chrisz
Is there any way to do it so that wen they choose it it cant be changed??
Not right now.

Quote:

Originally posted by chrisz
I cant find how to make the anger percentage grow faster can you find it Bitsys?
In battleupdate.php, find:

PHP Code:

$randmad rand(710); 

It is in there 3 or 4 times. Here is an explanation:

The rand function (the part that says rand(X, X) ) gives you a random number between the numbers in parentheses, with the lower number being on the left. So, the function rand(7, 10) gives you a random number between 7 and 10. All you have to do is find each instance of this function and change it to what you want. If you want to display a number between 23 and 47, then you can say
PHP Code:

$randmad rand(2347); 

Make sense?

One more thing, you do know that there is an edit button, right?

chrisz 02-25-2003 02:31 AM

thnx I have now opened my RPG thnx for not yelling at me for bein n00bish.
One more thing as users go up lvls does it get harder to go up as they get higher?

mr e 02-25-2003 02:58 AM

yes

Vivi Ornitier 02-25-2003 04:45 AM

How are the stats gonna be decided?

Obviously the class will affect it, obviously the weapons will too, wat about the post count?

chrisz 02-25-2003 07:40 AM

I want to have diff class types have diff classes but when I add them users can select any class no matter what class type.
It messes with the RPG can anyone fix it?

VeoMorphine 02-25-2003 04:24 PM

Quote:

quote:
Originally posted by sonic3d
also does ne1 know how to make every user get a certain amount of money when the register?


l8er
sonic

--------------------------------------------------------------------------

Darkwaltz4 did this on his forum , I believe.
On the mysql Db all you need to do is set that colum witha defalt value.

And the Money that you get when you win a battle i have is a built in feature that can be set. I'll get that for you when i get home and add it.

Quote:

Heh, the first release had 15 or so. The second had around 10. This one has had 3 confirmed bugs. I guess it is all relative
Thats why its a beta though :P
Can you release a fix for the classes bug? I wanna do more testing but right now this class bug is stopping me.(where if you chose a certin class, it doesnt show up on the rpg CP or member profile).

sonic3d 02-25-2003 05:52 PM

Quote:

Originally posted by Darkwaltz4
*bows* thanks to bitsys, battefight.php is fixed, so ill post the addon for summons....in around 3 days

to make 'register' points....
in register.php, find this: (its right under the placed code)
PHP Code:

  // insert custom user fields 

and decide an amount to give...ill label it as XXX in the next bit (i use 1000 currently)

replace the above code with:
PHP Code:

  // insert custom user fields
$pfield=$DB_site->query_first("SELECT pointfield FROM items_options");
$pointfield "$pfield[0]";
  
$DB_site->query("UPDATE userfield SET $pointfield=XXX WHERE userid=$userid"); 

now....there are some things to be aware of when doing this...
ppl may start fake members just to donate the 'registration points' to their true members (yes, all you have to do is log out to reregister, even with the vb option of 'only one registration per person')

to help combat this, i made an addon, the Donation Queue--see the very first post in this thread for more information and the link to download it.

This hack already uses magic vivi...? didnt u know?

it didn;t work. i registered myself agian and i get no money?

l8er
sonic

Bitsys 02-25-2003 06:40 PM

Quote:

Originally posted by Vivi Ornitier
How are the stats gonna be decided?

Obviously the class will affect it, obviously the weapons will too, wat about the post count?

HP/MA/PP/AP is calculated by post frequency, your level, and the amount per level for the stat.

Atk, Dfnd, Evade, etc. is calculated by class/race/element.

You can change all of that by changing the update stats code in member.php.

Quote:

Originally posted by chrisz
I want to have diff class types have diff classes but when I add them users can select any class no matter what class type.
It messes with the RPG can anyone fix it?

Could you explain the problem a little more?

Quote:

Originally posted by VeoMorphine
On the mysql Db all you need to do is set that colum witha defalt value.
Note: that will only work on the bankval column in the items_user table.

Quote:

Originally posted by VeoMorphine
Can you release a fix for the classes bug? I wanna do more testing but right now this class bug is stopping me.(where if you chose a certin class, it doesnt show up on the rpg CP or member profile).
I am still not confident that my fix works 100% of the time. I need to test it some more.

PSI|Dr-X 02-25-2003 07:54 PM

Bytsis i'am comming with an great idea can you intregate
A little shoutbox in the battle so that viewers can chat too ;)
that would be great :)

Darkwaltz4 02-25-2003 08:07 PM

Quote:

Originally posted by sonic3d


it didn;t work. i registered myself agian and i get no money?

l8er
sonic

set which userfield in ur itemshop options -_-


All times are GMT. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02941 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete