DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 18, 2018, 02:39:32 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Trading Module  (Read 10789 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: September 29, 2004, 03:03:03 PM »

Whew.... this one stunk converting it....

Trading..... really is only useful if you are running multiple cities....
Places a trading post in each village.... you may need to up your travel points a bit if you plan on running this.

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=21
« Last Edit: January 30, 2005, 06:04:29 AM by lonnyl » Logged
lonnyl
Guest
« Reply #1 on: October 01, 2004, 05:47:48 PM »

Updated to prevent buying negative amounts of products and getting gold for doing so..... and same for selling...
Logged
AndyMC
Guest
« Reply #2 on: October 01, 2004, 07:18:17 PM »

Not sure if this was intentional or not, but when you get items robbed from you it uses the following code:

Code:
if ($steal > 0) addnews("$name lost $steal Leather to the robbers!`n");

This adds a blank line after each news item it creates, there's a line there from each item that can be stolen.

Also, I was thinking maybe you could make the items into a variable so that people can rename the items, maybe have a configurable setting for the price ranges as well.

Great mod btw!
Logged
lonnyl
Guest
« Reply #3 on: October 01, 2004, 08:06:02 PM »

I have thought of alot of these things... but at this point... well I have a great number of mods to get converted.... Ugh.... Embarrassed
Logged
lonnyl
Guest
« Reply #4 on: October 04, 2004, 06:23:27 AM »

Updated... fixed worms selling problem.
Logged
lonnyl
Guest
« Reply #5 on: October 14, 2004, 08:08:04 AM »

Updated Ver (1.4) Translation ready (I hope) + bug fixes....
Logged
Jim
Guest
« Reply #6 on: October 14, 2004, 08:15:57 AM »

Parse error: parse error, unexpected T_STRING in lotgd/modules/trading.php on line 1066
Logged
lonnyl
Guest
« Reply #7 on: October 14, 2004, 08:26:23 AM »

hehehe you don't waste any time downloading.... hehehe... it was up with that error for a couple of minutes... the current download works but gives me an error that I am trying to track down (works, however gives error)
Logged
lonnyl
Guest
« Reply #8 on: October 14, 2004, 08:35:20 AM »

Found the error... gave output error.... was actually some `% color codes in the addnav.....
fixed and uploaded...
Logged
Jim
Guest
« Reply #9 on: October 14, 2004, 08:43:15 AM »

works! thanks!
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 #10 on: October 14, 2004, 09:45:27 AM »

Not sure if this was intentional or not, but when you get items robbed from you it uses the following code:

Code:
if ($steal > 0) addnews("$name lost $steal Leather to the robbers!`n");

This adds a blank line after each news item it creates, there's a line there from each item that can be stolen.

Also, I was thinking maybe you could make the items into a variable so that people can rename the items, maybe have a configurable setting for the price ranges as well.

Great mod btw!

I believe, if it were to be more transalation compatible, it would look like so:

Code:
if ($steal > 0) addnews("%s lost %s Leather to the robbers!`n",$name,$steal);

Although, I haven't looked through the mod...incapable, I am at school right now. And, you may already have this in the newest version.
Logged

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

lonnyl
Guest
« Reply #11 on: October 14, 2004, 10:06:49 AM »

Yes... both instances are fixed in the new version..... and changing them to variables is something I have thought about but will take some major re-writes of the module (something I am not ready to do at this time)..... I have at present suspended conversions of some of my older modules, to get the current ones up to par with the translation system.  I believe I have the translations close to being complete, but have a few modules to go back to and implement some of what I have learned about translation in the last few days.
Logged
Boofo
Guest
« Reply #12 on: October 20, 2004, 03:33:47 PM »

When I buy something in the Trading Post, it doesn't take away any gold or show up as having any items. Can someone please tell me what I need to do? Thanks in advance. Wink
Logged
Boofo
Member
Mod God
*****
Offline Offline

Posts: 774


View Profile
« Reply #13 on: October 21, 2004, 03:41:53 AM »

I don't know what I did, but it's working great now. Thanks for the excellent mod. Wink
Logged

chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
lonnyl
Guest
« Reply #14 on: October 21, 2004, 10:13:04 AM »

Updated (ver 1.5)... small display enhancements.
Logged
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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