DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 17, 2018, 04:16:31 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Amulets  (Read 15171 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: April 08, 2005, 05:02:59 AM »

Amulets - by Lonny Luberts @ http://www.pqcomp.com

Amulets Module for lotgd 1.0.0+

Adds a Forest special where 33% of the time (when a player gets the special) a player has a chance of being awarded an amulet.  If the amulet is already owned by someone there is a chance that the amulet is taken from the owner and given to the new owner.  There are 20 amulets, each with it's own unique power.  Some give battle buffs in the form of attack, defence, or healing.  Others give boons upon newday, and still more give boons in other areas of the game.  Makes for a hard to attain and much cherished item for your players.  Also adds Hall of Fame stats for amulets.

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=90
« Last Edit: April 08, 2005, 05:04:42 AM by lonnyl » Logged
lonnyl
Guest
« Reply #1 on: April 09, 2005, 06:31:57 AM »

Updated to ver 1.02...

Now has admin setable god name, admin setable percentages, and keep after dragonkill setting.  

Logged
umk
Member
Militia
**
Offline Offline

Posts: 97


PHP Student


View Profile WWW
« Reply #2 on: April 10, 2005, 08:02:33 PM »

why not make it so that you can find some #max# total of amulets for the whole server, and if the #max# amount is already found, then other players won't be able to find new ones anymore, and when a player who has an amulet dies, then that amulet has a chance of being lost and other players can then have a chance of getting it?

Logged

lonnyl
Guest
« Reply #3 on: April 11, 2005, 05:09:46 AM »

You can already somewhat accomplish this... set the amulet to be lost at dragon kill..... and set the chance of taking the amulet away from someone to 0.
Logged
umk
Member
Militia
**
Offline Offline

Posts: 97


PHP Student


View Profile WWW
« Reply #4 on: April 11, 2005, 07:43:26 PM »

ah... yes. you are right.. this is a great mod  Grin
can you add an additional setting so when someone who has a amulet dies they have an X%chance of losing it?

also, what if a user already has an amulet, can they find another one?
Logged

ChAoS
Guest
« Reply #5 on: April 11, 2005, 07:46:05 PM »

if the find a better one perhaps they should have the option of discarding their current one. I think users should be limited to one only though
« Last Edit: April 11, 2005, 07:46:20 PM by ChAoS » Logged
umk
Member
Militia
**
Offline Offline

Posts: 97


PHP Student


View Profile WWW
« Reply #6 on: April 11, 2005, 07:51:41 PM »

if the find a better one perhaps they should have the option of discarding their current one. I think users should be limited to one only though

yep i agree... thats why i'm asking if they can still find a new amulet when they have one already. Smiley
it should not matter if the new amulet is better or worse than the current. the player would chose if he wants to keep the current or the new amulet..
Logged

Turock
Guest
« Reply #7 on: April 11, 2005, 08:24:06 PM »

Cool, just like the aris stones in .9.7!  I was planning on converting the aris stones to 1.0.0 but now I don't have to.  Sweet!
Logged
Turock
Guest
« Reply #8 on: April 11, 2005, 10:05:08 PM »

I had an admin that installed this module and after installing the module they went to settings and got the "you tried to hack superuser pages".

-- Edit:
Must be the admin.  I can't seem to reproduce the problem.
« Last Edit: April 12, 2005, 01:03:09 PM by Turock » Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #9 on: April 12, 2005, 03:05:17 AM »

Cool, just like the aris stones in .9.7!  I was planning on converting the aris stones to 1.0.0 but now I don't have to.  Sweet!
just cuz lonny did this one, doesn't mean aris stones wouldnt still be cool.
Logged

dalechou
Guest
« Reply #10 on: May 10, 2005, 04:14:32 AM »

Hey, noticed something strange today...  This happened on my server.  

Quote
Assassin Revenant has recieved the Hermes Amulet!

Shamrock Amulet - No One
Triquetra Amulet - No One
Heart Amulet - No One
Cross Amulet - Assassin Revenant
Ankh Amulet - No One
Pegasus Amulet - No One
Unicorn Amulet - No One
Pheonix Amulet - No One
Flying Dragon Amulet - No One
Yinyang Amulet - No One
Artemis Amulet - No One
Horace Amulet - No One
Star of Solomon Amulet - No One
Salamander Amulet - No One
Bastet Amulet - No One
Thor Amulet - No One
Anubis Amulet - No One
Apollo Amulet - No One
Dionysos Amulet - No One
Hermes Amulet - No One

Might've been a wrong description or something.  Grin
Logged
lonnyl
Guest
« Reply #11 on: May 10, 2005, 04:37:11 AM »

I'm not entirely sure how that could have happened (if you are running the newest version(.

The module uses the name of the amulet and passes that through a function to set everything... so the name that is put in the news is the same text that is used to set the amulet owner and so on......
Logged
dalechou
Guest
« Reply #12 on: May 10, 2005, 05:37:54 AM »

I think I may have found out what's wrong.  Please correct me if I'm wrong though, as this is my very first time reading through source codes...  Smiley

Code:
function amulets_giveamulet($amulet){
   global $session;
   set_module_setting($amulet,$session['user']['acctid']);
   set_module_pref('amulet',$amulet);
   $amulet = ucfirst($amulet);
   if ($amulet == "Dragon") $amulet = "Flying Dragon";
   if ($amulet == "Star") $amulet = "Star of Solomon";
   output("You have been given the %s Amulet!`n",$amulet);
   addnews("`#%s has recieved the Hermes Amulet!`n",$session['user']['name']);
}

Maybe the last line before closing should be:
Code:
addnews("`#%s has recieved the %s Amulet!`n",$session['user']['name']);
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 #13 on: May 10, 2005, 05:39:41 AM »

Code:
addnews("`#%s has recieved the %s Amulet!`n",$session['user']['name'],$amulet);

Smiley
Logged

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

lonnyl
Guest
« Reply #14 on: May 10, 2005, 05:43:08 AM »

Ugh.... how did I miss that....  Shocked

update coming really soon.....
Logged
Pages: [1] 2 3 ... 5   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!
Recent Topics
DragonPrime LoGD
Who's Online
41 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search