Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > RPG Integration Hack
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Bug or install error? Details »»
Bug or install error?
Version: , by Cyricx Cyricx is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-16-2005 Last Update: Never Installs: 0
 
No support by the author.

I've got a problem that I think is a bug due to everything else going perfect for the install.

Basically, if you make like certain armor or weapons usable by only one class type.

Someone can edit their character to that class, buy those items and then change their class to whatever else they want and they will still keep the items.

For example, if you made a plate armor that only warriors could use and mages could only use robes.

The mage player could edit their character to a warrior, buy the plate armor and then edit their character back to a mage and they'd keep the plate armor on :dead:

I haven't seen anything about this posted except for one person that hinted at having found a major bug but hasn't seen a thread about it.

Thinking this is the one he was referring too...

Any ideas on how to fix it?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-16-2005, 03:27 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then again, if they do that they will have wasted their money.
The item is 100% unusable if the class does not match.
An error will occur in battle, saying "The [itemname] is for a different class. Please sell it."



//peace
Reply With Quote
  #3  
Old 02-17-2005, 12:03 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I miss hacked something then because we didn't get that error in my testing.

Even made a class for mages and gave them a fireball spell, made sure the item type was only for mages and then switch to warriors, started a battle, jumped in and fireballed each other =/

We also made warriors, equipped with warrior only armor (positive of this as a mage the armor was not available to purchase in the item shop), then switch to mages. :dead:
Reply With Quote
  #4  
Old 02-17-2005, 05:26 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm... weird...
I will look into this when I get home.
Reply With Quote
  #5  
Old 02-17-2005, 04:09 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want access to the test forums I have it on just fire me a pm.
Reply With Quote
  #6  
Old 02-21-2005, 11:55 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Were you able to duplicate the problem on your newest version Revan?
Reply With Quote
  #7  
Old 02-21-2005, 12:12 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um I forgot all about this
Im gonna check it out later today, I promise.
Right now Im coding some on the installer for v3, then gotta go outside for a lil bit


EDIT: Ok I tried it out, and it is just ok in here.
In your battlefight.php, check if you have this piece of code:
Code:
Your $onehanded[onehanded] is for a different class.  Please sell it.
Reply With Quote
  #8  
Old 02-22-2005, 04:26 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it in battlefight.php, so you can only define specific classes of items for a class?

Because I have all my armor grouped up but then use the itemtype to determine which class can access them but it's not catching that or the weapons but they are grouped the same.

It looks like you have the code right in battlefight for what I'm thinking..

I've got all my weapons grouped up in a group of one-handed weapons.

Classes are spread out over various class types, then I use the "item type" to link which class types can use which individual weapon. However right now a mage type that can't buy a broadsword, can switch to a warrior type, buy it, switch back to a mage, and then attack with it...
Reply With Quote
  #9  
Old 02-22-2005, 05:28 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok that there was abit confusing, so here's a detailed instruction of what I did to test this:
* Created a Battle Type called "Holy"
* Inserted White Mage into this type
* Created a Battle Type called "Unholy"
* Inserted Vampire into this type
* Edited Item Type, checking Air Racket off under Holy type only
* Edited Item Type, checking Blade off under Unholy type only
* Changed my Class to White Mage
* Purchased Air Racket
* Changed my Class to Vampire
* Went into battle

And I was unable to use the Air Racket.
Reply With Quote
  #10  
Old 02-24-2005, 01:35 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, okay, so it's just armor that it's not stopping you from battling with?
Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT. The time now is 09:20 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.04183 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete