vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   Monsters have no stats (https://vborg.vbsupport.ru/showthread.php?t=79424)

Crow 04-05-2005 05:07 PM

Monsters have no stats
 
none of my monsters have :

Class:
Race:
Alignment:

Attack: 0
Magic Attack: 0
Speed: 0
Defense: 0
Magic Defense: 0
Evade: 0

Where do you change this?

Revan 04-05-2005 06:08 PM

Arr forgot to apend the Monster update code to the install part of the hack too.
What you have to do is this:
  • Determine the Class ID of the following class: I-Bot
  • Determine the Race ID of the following Race: Monster
  • Run the following query: [sql]ALTER TABLE `rpg_ibots` CHANGE `rpgclass` `rpgclass` TINYINT( 3 ) UNSIGNED DEFAULT '$classid' NOT NULL;
    UPDATE `rpg_ibots` SET `rpgclass` = '$classid'[/sql] (where $classid is the class id of I-Bot)
  • Run the following queries: [sql]ALTER TABLE `rpg_ibots` CHANGE `rpgrace` `rpgrace` TINYINT( 3 ) UNSIGNED DEFAULT '$raceid' NOT NULL;
    UPDATE `rpg_ibots` SET `rpgrace` = '$raceid'[/sql] (where $raceid is the race id of Monster)

Remember to add a Table Prefix if you have one. Run the 2 queries in each sql tag seperate if running in ACP.

Crow 04-05-2005 07:15 PM

I'm not a coder.. Could you please give a bit more info about what numbers have to go in where?

in rpgclass if I put 1 I get unknown as class, if I put anyother number it does the char classes but no I-bot.
in rpgrace if i put 1 i get unknown as race but anyother number in here and its blank.

Found it out after playing around in the DB

rpgclass - 67
rpgrace - 4

Tri@de 04-17-2005 07:27 AM

Just go in edit classes in admincp:
you will see in edit button of i-bot class a link like this:
yourdomain/forum/admincp/rpgadmin.php?do=editclass&id=4

so you have to put in query $classid the number 4

For races do the same thing looking for the monster race.

asianboi 04-30-2005 02:17 PM

Hi

Class:
Race:
Alignment:

Attack: 0
Magic Attack: 0
Speed: 0
Defense: 0
Magic Defense: 0
Evade: 0

where did you see above?


All times are GMT. The time now is 08:31 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.01759 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete