DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 19, 2019, 01:42:49 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Weather Plus  (Read 5550 times)
0 Members and 1 Guest are viewing this topic.
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« on: February 23, 2005, 10:14:15 PM »

 Grin

It is finally here...Weather Plus ver 1.0

It is a special with a few different effects relating to weather...

At present..it tested fine and achieved the desired results!

http://dragonprime.net/users/Lightbringer/weatherplus.zip

At the moment - no hooks into weather mod...
              - will be adding a few if race statements              
                for flavour

Let me know what you think and any ideas and such will be greatly appreciated

*$* Update *$*

After extensive testing - the module works fine...It is just some of the outputs don't make sense...

I will release 1.1 in a little while with a couple of fixes...

  • Outputs will make sense (or I will figure out how to add a badguy to a forest special case)...
  • The Blood Rain case will include an If statement for a positive effect for Vampires (makes sense really Tongue)...
  • HOPEFULLY have a hook into the weather mod and base it from that (doubtful)...
~Cheers
« Last Edit: February 24, 2005, 01:13:53 AM by Lightbringer » Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Lurch
Guest
« Reply #1 on: February 24, 2005, 07:12:47 PM »

A couple of errors in this one,  fixed line 12  it was missing a ,

now getting an error on line 72...


Parse error: parse error, unexpected T_BREAK, expecting ')' in weatherplus.php on line 72
Logged
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #2 on: February 24, 2005, 09:30:04 PM »

Okay...will upload the fixed version in a second...

Thank you, Lurch...
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #3 on: February 24, 2005, 09:41:54 PM »

Done...same link

Ver 1.1

* parse errors and such eradicated..
* Vampire benefit to Blood Rain case

~Cheers
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Lurch
Guest
« Reply #4 on: February 25, 2005, 05:09:30 PM »

Nice mod Smiley Thanks for the update!
Logged
Shadeless
Captain of the Guard
***
Offline Offline

Posts: 231


View Profile WWW
« Reply #5 on: March 21, 2013, 05:59:36 AM »

On My weather plus it always comes, that the message:
"All returns to normal and as it was before all of this curious weather business took place."
doesnt matter if it's me or someone else.
i don't know why it makes no random.
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1929


You're welcome.


View Profile WWW
« Reply #6 on: March 21, 2013, 06:09:05 AM »

On My weather plus it always comes, that the message:
"All returns to normal and as it was before all of this curious weather business took place."
doesnt matter if it's me or someone else.
i don't know why it makes no random.

Have you opened the module code and done a search for those words? Doing that will let you find the section that causes these words to appear.
Logged

Shadeless
Captain of the Guard
***
Offline Offline

Posts: 231


View Profile WWW
« Reply #7 on: March 21, 2013, 06:19:26 AM »

yeah i opened it and compared it with the "stones' modul, where there is a random in it, too
so i have an idea how that works

in the weather the random is written with switch

and my sentence, which is always shown is the very last line in the php

Quote
else{
                $session['user']['specialinc']="";
                output("All returns to normal and as it was before all of this curious weather business took place.`n`0");
        }
}
function weatherplus_run(){
}
?>
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1929


You're welcome.


View Profile WWW
« Reply #8 on: March 21, 2013, 06:27:23 AM »

Might be easier if you attach the whole module as an attachment. I'll take a look.
Logged

Shadeless
Captain of the Guard
***
Offline Offline

Posts: 231


View Profile WWW
« Reply #9 on: March 21, 2013, 06:32:05 AM »

Here it is

i also looked, if it's a problem, when i use the city_weather, but didn't find anything.

i think i found the error.
before the cases starts is the name: "weatherplus2"
i changed it in "weatherplus" and it works now Smiley
« Last Edit: March 24, 2013, 02:03:40 AM by Shadeless » Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1929


You're welcome.


View Profile WWW
« Reply #10 on: March 24, 2013, 07:03:15 PM »

i think i found the error.
before the cases starts is the name: "weatherplus2"
i changed it in "weatherplus" and it works now Smiley

Apologies, I hadn't got around to looking at it, been busy. xD But that does seem to be the issue. Good job finding it!
Logged

Shadeless
Captain of the Guard
***
Offline Offline

Posts: 231


View Profile WWW
« Reply #11 on: March 26, 2013, 02:32:15 AM »

thank you! Cheesy
Logged
Shadeless
Captain of the Guard
***
Offline Offline

Posts: 231


View Profile WWW
« Reply #12 on: March 29, 2013, 04:43:32 AM »

i saw that every case in this modul is negative, so i add two positive things.
the problem is (i think)
that after this modul in the forest, u can make 1-3 forestfight, but then it's lag and nothing happend anymore.
maybe someone can have a look about my writings, if they really work like they should?
first one:
Quote
case 1:
            output ("`^ Als Du den Knopf drckst, zieht ein starker Wind auf und vertreibt all die dunklen Wolken, die am Himmel waren. Die Sonne kriecht hinter den Wolken hervor und beginnt zu strahlen.`n`n");
            output ("`^Du schaust in den wunderschnen Himmel und Deine Stimmung steigt, sodass Du noch ein paar mehr Kreaturen suchen kannst.`0");
            $reward = e_rand(1, 3);
            $session ['user']['turns'] += $reward;
            break;

second:
Quote
case 4:
            output("`^Du drckst auf den Knopf und merkst, wie die Sonne aus voller Kraft strahlt. Du sprst, wie es ein wenig wrmer wird und um Dich herum Blumen zu blhen beginnen.`n`n");
            output("Lchelnd schliet Du die Augen, um die warmen Sonnenstrahlen ebenfalls zu genieen. Du sprst, wie Dir der Duft der Blumen Kraft gibt.`0");
            apply_buff ('Frhlingsgefhle', array(
            "startmsg"=> "Du fhlst Dich von dem Wetter beflgelt!",
            "name" => "Frhlingsgefhle",
            "rounds" => 15,
            "wearoff"=> "Deine gute Laune verschwindet.",
            "atkmod"=> 2,
            "defmod"=> 0,
            "effectmsg"=> "Du fhlst Dich beflgelt",
            )
            );
            break;
i would be pleased for a little feedback.


edit: with these selfwritings there is an error. every time, when these event was, the server is hanging and nothing goes on.
so i would be pleased i would get some feedback.
the first case should give nice weather with some more forest fights
second case also nice weather with flowers, so you get a buff for 15 rounds.
« Last Edit: April 04, 2013, 02:51:59 PM by Shadeless » Logged
Pages: [1]   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
104 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search