Raised This Month: $ Target: $400
 0% 

Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 08-02-2010 , 02:10   Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour
Reply With Quote #1

Hi all!

I am working on a new plugin: bank_vault. This will have an inventory as a part of the game, where people could buy items. The items would be in separate plugins, could be registrated with a native from the main plugin.

The trouble is, I don't know how I should tell bots to buy items, because every plugin handles it's own items separately. As far as I thinked of:
The money message is being hooked, and as soon as a bot has enough money, then it can buy items. But how to choose which items? How to tell other plugins in the same forward that some othe plugin already spent some of the bot's money.

Any ideas on this? I attached the source code so far...

Thanks in advance for your answers.
Attached Files
File Type: sma Get Plugin or Get Source (bank_vault.sma - 653 views - 13.6 KB)
File Type: sma Get Plugin or Get Source (bv_items.sma - 639 views - 2.4 KB)
File Type: inc bank_vault.inc (1.4 KB, 129 views)
File Type: zip bank_vault.zip (19.3 KB, 63 views)
Lulu the hero is offline
 



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 -4. The time now is 00:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode