DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 02, 2010, 09:41:50 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: means for favor  (Read 1145 times)
0 Members and 1 Guest are viewing this topic.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« on: February 18, 2004, 02:31:28 PM »

i have people complaining about not getting 10 torments  for everytime they die. I was thinking about adding another way to get favor, like doing Ramius' bidding, like getting him coffee, shining his shoes, etc.  

maybe even have a zombie in the forest that gives you favor?  

any other ideas?  is there a mod out there that does this already?
Logged

Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #1 on: February 18, 2004, 03:42:32 PM »

Heres a special - necromancer.php
Can use this to base others on.

Code:
<?
if (!isset($session)) exit();
if ($HTTP_GET_VARS[op]==""){
  output("`@You encounter a strange old man! His eyes are sunken in, and he has what looks like a permanent scowl fixed on his face. You feel an evil radiating off of him.`n`n");
    output("He see's you and says, \"`#Ahh... Come here me little ".($session[user][sex]?"lassy":"laddy").". 'Tis fearfull dangerous out in these woods, don't y' know?`@\"`n`n");
   output("Will you do as he says and go to him? You know that if you do you'll lose a forest fight.");
   output("`n`n<a href='forest.php?op=necromancer'>Walk to
him</a>`n<a href='forest.php?op=leave'>Leave him here</a>",true);
   addnav("Walk to him","forest.php?op=necromancer");
   addnav("Leave him here","forest.php?op=leave");
   addnav("","forest.php?op=necromancer");
   addnav("","forest.php?op=leave");
   $session[user][specialinc] = "necromancer.php";
}else if ($HTTP_GET_VARS[op]=="necromancer"){
  $session[user][turns]--;
   output("`@Regardless of his obviously evil nature, you walk up to the old man. As you approach him, his face twists ");
   output("into an evil grin. ");
   switch(e_rand(1,15)){
     case 1:
         output("When you reach him he mutters, \"`#Didn't y' own mother teach you never t' talk t' strangers?`@\" The old necromancer cackles an evil laugh and pulls out a ");
      output("black wand and waves it over your head. You feel a searing pain as your spirit is ripped from your ");
      output("body.");
      output("`n`n`^Your spirit has been ripped from you body!`n");
      output("That treacherous old man searches your body and takes all your gold!`n");
      output("You loose 15% of experience.`n");
      output("You may continue playing again tomorrow.");
      $session[user][alive]=false;
      $session[user][hitpoints]=0;
      $session[user][experience]*=0.85;
      $session[user][gold] = 0;
      addnav("Daily News","news.php");
      addnews($session[user][name]."'s body was found in the woods, completely stripped of all gold.");
      break;
   case 2:
   case 3:
       output("When you reach him he mutters, \"`#Aye, me ".($session[user][sex]?lass:lad).", come a wee bit closer. That's it just a bit CLOSER!`@\" ");
      output("As old necromancer screams that last word, he pulls out a black wand, and racks your body with pain. ");
      output("It's like molten fire running through your bones, blood and skin. Just as death seems to grip you, ");
      output("the pain stops. You get up, shakking from the pain. The old necromancer is no where in sight. You feel ");
      output("like you'll never be what you used to be before you met that old man...");
      if ($session[user][maxhitpoints]>1){
         $session[user][maxhitpoints]-=1;
         output("`n`n`^You `bpermenantly`b loose one hitpoint!`n");
      }
      output("Your hitpoints are reduced to one!`n");
      $session[user][hitpoints]=1;
      addnews($session[user][name]." came home from the forest, a bit less than what ".($session[user][sex]?she:he)." used to be.");
      break;
   case 4:
   case 5:
   case 6:
   case 7:
        output(" When you reach him he mutters, \"`#A gem for me own self, yes?`@\"`n`n");
        output("Do you give him a gem?");
      output("`n`n<a href='forest.php?op=GiveGem'>Give him a Gem</a>`n<a href='forest.php?op=KeepGem'>Keep your Gems</a>",true);
      addnav("Give him a Gem","forest.php?op=GiveGem");
      addnav("Keep your Gems","forest.php?op=KeepGem");
      addnav("","forest.php?op=GiveGem");
      addnav("","forest.php?op=KeepGem");
      $session[user][specialinc] = "necromancer.php";
      break;
   case 8:
   case 9:
   case 10:
   case 11:
   case 12:
   case 13:
   case 14:
   case 15:
      output("You are almost in front of him, when you here a crashing sound come from your right. You turn to look ");
      output("see one of the village gaurds walking through the woods, heading back to the village. You turn back to ");
      output("the old man, but it seems that the noise had scared him off. Oh well, you'll never know what he wanted ");
      output("now.");
      break;
}

   //addnav("Return to the forest","forest.php");
}else if ($HTTP_GET_VARS[op]=="leave"){
  output("`@Fearing the evil power radiating from the man, you turn around and run as fast as you can! ");
   //addnav("Return to the forest","forest.php");
   $session[user][specialinc]="";
}else if($HTTP_GET_VARS[op]=="GiveGem"){
  if ($session[user][gems]>0){
    output("`@Fealing sorry for the old man, you give him one of your hard earned gems. He snatches it away from you and ");
     switch (e_rand(0,5)){
       case 1:
      case 2:
      case 3:
      case 4:
        output("cackles with glee. He turns to you and says, \"`#Since y' made such a fine bargin me ");
         output(($session[user][sex]?"deary":"lad").", I'll be putting in a good word for y' with me ol' friend");
        output("`$ Ramius`#.`@\"`n The necromancer pulls out a black wand from behind his back, raps you on the head, ");
        output("and runs off into the forest.`n`n");
        $favor = e_rand(5, 35);
        output("`^You gain `&$favor`^ favor with`$ Ramius`^, Overlord of Death.");
        $session[user][deathpower] += $favor;
        $session[user][gems]--;
        debuglog("gained $favor favor from a necromancer");
          break;
      case 5:
         output("runs off into the forest. That greedy lttle thief stole your gem!");
        $session[user][gems]--;
        debuglog("lost one gem to an old man");
     }
  }else{
     output("`@You reach into your pack to find that you have no gems. The old man looks at you expectantly. When he sees ");
      output("that you have no gems, he starts to frown. Sensing trouble, you turn tail and flee the scene.");
  }
}else if ($HTTP_GET_VARS[op]=="KeepGem"){
  output("`@Not wanting to part with one of your precious gems, you turn around and march back into the forest.");
   //addnav("Return to the forest","forest.php");
   $session[user][specialinc]="";
}
?>

Logged
strider
lord of Legendgard
Administrator
Codemeister
*****
Offline Offline

Posts: 394


Lord of Legendgard


View Profile WWW
« Reply #2 on: February 18, 2004, 09:20:55 PM »

The system to create favor is pretty easy, and I'm sure you can go a dozen different ways. . . The STORY to create favor is a little more challenging so instead of offering code (which looks like Knatfield has given an excellent example), I'll offer some story ideas.

Taking a note from the Greek Myths where Ramius is obviously Pluto, why not have the same sort of challenge put to Orpheus

Orpheus went to Hades seeking favor, (the return of his wife), and Hades granted that favor on the condition that he went the long way back to the world, walking up through the tunnels of the underworld and never looked back. In the tale of Orpheus. . . Orpheus walked for what seemed like endless hours in silence, but felt he was the butt of Hades' joke. When he finally saw the light of the world at the end of the tunnel, several yards from the exit, he turned around to see his wife following silently in his shadow. As their eyes met, she screamed but once before she was pulled back into the land of shades and the laughter of Ramius echoing in the bowels of the Earth.

Using this, perhaps we can have the player go on a long walk, a 50% chance of actually making it to the upper world and losing 5 torments, or turning around, glancing over the shoulder to hear Ramius' laughing it up as they're pulled back down. Tis a chance someone might take when they've got less than 5 torments left or if they're just in a rush to get back. Either way, it'd make it only possible for them to rez twice and possible that they lose all their torments in one shot.
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1009


LoGD Buff!


View Profile WWW
« Reply #3 on: March 01, 2004, 10:26:08 PM »

Our High Priest in our Monastery does blessings for a donation, player can receive favor. Some players like this and see it as *insurance* for if/when they die.

When I'm 100% happy with our Monastery - I'll put it into the file area - still working on it and tweaking bit by bit based on the players feedback.
Logged

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #4 on: March 02, 2004, 09:32:12 PM »

well, i wrote a tunnels option.  let me know what you think and ideas to improve it.
http://dragonprime.cawsquad.net/users/sixf00t4/tunnel.zip

right now it costs 5 torments to Hades to take the tunnels

3/10 chance that you will get stuck in the tunnel and Hades pulls you out and tells you to get lost

5/10 chance an imp will go tell Ramius on you, and you will lose all favor with Ramius, and i
borrowed the imp idea from Robert, and an imp will watch you.

2/10 chance that you will make it to the exit on the other end, and a 50% chance of finding a gem in the bones of a farmboy who had looked back Smiley
Logged

Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #5 on: August 13, 2004, 03:21:54 PM »

well, i wrote a tunnels option.  let me know what you think and ideas to improve it.
A small improvement for server where it's implemented the marriage garden from Anpera.

Replace:
Code:
if ($HTTP_GET_VARS[op]==""){
      output("`7You approach `4Hades `7 who stands before the mouth of the tunnels.`n");
      output(" You are lonely, and miss `%Violet, `7you ask if there is anyway to return to earth.`n");
      output(" `4Hades `7will grant you `&Life `7but you must take the long way through the tunnels back to the surface. `n");
      output(" You must not look back or you will lose 5 torments.`n");
      output(" The choice is yours. `n");
      addnav("Take the tunnel","tunnel.php?op=agree");
      addnav("Never mind","graveyard.php");
with this:
Code:
$sposo=$session['user']['marriedto'];
$sql = "SELECT name FROM accounts WHERE acctid = $sposo";
$result = db_query($sql) or die(db_error(LINK));
$row = db_fetch_assoc($result);
if ($HTTP_GET_VARS[op]==""){
      output("`7You approach `4Hades `7 who stands before the mouth of the tunnels.`n");
      output(" You are lonely, and miss your `%");
      if ($session['user']['charisma']==4294967295){
         if ($session['user']['marriedto']==4294967295){
            output("".($session[user][sex]?"husband Seth":"wife Violet")."");
         }else{
             output("".($session[user][sex]?"husband":"wife")." $row[name],");
         }
    }else if ($session['user']['marriedto']==4294967295){
        output("love ".($session[user][sex]?"Seth":"Violet").",");
    }else {
        output("love $row[name]`7, you ask if there is any way to return to earth.`n");
        }
This modification will display the name of your wife/girlfriend (husband/boyfriend) if your married/in love with another player, the name of Violet/Seth or simply "your love" if you're not in love with someone else Wink

Rgds Excalibur
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #6 on: August 13, 2004, 04:44:51 PM »

and who said you could modify my work?!  IT WAS PERFECTION!!! Tongue

great addition.  I like when someone modifies someone else's work.  thanks for sharing.
Logged

Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #7 on: August 14, 2004, 04:53:00 AM »

and who said you could modify my work?!  IT WAS PERFECTION!!! Tongue
Ops, sorry my Lord  Grin Grin

Quote
great addition.  I like when someone modifies someone else's work.  thanks for sharing.
It's since you've realeased this module that I've modified it, but I've thought to share it only yesterday, I'm so lazy lately  Tongue

Glad you like it, it's always nice to see that someone else like your job  Wink

Rgds Excalibur

P.S. I'm beta testing a new mod created by a co-admin of my server, it will be released in few days, but it's in italian, so I need some help to clean it up after my english translation ... anybody wants to help me ?
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Pages: [1]   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!
Who's Online
30 Guests, 1 User
ThricebornPhoenix
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search