DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 31, 2010, 03:49:15 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Tifter's Charm Shop  (Read 2002 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: March 19, 2004, 06:44:22 AM »

Couldn't find the Charm Shop thread in the modders area, so started a new one as that is where the thread should be.   Had some fun with the charm shop.  First thing was to get all the small files into one bigger one.   Second thing was to balance wages to pill costs better.   And finally I made 3 cute little pill images and added them to the first page.  You may want to play with earnings and pill costs some.

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=4&lid=49
« Last Edit: January 30, 2005, 07:04:59 AM by lonnyl » Logged
robert
Old Dog
Moderator
Mod God
*****
Offline Offline

Posts: 1009


LoGD Buff!


View Profile WWW
« Reply #1 on: March 20, 2004, 05:06:32 PM »

I also noticed that there is no check - a player can, as I did, keep making pills, well after turns and charm has run out and going into the negative -
 a real cash machine.
To fix this problem:
another field added:
 pills   tinyint(1)  UNSIGNED  No   0
Then added these necessary lines to charmstore.php

require_once "common.php";
///INSERT THIS///
if ($session[user][pills]>0){
   page_header("Love Shop");
   addnav("(R) Return to Village","village.php");
   output("`c`2Lonny's Love Shop`c");
   output("`n`nYou already made Pills today - come back tomorrow");}
else{

after: output("`@ She shows you a number of different machines and tells you what each one requires:");
///Add this: output("And also reminds you that you can make only one Pill per day and cannot return to the Love Store until tomorrow");

///then add  $session[user][pills]=1;
after:       $session[user][bluepill] += 1;
after:       $session[user][redpill] += 1;
after:       $session[user][whitepill] += 1;

///then add   }
before:   page_footer();

Then add entries to your newday.php and user.php also
« Last Edit: March 20, 2004, 05:19:52 PM by robert » Logged

lonnyl
Guest
« Reply #2 on: March 20, 2004, 07:27:05 PM »

Why don't you upload the file with the changes...... Roll Eyes
Logged
bwatford
Guest
« Reply #3 on: March 21, 2004, 10:59:46 AM »

You have changed the blackpills to whitepills but in the sql install it sets a blackpill db entry? Some people might get confused.
Logged
lonnyl
Guest
« Reply #4 on: March 21, 2004, 12:03:16 PM »

Could have swore I changed that....... Are you giving me the finger? Tongue
Logged
Ben
Guest
« Reply #5 on: April 24, 2004, 05:42:58 AM »

Hi!

I have download the script,
but the game write this error:
Parse error: parse error, unexpected $ in /var/www/web2/html/beta/charmstore.php on line 246

Why?

here is the script:
http://dreamworld.tiger4you.de/beta/charmstore.php
Logged
lonnyl
Guest
« Reply #6 on: April 24, 2004, 05:52:20 AM »

not sure the file I uploaded had only 238 lines.....
Logged
Ben
Guest
« Reply #7 on: April 24, 2004, 05:54:53 AM »

ok. i have found the error.

thank you!
Logged
Ben
Guest
« Reply #8 on: April 24, 2004, 05:57:26 AM »

For what ist the "link":

"apply for a job"
Logged
lonnyl
Guest
« Reply #9 on: April 24, 2004, 06:12:08 AM »

the charm shop is basically a charm exchange..... one person can go in and work and earn gold and also expend their charm.  and another can go in and buy pills to gain charm.
Logged
Ben
Guest
« Reply #10 on: April 24, 2004, 07:42:03 AM »

OK!

But if I go on the link: "apply for a job", i see the scriptcode and the error:
Unknown column 'charmstore' in 'field list'

Why?
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5207



View Profile WWW
« Reply #11 on: April 24, 2004, 07:49:11 AM »

The Charm Shop requires 4 new fields in your database - did you run the sql-install to create them?
Logged

Play the latest beta version here on DragonPrime
Ben
Guest
« Reply #12 on: April 24, 2004, 03:54:16 PM »

I have add to my accounts:

bluepill int (11)
redpill int (11)
blackpill int (11)
charmstore tinyint (4)

But if I go on the link: "apply for a job", i see the scriptcode and the error:
Unknown column 'charmstore' in 'field list'.

Why?

In the game i became the email:
Congradulations!

Your job appliance has been accepted
visit the love shop to start earning!

Happy Working!!

But the i don't can work in the game.

why?

The pills can i buy.

Sorry my english is not so good.  Embarrassed

« Last Edit: April 24, 2004, 03:56:20 PM by Ben » Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #13 on: May 30, 2004, 04:01:40 PM »

recently came aware that players were blowing all their money on charm pills before they level, and then making pills and selling them after the DK.  these players are rabid i tell ya:)   So i disabled the shop for lvl 1 players and lvl 15 players.  still can be used like that though, maybe it should store all the pills available in another table, like the gems store.  and decrease prices according to demand.
Logged

Spider
Guest
« Reply #14 on: May 31, 2004, 09:32:17 AM »

it could pretty much just be another gem store, but for charm Wink

it might be an idea to do what the charm store does and simply not allow selling until level 4, that should reduce the problem a fair bit.

I was meaning to compile the store into one file myself actually, so thanks for saving me some effort Smiley
Logged
Pages: [1]   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!
Who's Online
26 Guests, 1 User
spector
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search