DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: lonnyl on October 01, 2004, 07:12:24 AM



Title: Voodoo Priestess for 98
Post by: lonnyl on October 01, 2004, 07:12:24 AM
Here is the Voodoo Priestess for 0.9.8.   Curse of death is confugurable... off by default.... Curses now happen instantly...  One can no longer cast a spell on oneself.  Can be cursed only 1 time per day and can only curse 1 person per day.  

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=25


Title: Re:Voodoo Priestess for 98
Post by: brookstech on October 08, 2004, 10:20:15 AM
When you cast a good spell on someone, it still calss it a curse...


Title: Re:Voodoo Priestess for 98
Post by: Jim on October 08, 2004, 01:17:38 PM
Is there a way to anchor her down to just one city?


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on October 08, 2004, 06:57:12 PM
Updated... (ver 1.2) now with admin selectable city....  ;D


Title: Re:Voodoo Priestess for 98
Post by: Jim on October 08, 2004, 08:08:04 PM
you rock!


Title: Re:Voodoo Priestess for 98
Post by: Jim on October 09, 2004, 05:32:02 AM
When I try to set the city it says 'Where does the Abandonded Castle appear' and I can't find the shop.


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on October 09, 2004, 05:45:13 AM
Hehehehe.... think I was doped up on Cold Medecine when I did that.... updated (ver 1.3) to fix the screwup in 1.2....


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on October 10, 2004, 07:01:12 AM
updated to ver 1.4, now with db prefix compatability...  ;D  

Ooooo  DejaVu.... bet you have seen that message before!


Title: Re:Voodoo Priestess for 98
Post by: Jim on October 10, 2004, 07:54:17 AM
You sure are keeping me busy this morning with all of these updates!  :o


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on October 14, 2004, 08:46:56 AM
Updated (ver 1.5) now translation ready....


Title: Re:Voodoo Priestess for 98
Post by: WebPixie on November 15, 2004, 12:10:30 AM
http://dragonprime.net/users/WebPixie/voodoopriestess98.zip

Added alignment to this mod for those who have basic alignment mod installed.  If you curse someone you lose alignment points, you put a good spell on them you gain alignment points. Also made it so when you curse/spell them it says either "curse or spell".



Title: Re:Voodoo Priestess for 98
Post by: lonnyl on December 21, 2004, 07:48:08 AM
Updated to ver 1.71... with Webpixies additions and a little tweak to reduce sql queries on the game....


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on February 10, 2005, 06:30:52 AM
Updated to ver. 1.8..... now detects odor, usechow, and bladder modules and offers curses for those stats.....

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=25


Title: Re:Voodoo Priestess for 98
Post by: sixf00t4 on February 25, 2005, 11:02:10 AM
line 67 needs the max hitpoints check.  atleast the amount you want to deduct + 10* player level.


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on February 27, 2005, 06:03:15 AM
Done.....

Ver. 1.82
http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=25


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on March 01, 2005, 04:28:56 PM
Updated to ver 1.83.....  now searches colored names properly...


Title: Re:Voodoo Priestess for 98
Post by: Arvex on July 18, 2005, 11:15:28 AM
Hello.

I've just installed Version 2.1 from your site, and haven't had it before. But it doesen't work how it should be. Users can't cast a curse or a spell. When they hit 'Submit' they get a 'badnav.php' Link. Maybe this occurs, while the game runs under a subdomaine, or what can be the problem?

regards, Arvex


Title: Re:Voodoo Priestess for 98
Post by: lonnyl on July 20, 2005, 05:30:20 AM
Not sure why you would get a badnav... I just looked through the code and everything appears to be ok... It also is working for me......


Title: Re:Voodoo Priestess for 98
Post by: XChrisX on July 20, 2005, 05:59:27 AM
Might have something to do with "register globals" turned on or off... You are using $_GET['spell'] e.g. for cerating the navs.

Maybe Arvex is running a PHP version prior to 4.1.0, where $_GET wasn't implemented yet. So, there won't be an error, but the value might be NULL.

Just an idea...


Title: Re:Voodoo Priestess for 98
Post by: Arvex on July 20, 2005, 07:48:25 AM
Hello,

No, I'm running PHP Version 4.3.3. But I'll check the 'register globals' setting, maybe this is the reason. I'll report later, if changing the setting works.

regards, Arvex


Title: Re:Voodoo Priestess for 98
Post by: Penbrock on June 02, 2006, 11:46:18 PM
Not sure why you would get a badnav... I just looked through the code and everything appears to be ok... It also is working for me......
I am getting the same thing. Is this just for LotGD version .98 or is it OK to use it on 1.06?


Title: Re: Voodoo Priestess for 98
Post by: Iori on May 05, 2007, 10:39:28 PM
In lib/voodoopriestess.php,

change line 131 to
Code:
increment_module_pref("alignment",2,"alignment");

and change line 136 to
Code:
increment_module_pref("alignment",-2,"alignment");


Iori, this is not a discussion thread for Voodoo Priestess, and your correction is likely to go unnoticed and unactioned.  Please post your suggestion here (http://dragonprime.net/index.php?topic=930.0) with a brief explanation of why the change is necessary.

Thanks

The change is needed here due to the fact that the game cannot find the function align(), and therefore will throw an error and not let the player proceed any further when choosing to use spells that modifies alignment. (An alternative fix is to point the module to the file where align() is defined)


Title: Re: Voodoo Priestess for 98
Post by: Stryfe on May 20, 2007, 04:37:13 PM
Fatal error: Call to undefined function: align() in /home/www/firestorms.freehostia.com/modules/lib/voodoopriestess.php on line 131

i get this error when you click on the intended players name for the curse. how do i fix it? ( Mind i cant code and stuff so i'd appreciate as much help as possible please)


Title: Re: Voodoo Priestess for 98
Post by: Talisman on May 20, 2007, 04:41:38 PM
Fatal error: Call to undefined function: align() in /home/www/firestorms.freehostia.com/modules/lib/voodoopriestess.php on line 131

i get this error when you click on the intended players name for the curse. how do i fix it? ( Mind i cant code and stuff so i'd appreciate as much help as possible please)

Ummm...did you READ and FOLLOW the instructions in the post immediately preceding yours?


Title: Re: Voodoo Priestess for 98
Post by: Stryfe on May 21, 2007, 10:10:39 AM
urm no i didnt, but its fixed now. Thanks :)


Title: Re: Voodoo Priestess for 98
Post by: Diego6666 on July 22, 2007, 09:24:54 PM
This might be a stupid question :P....but I have to ask, I have came across a lot of this Align modules that  don't have or need more string of code added to it, and the codes are found and posted in the disscusion thread, but yet the module is not updated and fixed, so when somebody downloads the module and installs it they end up with a problem that has already been addressed, why not just add the fix to the module instead of leaving a module that does not work on here?



and I am not trying to be sarcastic or anything, I really want to know.


Title: Re: Voodoo Priestess for 98
Post by: ShadowRaven on July 22, 2007, 09:34:26 PM
There are probably 100+ modules that might use alignment.
So unless some really bored person with no life and alot of time on their hands wants to go through every single module that needs that line of code and edit it or the author of the module does it, we will have to deal with people who don't search and find the answer to this particular problem before posting about it. ;)

Also most of the modules that need these edits, the author is no where to be found anymore to make the updates.


Title: Re: Voodoo Priestess for 98
Post by: Diego6666 on July 22, 2007, 09:38:12 PM
Alright understandable,

OK so...if some one was to put the fix in, would that person just post it in the origanal thread, or make a new one?

and perhaps this better go into a different thread?
sense it is not about this module, but all of them in general


Title: Re: Voodoo Priestess for 98
Post by: ShadowRaven on July 22, 2007, 09:40:59 PM
I would think it would be better to post the fixed module attachment in the original thread, so it would be easier to find in a search and we wouldn't have 2 threads going for the same module.


Title: Re: Voodoo Priestess for 98
Post by: Diego6666 on July 22, 2007, 09:42:46 PM
Alright then, :)

Thank you very much ma'am


Title: Re: Voodoo Priestess for 98
Post by: Elessa on July 22, 2007, 09:54:08 PM
I would think it would be better to post the fixed module attachment in the original thread, so it would be easier to find in a search and we wouldn't have 2 threads going for the same module.

shadowraven is correct.   :)

the best thing is to attach a corrected file to the original thread.  we really do not need two or three threads for a single module.  it becomes too confusing.


Title: Re: Voodoo Priestess for 98
Post by: Diego6666 on July 23, 2007, 10:44:26 AM
Alright then, here is the fixed voodoo priestess module,

:)


Title: Re: Voodoo Priestess for 98
Post by: Afkamm on March 30, 2008, 08:33:57 PM
Anyone else think that vitality should give max_hp instead of turns? :)


Title: Re: Voodoo Priestess for 98
Post by: Elessa on March 30, 2008, 08:55:48 PM
Anyone else think that vitality should give max_hp instead of turns? :)

isn't vitality associated with energy hence turns, whereas strength is associated with HP?  that is how i conceptualise the difference.



Title: Re: Voodoo Priestess for 98
Post by: Nightborn on March 31, 2008, 01:19:35 AM
 ;D  simply don't use it.


Title: Re: Voodoo Priestess for 98
Post by: Afkamm on March 31, 2008, 05:40:19 PM
The vitality potion cedrik has gives max_hitpoints, his health potion gives hitpoints. It gets confusing when vitality/strength/health/etc mean different things in different modules. :-/

No matter, I've told my clan members to spell each other when they have the gold. heh. :)


Title: Re: Voodoo Priestess for 98
Post by: Afkamm on June 24, 2008, 01:28:39 PM
I always thought it weird that this module was coded to only give one spell/curse to a person at a time, but allowed people to keep cursing them, the last one over writing the previous.

Turns out that it shouldn't be this way and you're supposed to get a message saying you can't curse someone when they've already been cursed and haven't yet collected.

A little letter is at fault.

Code:
#
#-----[ OPEN ]-----
#
/modules/voodoopriestess/voodoopriestess.php

#
#-----[ FIND ]-----
#
if (get_module_pref('today','voodoopriestess',$row['acctid'])){

#
#-----[ REPLACE WITH ]-----
#
if (get_module_pref('ctoday','voodoopriestess',$row['acctid'])){

Pesky little letter c. :D

Edit: Thanks White Knight for pointing out my error. :)


Title: Re: Voodoo Priestess for 98
Post by: White Knight on June 24, 2008, 02:50:53 PM
I always thought it weird that this module was coded to only give one spell/curse to a person at a time, but allowed people to keep cursing them, the last one over writing the previous.

Turns out that it shouldn't be this way and you're supposed to get a message saying you can't curse someone when they've already been cursed and haven't yet collected.

A little letter is at fault.

Code:
#
#-----[ OPEN ]-----
#
/modules/voodoopriestess/voodoopriestess.php

#
#-----[ FIND ]-----
#
set_module_pref('ctoday', true, 'voodoopriestess', $row['acctid']);

#
#-----[ REPLACE WITH ]-----
#
set_module_pref('today', true, 'voodoopriestess', $row['acctid']);

Pesky little letter c. :D

Quote
Code:
"ctoday"=>"Cursed Today,bool|0",

...so the fix is actually the other way around!  ;)


Title: Re: Voodoo Priestess for 98
Post by: Afkamm on June 24, 2008, 03:34:34 PM
I was going with the line above which didn't have the letter 'c' and assumed it was correct.

I've edited the post above to show the correct line being changed. :D

I've also made some small changes to that area, I'll attach the file once I can test it. :)

© 2017 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines