DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • June 24, 2019, 04:19:02 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Angul's Alchemy  (Read 12288 times)
0 Members and 1 Guest are viewing this topic.
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
« on: September 30, 2004, 07:19:00 PM »

Yes, when I first came on here, I had begun an Alchemy script and I vowed to finish it. Well, I gave the ownership of the alchemy show to my good friend Angul, as to life her spirits. I might add, it did quite well ^_^

-5 Gems Entry (Configurable)
-1000 Gold Entry (Configurable)
-Multi-City (Configurable)

I hope you Enjoy!

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=17

This one is for you Angul!
« Last Edit: July 07, 2006, 02:41:32 PM by Sichae » Logged

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

Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #1 on: September 30, 2004, 07:34:49 PM »

Wanted to tell you the script looks nice... but a few  things so far.

The red writing is extremely hard to read on the default "Jade" theme.

Also:

Buying elixirs...All of the links are set to:
Code:
               output("`4You wander over into a small room, where many small crystals adorn the walls, each a different hue. You walk over$
                addnav("`3Blue Elixir $gemcost gems","runmodule?module=alchemy&op=blue");
                addnav("2Green Elixir $gemcost gems","runmodule?module=alchemy&op=green");
                addnav("`\$Red Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=red");
                addnav("`^Yellow Elixir $gemcost gems","runmodule?module=alchemy&op=yellow",$gemcost);
                addnav("`QOrange Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=orange");
                addnav("`5Purple Elixir $gemcost gems","runmodule?module=alchemy&op=purple",$gemcost);
                addnav("`%Pink Elixir $gemcost gems","runmodule?module=alchemy&op=pink",$gemcost);
                addnav("`)Black Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=black",$gemcost,$goldcost);
                villagenav();

These need to be changed to "runmodule.php?module=alchemy&op=whatever"

Next is:
Buying a black elixir returns:
Quote
Warning: Cannot modify header information - headers already sent by (output started at /home/ecs/public_html/logd/modules/alchemy.php:236) in /home/ecs/public_html/logd/lib/redirect.php on line 18
badnav.phpRedirected to badnav.php from runmodule.php?module=alchemy&op=black. Navigation not allowed to runmodule.php?module=alchemy&op=black Redirected to badnav.php from runmodule.php?module=alchemy&op=black. Navigation not allowed to runmodule.php?module=alchemy&op=black

The only other thing is:

There is not any checking that I see for whether the person has enough gold or gems to buy these items. You can continually buy elixirs without money as long as you use up the rounds first.

Thanks,
Arune
« Last Edit: September 30, 2004, 07:46:48 PM by Arune » 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 #2 on: September 30, 2004, 07:45:26 PM »

Yeah, shortly after, Angul herself noticed that error.

Well, it is all fixed up in my shared folder and set back up on here.

It works very well on my server ^.^
Logged

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

Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #3 on: September 30, 2004, 07:47:08 PM »

Updated my first entry btw
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 #4 on: September 30, 2004, 07:52:21 PM »

Well, like I said...the whole thing is fixed and set in my folder. It works well on my server... -.-'

And also, only two elixirs can be bought, but a person must have at least 1000 gold to enter, so they are losing that 1000 gold for the first, and once they run out of turns, which is very easy, since the buffs are all set to use up all turns on one go, they are only going to make off with 20 charm, or 2 turns...
Logged

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

Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #5 on: September 30, 2004, 07:55:36 PM »

Well I didn't mean to be so ticky, but I am as well as many others on this forum very particular as far as game balance. When I can use a module and drop my gem balance to a negative number, there should be a restriction..

My players are a unique kind...they will take any exploit they can find and use it until someone finally finds it. They just don't report back Tongue
Logged
phofire
Guest
« Reply #6 on: September 30, 2004, 07:57:45 PM »

we must share players!
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #7 on: September 30, 2004, 07:59:14 PM »

lol, now we know that can't be true...If my players ever played your site they'd never wanna come back to mine =)
Logged
phofire
Guest
« Reply #8 on: September 30, 2004, 08:02:09 PM »

i doubt thats true, i keep smiting my players :p  

that and if you attack a player and lose you lose ALL of your exp
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #9 on: September 30, 2004, 08:05:50 PM »

ouch cruel!

Sichae, tossed it into the modules dir for a re-install and I am getting:
Parse error: parse error, unexpected T_ELSEIF in /home/ecs/public_html/logd/modules/alchemy.php on line 115

Looks like there is an elseif @:
Code:
       }else{
                output("I am sorry, but you do not have the required gems to use this.");
                villagenav();
        }elseif ($op=="green" && $theygems>=$gemcost){
« Last Edit: September 30, 2004, 08:08:42 PM by Arune » Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #10 on: September 30, 2004, 08:28:12 PM »

Sichae Smiley
Code:
               output("`4You wander over into a small room, where many small crystals adorn the walls, each a different hue. You walk over$
                addnav("`3Blue Elixir $gemcost gems","runmodule?module=alchemy&op=blue");
                addnav("2Green Elixir $gemcost gems","runmodule?module=alchemy&op=green");
                addnav("`\$Red Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=red");
                addnav("`^Yellow Elixir $gemcost gems","runmodule?module=alchemy&op=yellow");
                addnav("`QOrange Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=orange");
                addnav("`5Purple Elixir $gemcost gems","runmodule?module=alchemy&op=purple");
                addnav("`%Pink Elixir $gemcost gems","runmodule?module=alchemy&op=pink");
                addnav("`)Black Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=black");
                villagenav();



Also, without enough gold / gems you always get the error:
Quote
Angul looks at you, her eyes fiery.
"I am sorry, but some of my wares cost a bit of gold... 1000 gold to be exact. She flicks a fireball at you as you run out the door to escape her wrath.  
 

Not getting the gem error messages.
« Last Edit: September 30, 2004, 08:30:43 PM by Arune » Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #11 on: September 30, 2004, 08:32:23 PM »

updated my last message again. If you need me to correct it or need anything, please let me know. I'm always happy to help
« Last Edit: September 30, 2004, 08:32:55 PM by Arune » Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #12 on: September 30, 2004, 08:57:52 PM »

Im headed home from work now...2 hr drive. But when I get home if I have a chance I'll take a look into it. Let me know

Arune
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #13 on: September 30, 2004, 10:02:01 PM »

Code:
  addnav("`3Blue Elixir $gemcost gems","runmodule?module=alchemy&op=blue");
                addnav("2Green Elixir $gemcost gems","runmodule?module=alchemy&op=green");
                addnav("`\$Red Elixir $gemcost gems and $goldcost gold","runmodule?module=alchemy&op=red");

Have you thought about making these links translatable!?

If I changed the $gemcost or the $goldcost after translating the navs, I would have to translate them all again.

Maybe you can put these navs below the text as HTML-Links?
Logged

Running for more than three years now:
Deimos
Guest
« Reply #14 on: October 01, 2004, 12:53:15 AM »

You can just use an array for the nav info, like I did in the Salesman.

Code:
addnav(array("Accept the Salesman's Offer (`^%s`0 gold)", $cost), $from."op=accept");

I pretty much had to learn that from Kendaer, so it's likely a good way to go.

You'd want something like:

Code:
addnav(array("Red Elixir (%s gems and $s gold)", $gemcost, $goldcost), "runmodule?module=alchemy&op=red")
Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

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