DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 18, 2013, 10:26:58 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 2 [3] 4 5 ... 21   Go Down
  Print  
Author Topic: Item system  (Read 54253 times)
0 Members and 1 Guest are viewing this topic.
Psychotic_Carp
Guest
« Reply #30 on: June 16, 2005, 12:18:40 PM »

Apparently setting all the modifiers to 0 will cause the above

Inventar needs to be changed
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #31 on: June 16, 2005, 12:34:29 PM »

Well this is not really a fault of the system, but a fault of the person which creates the buff...

Buffs are quite complex things and not all combinations will lead to a fully functioning code.

Setting modifiers to zero is done only once in the whole core (for the 4th dark arts specialty use) and should therefore only be applied to very mighty items.

I cannot think of a system, which would check, if a buff ist working...

If you do this in the mount editor, your system will break as well...
Logged

Running for more than three years now:
SpRouCyT
Guest
« Reply #32 on: July 11, 2005, 03:36:47 PM »

Code:
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unclosed quote @ 1692
STR: `
SQL: --
-- Data for table `item`
--

INSERT INTO `item` (`class`, `name`, `description`, `gold`, `gems`, `weight`, `droppable`, `level`, `dragonkills`, `buffid`, `link`, `hide`, `customvalue`, `activationhook`, `findchance`, `loosechance`, `dkloosechance`) VALUES
('Loot', 'Rusty Knife', 'A small, rusty knife which appears to still carry some stains of dried blood.', 10, 0, 0, 1, 0, 0, 0, '', 0, '', '', 100, 25, 99),
('Loot', 'Gauntlet', 'A light, damaged gauntlet.`n\r\nIt seems it belonged to a larger piece of armor before.', 230, 0, 0, 1, 3, 2, 0, '', 0, '', '', 80, 80, 100),
('Loot', 'Small Leatherbag', 'A small bag made from black leather.`n\r\nSome coins still ring in it.', 50, 0, 0, 1, 1, 0, 0, '', 0, '', '', 75, 50, 99),
('Loot', 'Necklace', 'A seemingly worthless necklace with strange symbols engraved on its front.', 20, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 80, 99),
('Loot', 'Quiver', 'An old quiver with a good dozen of mostly broken arrows.`n\r\nSuch a fine piece of work so shattered...', 380, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 100, 100),
('Loot', 'Stone', 'Small, round, grey, heavy...`n\r\nNot really interesting.', 3, 0, 0, 1, 1, 0, 0, '', 0, '', '0', 100, 100, 100),
('Loot', 'Potshard', 'A small potshard. YOu recognize some mysterious runes painted on it.', 80, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 100, 100),
('Loot', 'Gammon', 'Approximately one pound of gammon, wrapped in fatty paper. Perhaps not the best, but it'll keep you from starving.', 140, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 100, 100),
('Loot', 'Runestone', 'A very heavy and almost totally black stone with some notches at one side. Perfectly oval and exactly the size to carry it in one hand.`n\r\nThe perfect circle gracing its front seems to shine in light purple.', 800, 3, 250, 0, 10, 10, 0, '', 0, '', '0', 35, 90, 100);
       

SQL query:

-- -- Data for table `item` -- INSERT INTO `item` (`class`, `name`, `description`, `gold`, `gems`, `weight`, `droppable`, `level`, `dragonkills`, `buffid`, `link`, `hide`, `customvalue`, `activationhook`, `findchance`, `loosechance`, `dkloosechance`) VALUES ('Loot', 'Rusty Knife', 'A small, rusty knife which appears to still carry some stains of dried blood.', 10, 0, 0, 1, 0, 0, 0, '', 0, '', '', 100, 25, 99), ('Loot', 'Gauntlet', 'A light, damaged gauntlet.`n\r\nIt seems it belonged to a larger piece of armor before.', 230, 0, 0, 1, 3, 2, 0, '', 0, '', '', 80, 80, 100), ('Loot', 'Small Leatherbag', 'A small bag made from black leather.`n\r\nSome coins still ring in it.', 50, 0, 0, 1, 1, 0, 0, '', 0, '', '', 75, 50, 99), ('Loot', 'Necklace', 'A seemingly worthless necklace with strange symbols engraved on its front.', 20, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 80, 99), ('Loot', 'Quiver', 'An old quiver with a good dozen of mostly broken arrows.`n\r\nSuch a fine piece of work so shattered...', 380, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 100, 100), ('Loot', 'Stone', 'Small, round, grey, heavy...`n\r\nNot really interesting.', 3, 0, 0, 1, 1, 0, 0, '', 0, '', '0', 100, 100, 100), ('Loot', 'Potshard', 'A small potshard. YOu recognize some mysterious runes painted on it.', 80, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 100, 100), ('Loot', 'Gammon', 'Approximately one pound of gammon, wrapped in fatty paper. Perhaps not the best, but it'll keep you from starving.', 140, 0, 0, 1, 1, 0, 0, '', 0, '', '', 100, 100, 100), ('Loot', 'Runestone', 'A very heavy and almost totally black stone with some notches at one side. Perfectly oval and exactly the size to carry it in one hand.`n\r\nThe perfect circle gracing its front seems to shine in light purple.', 800, 3, 250, 0, 10, 10, 0, '', 0, '', '0', 35, 90, 100);

MySQL said: Documentation
#1064 - 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 'll keep you from starving.', 140, 0, 0, 1, 1, 0, 0, '', 0, '',
[ Back ]

i install, but when i try to run sql, ERROR

here i have a table intem and items

help  me
« Last Edit: July 11, 2005, 03:38:20 PM by SpRouCyT » Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #33 on: July 11, 2005, 03:41:51 PM »

Chris, you need your addslashes in there. Tongue Otherwise, the inserting of the field ends prematurely. Smiley
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

SpRouCyT
Guest
« Reply #34 on: July 11, 2005, 04:49:36 PM »

Chris, you need your addslashes in there. Tongue Otherwise, the inserting of the field ends prematurely. Smiley

sory but i didnt undertood
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #35 on: July 11, 2005, 09:31:15 PM »

Chris, you need your addslashes in there. Tongue Otherwise, the inserting of the field ends prematurely. Smiley

Grin Yes, well... ***** englisch with it's apostrophees... *waaah* There! Again! *g*

I'll check the SQL file...
Logged

Running for more than three years now:
SpRouCyT
Guest
« Reply #36 on: July 12, 2005, 09:37:54 AM »

Grin Yes, well... ***** englisch with it's apostrophees... *waaah* There! Again! *g*

I'll check the SQL file...

to install the nodule, i need to rum SQL?  i.m wanting, tanks a lot, its a good mod
Logged
SpRouCyT
Guest
« Reply #37 on: July 13, 2005, 09:41:45 AM »

...

i need this moduel, help please
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #38 on: July 14, 2005, 08:03:43 AM »

Updated the System... same Link.

Fixed some bugs and (THANKS to DaveS) some spelling mistakes!

One known bug: If you create an invalid buff, the fights will hang up in an endless loop.

Accidently removed the items.sql for some basic items...  Shocked

If anybody has this (broken) file, please send it to me!
Thanks!
« Last Edit: July 14, 2005, 08:04:45 AM by XChrisX » Logged

Running for more than three years now:
SpRouCyT
Guest
« Reply #39 on: July 15, 2005, 04:39:11 PM »

do you want the OLD file??? i have

how can i send to you?

ad my msn and i send to you Smiley

sproucyt@hotmail.com

tanks for fixed
Logged
SpRouCyT
Guest
« Reply #40 on: July 16, 2005, 12:16:04 PM »

is it?
Logged
Brother Dave Thompson
Guest
« Reply #41 on: August 17, 2005, 02:05:17 AM »

One known bug: If you create an invalid buff, the fights will hang up in an endless loop.

Can you give us an example of a valid buff? All I want is a simple healing item, and I can't get one to work.
Logged
Eliwood
Member
Captain of the Guard
***
Offline Offline

Posts: 243


I'm Swiss


View Profile WWW
« Reply #42 on: August 17, 2005, 08:59:25 AM »

INSERT INTO `itembuffs` VALUES (1, 'Healing Level 1', 'Healing', 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 25, 1, 0, 0, 0, 0, '`#You regenerate!', '', '', '', 0, 0, 0);

(Its healing 25 points)
« Last Edit: August 17, 2005, 09:27:03 AM by Eliwood » Logged

→ Yet another Green Dragon - just another green dragon clone completly (re)written in oop5 and utf8.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #43 on: November 20, 2005, 05:31:06 AM »

So, it's been a long while since the last update...

And since then a lot has changed.
It's not the appearance of the module... But the module has been streamlined to work faster and use the data caching feature.
So it should work faster - especially on larger servers.
Also some minor bugs have been fixed.

Re-Download at http://dragonprime.net/users/XChrisX/itemsystem.zip
« Last Edit: November 20, 2005, 05:31:49 AM by XChrisX » Logged

Running for more than three years now:
Dannic
Guest
« Reply #44 on: November 20, 2005, 12:07:23 PM »

I've probably installed this incorrectly somehow.  But I am getting this.

Code:
SELECT item.itemid AS itemid, item.name AS name, COUNT(inventory.itemid) AS quantity, inventory.sellvaluegold AS sellvaluegold, inventory.sellvaluegems AS sellvaluegems
               FROM inventory
               INNER JOIN item ON item.itemid = inventory.itemid
               WHERE inventory.userid = 1
                  AND item.class = 'Loot'
                  AND item.sellable <> 0
               GROUP BY item.itemid
               ORDER BY
                  item.class ASC,
                  item.name ASC

Unknown column 'inventory.sellvaluegold' in 'field list'
Call Stack:
1: db_query("SELECT item.itemid AS ite...") called from /logd/lib/itemhandler.php on line 430
2: shopnav("runmodule.php?module=basi...", "Loot", true, "1", true) called from /logd/modules/basicitemshop.php on line 112
3: basicitemshop_run() called from /logd/runmodule.php on line 32
Logged
Pages: 1 2 [3] 4 5 ... 21   Go Up
  Print  
 
Jump to:  


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

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
19 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search