DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • August 30, 2016, 09:18:26 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Death's Door Potions  (Read 4523 times)
0 Members and 1 Guest are viewing this topic.
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« on: March 23, 2005, 05:33:03 AM »

Death's Door Potions:
  • Requires the potionshop module.
  • Allows users to buy potions to exit the underworld.
  • Due to the fact that this could mean no one at a high level would torment, you can restrict buying of the potions to a single city.
I've actually got a long list of potions that users have suggested
Link: http://dragonprime.net/users/CortalUX/deathdoorpotion.zip
« Last Edit: March 24, 2005, 05:37:29 AM by CortalUX » Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #1 on: March 23, 2005, 06:50:18 AM »

what does your sig say?

i am not sure of the use of this module..they get to kill themselves with out penalty?  removing them from the PvP?
Logged

Perdition
Guest
« Reply #2 on: March 23, 2005, 07:29:53 AM »

They provide a door OUT of the underworld, not in.
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #3 on: March 23, 2005, 07:55:50 AM »

ah, so it's a free resurrection potion then Grin

sorry, i read it as 'exit to the underworld.
Logged

CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #4 on: March 23, 2005, 11:39:46 AM »

I've fixed a bug with the cost not showing correctly.
Will fix my sig, doesn't look that nice.
Logged
scar
Guest
« Reply #5 on: January 12, 2006, 05:20:36 AM »

after you buy the potion there is no return to shop or city
Logged
kira
Guest
« Reply #6 on: July 02, 2006, 11:21:05 AM »

line 163
change: 
Code:
modulehook("movepotion-navs");

to:
Code:
modulehook("potionshop-navs");

Worked for me.
Logged
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #7 on: November 07, 2006, 09:07:34 PM »

Death Door Potion Update:

There were some problems with this module as it did not work as CortalUX originally intended.  Players could use it to get a newday as it was active when players were alive.

I debugged the module and added a couple of limiting settings to help reduce the abuse of this module:

1.  Added a setting to allow limiting players to only using one per day.
2.  Added a setting to make the potions expire if they aren't used during the system newday.
3.  Debugged

By the way, this module works even if you are running the Valhalla module.

I have added this to the potions pack.

Available for download here:
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=345
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Kalisiin
Guest
« Reply #8 on: December 02, 2006, 08:56:19 PM »

Death Door Potion Update:

There were some problems with this module as it did not work as CortalUX originally intended.  Players could use it to get a newday as it was active when players were alive.

I debugged the module and added a couple of limiting settings to help reduce the abuse of this module:

1.  Added a setting to allow limiting players to only using one per day.
2.  Added a setting to make the potions expire if they aren't used during the system newday.
3.  Debugged

By the way, this module works even if you are running the Valhalla module.

I have added this to the potions pack.

Available for download here:
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=345


OK...question.  One of my players says that this now only lets you have one Death Door Potion at a time...no matter how many are purchased.
In other words, I see we are TRYING to limit the use of them to one per new System Day...but does this mean that if they purchase more than one, (and the Potion Store allows this) that the player loses those potions?  Or do they just become unavailable for use until next System Day?

Basically, what I am asking here is...can I buy 3 or 4 or 5 Death Door Potions, and KEEP them....but use only one per new System Day...or does it simply not credit me with ever having more than one at a time, even though the store takes my money?

If it will only allow for CARRYING one at a time, then there should also be something that prevents them from BUYING more than one at a time, so as to not have players getting P.O.ed about getting ripped off that the store took their money, but they didn't get their potion.

I have a player climbing my shirt about this.  what gives?

One other question - I just noticed this, and I know sooner or later a player will...when I used the Death Door Potion myself, it still took 100 Favor!  I thought the whole point of Death Door Potions was that it would resurrect you without taking Favor?
« Last Edit: December 02, 2006, 09:42:01 PM by Kalisiin » Logged
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #9 on: December 02, 2006, 10:45:04 PM »

Well, I'll take a look at it and see if I can fix it.  If your players are complaining so much about it, tell them you're taking it offline until you get it checked out.
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Kalisiin
Guest
« Reply #10 on: December 03, 2006, 05:52:42 AM »

Thanks,  I appriciate it.
And I wouldn't take it offline, anyway, just make the setting that players couldn't purchase them...that way, Admins could still have them.
Logged
Kalisiin
Guest
« Reply #11 on: December 24, 2006, 08:18:31 AM »

Still looking for a resolve about being able to purchase more than one, but still only HAVE one, regardless of how many purchased - once you use one, they are all gone - and, it also uses Favor, which it shouldn't do.
Logged
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #12 on: December 24, 2006, 01:12:39 PM »

Well, I was able to resolve all those problems, but since I made significant modifications to CortalUX's original code I felt it would be appropriate to release it as a completely separate module.

See the Listing here:

http://dragonprime.net/index.php?board=17;action=display;threadid=6044.0
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Kalisiin
Guest
« Reply #13 on: December 24, 2006, 07:54:33 PM »

I must've missed the announcement, then.  Thanks, Dave!
Logged
Kalisiin
Guest
« Reply #14 on: April 28, 2007, 11:37:57 PM »

OK, there was a bug in this module which I found and fixed.

first, Farmies could not buy the deathdoor potion at all....with the default settings.  One would have had to set the minimum DK to -1 or lower for Farmies to get to buy.  With a setting at zero, Farmies still could not have bought.

Second, no one could buy them after they had used it the maximum number of times per DK....even AFTER a DK.

To fix the first problem...
line 115
Code:
if (get_module_pref("detPot")<get_module_setting("limithold") && get_module_pref("useddk")<get_module_setting("limitusedk") && $session['user']['dragonkills']>get_module_setting("mindk")){

Becomes

Code:
if (get_module_pref("detPot")<get_module_setting("limithold") && get_module_pref("useddk")<get_module_setting("limitusedk") && $session['user']['dragonkills']>=get_module_setting("mindk")){

To fix the second problem, add at line 63
Code:
module_addhook("dragonkill");

The CASE for "dragonkill" was there, but not the addhook, and so, the prefs never got reset at DK, as they should, and, so, once someone used a Death Door 3 times, they could NEVER AGAIN use one!!

Attached a zip of the corrected file here, or you can simply manually update your existing file with the coding provided.

« Last Edit: April 28, 2007, 11:52:22 PM by Kalisiin » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


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

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