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-24-2003 11:38 PM

Quote:

Originally posted by chrisz
Also is there any way of awarding the winner of a battle will money automaticly?
In battleupdate.php, find:

PHP Code:

$DB_site->query("UPDATE user SET inbattle='0' WHERE userid='$bbuserinfo[userid]'"); 

and ABOVE it, add:

PHP Code:

if($battle[winnerid] > 0)
                                
$DB_site->query("UPDATE items_user SET bankval=bankval+XX WHERE userid='$battle[winnerid]'"); 

Replace XX with the amount you want them to receive.

This only works if you are NOT using Lesane's Store Points.


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.

Vivi Ornitier 02-24-2003 11:45 PM

Is this hack gonna have options to use magic or something? I mean every FF game or RPG game in gneeral had magic in someshape, way, form.

Bitsys 02-25-2003 12:22 AM

Quote:

Originally posted by Vivi Ornitier
Is this hack gonna have options to use magic or something? I mean every FF game or RPG game in gneeral had magic in someshape, way, form.
There are spells. Is that what you mean?

chrisz 02-25-2003 12:28 AM

Is there anyway to make it after they have shosen their alignment they cant change unless the admin do it?
This is much needed.

Darkwaltz4 02-25-2003 12:28 AM

*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?

Vivi Ornitier 02-25-2003 12:33 AM

ya spells, like holy, ultima, fire, etc.

chrisz 02-25-2003 12:42 AM

Yay Summons

Bitsys 02-25-2003 01:17 AM

Quote:

Originally posted by chrisz
Is there anyway to make it after they have shosen their alignment they cant change unless the admin do it?
This is much needed.

Nope.


Quote:

Originally posted by Vivi Ornitier
ya spells, like holy, ultima, fire, etc.
Yes, there are spells. You can call them whatever you want, make them do as much damage as you want, and cost as much MA as you want.

chrisz 02-25-2003 01:26 AM

Is there any way to do it so that wen they choose it it cant be changed??

chrisz 02-25-2003 01:44 AM

I cant find how to make the anger percentage grow faster can you find it Bitsys?


All times are GMT. The time now is 11:21 AM.

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.02897 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)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