DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 02, 2010, 09:46:36 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Race - Storm Giant  (Read 1639 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: February 07, 2005, 05:12:59 PM »

A race that is only aquireable through Donation points. No level barrier at all, just Donation Points.

Special to it, it has a boulder that it carries into battle, and throws at the enemy, and deals damage.

It will be in the next PR.
« Last Edit: February 08, 2005, 05:05:02 AM by Sichae » Logged

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

Kendaer
Global Moderator
Mod God
*****
Offline Offline

Posts: 1806


Once a dragon, always a dragon


View Profile WWW
« Reply #1 on: February 07, 2005, 10:18:10 PM »

A race that is only aquireable through Donation points. No level barrier at all, just Donation Points.

Special to it, it has a boulder that it carries into battle, and throws at the enemy, and deals damage.

http://dragonprime.net/users/Sichae/racestorm.zip

Just as a note, this was added to the core when Sichae first wrote it, and I have made some minor tweaks to it there Sichae, so you might want to look at that Smiley
Logged

Ex co-developer of LotGD
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: February 08, 2005, 05:07:40 AM »

Just as a note, this was added to the core when Sichae first wrote it, and I have made some minor tweaks to it there Sichae, so you might want to look at that Smiley

Well, I guess all will have to wait for the next PR in order to see these minor tweaks then, since it is not put up in your shared folder. ^_^

Thanks for adding it to core Kendaer.
« Last Edit: February 08, 2005, 05:08:38 AM by Sichae » Logged

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

knuckles
Guest
« Reply #3 on: September 13, 2007, 08:47:06 PM »

I have a question about this module, and forgive me if I'm posting it in the wrong place -- perhaps it should be posted in the core section.

I would like my user to be able to purchase this race for points, but I do not want it to be available for them after a DK.  Basically, my server is pretty small, so I want people to be able to get a 'one-time use' out of storm giant, since it's pretty powerful compared to the base races.  As it stands now, a user can purchase it and then it is available to them from now on (I since raised the cost of this race, but on the current users it's pointless).  Is there an easy way to do this?
Logged
Iori
Mod God
*****
Offline Offline

Posts: 822


View Profile WWW
« Reply #4 on: September 14, 2007, 04:02:20 AM »

In the install function of the module, add a line :
Code:
module_addhook("dragonkilltext");

In the dohook function, add this into the switch in order to reset the "bought" pref for the user whenever they DK:
Code:
case "dragonkilltext":
set_module_pref("bought",0);
break;

That's all you need to make it "one-time" use  Smiley
Logged

rolland
Guest
« Reply #5 on: September 14, 2007, 04:14:04 AM »

Change
Code:
case "chooserace":
if ($bought == 1){
output("<a href='newday.php?setrace=$race$resline'>Over the mountains of %s</a>, the city of dwarves, your race of `#Storm Giants `3dwell in the caverns.",$city, true);
output("They are the masters of the Mountain Halls, and hold all at their command.`n`n");
addnav("`^Storm Giant`0","newday.php?setrace=$race$resline");
addnav("","newday.php?setrace=$race$resline");
}
break;
to
Code:
case "chooserace":
set_module_pref('bought', 0);
break;
« Last Edit: September 14, 2007, 04:16:03 AM by Rolland » Logged
Iori
Mod God
*****
Offline Offline

Posts: 822


View Profile WWW
« Reply #6 on: September 14, 2007, 05:46:03 AM »

Yes, that way is better. Go Rolland!  Grin
Logged

Elessa
Faerie
Mod God
*****
Offline Offline

Posts: 3578


short, sweet and to the point


View Profile WWW
« Reply #7 on: September 14, 2007, 08:03:23 AM »

a reminder that this is a core module.

changes are not "officially" supported.

 Wink
Logged

Uuma ma ten rashwe, ta tuluva a lle

Play the latest beta version here on LoGD DragonPrime - Axebridge
knuckles
Guest
« Reply #8 on: September 14, 2007, 11:24:23 PM »

Thanks so much guys!
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!
Who's Online
30 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search