DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • July 20, 2019, 05:40:41 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Equipment Buffs for Equipment Shop  (Read 16309 times)
0 Members and 1 Guest are viewing this topic.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« on: January 24, 2006, 11:49:25 PM »

Presenting a small add-on for the Equipment Shop that will allow you to create and assign buffs to preexisting items. Inspired in part by XChrisX's Inventory System.

What it Does:
  • Create/Add/Edit Buffs and assign them to Items
  • View List of Buffs
  • View List of Items with Buffs
  • Includes Instructions within the mod itself

Some notes:
1.) Each item should have it's own unique buff
2.) Buffs assigned to items already in the player's possession will become active on a newday. Buffs that are edited/deleted will also be affected come newday. Not very dynamic, I realize.
3.) This can be very, very unbalancing if you're not careful
4.) Don't hesitate to report any bugs you may find.

Upon installing this module, the link to the Buff Manager appears inside the Equipment Editor. Full instructions on it's use are included from within the editor iteself. Hint: click View Instructions. Also, make sure you place the included folder "mysticalshop" in your modules directory as well, as it includes a seperate file that contains the various functions for this mod.

Enjoy!

Important:
Requires Equipment Shop Version 2.8 to function


Equipment Buffs for the Equipment Shop - Version 1.3:
http://dragonprime.net/users/Eth/mysticalshop_buffs.zip
« Last Edit: January 31, 2006, 12:53:14 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
seretogis
Guest
« Reply #1 on: January 25, 2006, 10:45:29 AM »

The install seems to miss adding a "buffshortname" column to your magicitembuffs table which causes various MySQL-crying when trying to list buffs or items with buffs.  I just added a varchar(255) one and it seems to work fine now, but anyone installign will encounter the same error probably.
« Last Edit: January 25, 2006, 10:46:09 AM by seretogis » Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #2 on: January 25, 2006, 12:43:52 PM »

Fixed. Actually, shortbuffname shouldn't have even been in there. But it's gone now, so all should be happy.

Thanks for the catch, seretogis.
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Ironman
Guest
« Reply #3 on: January 25, 2006, 01:11:54 PM »

The mysticalshop_buffs.zip archive I downloaded didn't contain the separate "mysticalshop" directory with the other file you refer to.  I get this error when I go to Module Manager.

Fatal error: main(): Failed opening required 'modules/mysticalshop/mysticalshop_buffs_func.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/imgary/logd104/modules/mysticalshop_buffs.php
on line 19
Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #4 on: January 25, 2006, 03:05:24 PM »

The mysticalshop_buffs.zip archive I downloaded didn't contain the separate "mysticalshop" directory with the other file you refer to.  I get this error when I go to Module Manager.

Fatal error: main(): Failed opening required 'modules/mysticalshop/mysticalshop_buffs_func.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/imgary/logd104/modules/mysticalshop_buffs.php
on line 19


*grumbles*

Now it does. Sorry about that. Just forgot to throw it back in the zip when I uploaded it earlier this afternoon.
« Last Edit: January 25, 2006, 03:06:12 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #5 on: January 25, 2006, 08:38:37 PM »

Updated to Version 1.2. Mainly just grammar/spelling fixes, some code cleanup, and the seperation of the buff form to the mysticalshop_buffs_func. php file. It'll also now drop the mysticalitembuffs table when uninstalled. Whoops.

Link in first post leads to the updated version.
« Last Edit: January 25, 2006, 08:42:09 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #6 on: January 31, 2006, 12:52:53 PM »

Presenting a quick bugfix for the Equipment Buffs I've been meaning to get uploaded for about a week now. Shocked

When trying to edit buffs, you'll get thrown into a badnav. Fixed now! Few other spelling errors fixed too. Enjoy

Link in first post leads to updated version.
« Last Edit: January 31, 2006, 12:54:03 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Zanzaras
Captain of the Guard
***
Offline Offline

Posts: 220


*Snipe*


View Profile
« Reply #7 on: March 01, 2006, 07:14:23 AM »

This may just be ignorance on my part. I'm having trouble getting the damage shield buff to work. Regardless of the modifier I put into the Dmg Shield box, no damage is reduced. Other than dropping the multiplier into the appropriate setting, is there anything else I have to do to get this to work?
Logged

"Intelligence is like a river, the deeper it is the less noise it makes."
Gucky2000
Captain of the Guard
***
Offline Offline

Posts: 150


View Profile
« Reply #8 on: June 29, 2006, 01:05:38 AM »

Hello Eth,

I installed your mystical shop and I think you did a good job. But I wonder if the buffs good do more than damages, regeneration and damage shield/lifetap. Is there a way to get more gold perhaps, or change the sex of a player? If it works could you made an example to me, and where to put it in. I don't see any place to put this sort of buffs in.

Anybody some hints for me?

thx Gucky2000
« Last Edit: June 30, 2006, 02:49:32 AM by Gucky2000 » Logged
king khidera
Guest
« Reply #9 on: September 20, 2006, 03:38:01 AM »

Hi, i gotta say i love this module, but there still few problems like below:

SELECT buffid FROM magicitems WHERE id=
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Call Stack:
1: db_query("SELECT buffid FROM magici...") called from /var/htdocs/modules/mysticalshop/mysticalshop_buffs_func.php on line 154
2: mysticalshop_stripbuff() called from /var/htdocs/modules/mysticalshop_buffs.php on line 56
3: mysticalshop_buffs_dohoo k("newday", Array(
"resurrection"=>false, "turnstoday"=>"Base: 30"
)) called from /var/htdocs/lib/modules.php on line 508
4: modulehook("newday", Array(
"resurrection"=>false, "turnstoday"=>"Base: 30"
)) called from /htdocs/newday.php on line 234


This occurs when buying items and at newday as soon as the equipment buffs module is installed and activated.

Any help would be much appreciated
Logged
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #10 on: September 20, 2006, 08:21:43 AM »

This may just be ignorance on my part. I'm having trouble getting the damage shield buff to work. Regardless of the modifier I put into the Dmg Shield box, no damage is reduced. Other than dropping the multiplier into the appropriate setting, is there anything else I have to do to get this to work?

That's not how damageshield works (yes, it's a bit of a misnomer). Essentially, damageshield is damage reflection: badguy hits you for xx damage, and (xx damage * damageshield modifier) damage is incurred back against badguy. If you want damage reduction, try putting a value (1 or 2 decimal places) between 0 and 1 in the 'Badguy Damage Mod' field, or rely on regen Smiley
Logged

Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #11 on: September 20, 2006, 08:24:34 AM »

Eth, would you consider updating this module to include a field for dmgmod? I have tried it with this module on my server and it works without any problems. Basically, its works the same as badguydmgmod, except it affects goodguy's damage dealt to badguy.
Logged

KenMasters
Guest
« Reply #12 on: September 28, 2006, 05:39:04 PM »

[charname] = Farmboy Mess
[email] =*****@*****.com
[description] = I got this error with New Day. And now, I'm stuck!

SELECT buffid FROM logd_magicitems WHERE id=
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Call Stack:
1: db_query("SELECT buffid FROM logd_m...") called from /home3/dangerd/public_html/dragon/modules/mysticalshop/mysticalshop_buffs_func.php on line 154
2: mysticalshop_stripbuff() called from /home3/dangerd/public_html/dragon/modules/mysticalshop_buffs.php on line 66
3: mysticalshop_buffs_dohoo k("newday", Array(
"resurrection"=>false, "turnstoday"=>"Base: 200, Spirits: -1, D..."
)) called from /home3/dangerd/public_html/dragon/lib/modules.php on line 508
4: modulehook("newday", Array(
"resurrection"=>false, "turnstoday"=>"Base: 200, Spirits: -1, D..."
)) called from /home3/dangerd/public_html/dragon/newday.php on line 485

T


It basicall prevented my players from entering the site. Well, this is what he got when he visited the page. Somehow, only I was able to enter the site, deactivate, and uninstall the module. It works now...Any help would GREATLY be appreciated!  Grin

http://www.dangerouslogd.amidal.com/dragon/home.php?\
« Last Edit: September 28, 2006, 06:17:23 PM by KenMasters » Logged
White Knight
Mod God
*****
Offline Offline

Posts: 1030

For the truth!


View Profile
« Reply #13 on: December 01, 2006, 12:22:08 AM »

The new updated version is 1.3.1.  Please give it a try if you had issues before.  If it doesn't resolve your particular problem, please post details here rather than in the Equipment Shop thread.
Logged

Helping you help yourself.
Kalisiin
Guest
« Reply #14 on: December 02, 2006, 05:39:35 AM »

Thanks.
Will give this a try.
Will get back to you regarding this.
Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
95 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search