DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • January 19, 2018, 07:22:09 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: Dark Slayer's Guild 1.0  (Read 13011 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: December 29, 2004, 03:56:18 AM »

After 27 ressurections, many bottles of soda, no sleep... it is done. *is all about dramatics*

Backstory: My friend Leon (Playing name, not from LG), he always talks about the Dark Slayers... so I was running through Ideas, and I tripped over Dannic... talking about the Graveyard creatures... and it got me thinking, "Those monkeys should stay in the graveyard... let's give a bonus to those that dispose of them... call 'em the Dark Slayers."

Well, this has a couple of cool functions...:
  • Increase Specialty
  • Forge a Gem
  • Increase Hitpoints
  • Increase Attack/Defense
All have Admin Configurable "Soul Costs"

Also has a cute little function for the person's Bio, stating that they are part of the Dark Slayers...

Upon joining, the person's alignment (if active) takes a huge dive... and if they attack an innocent it goes dow. Innocents are the ones that don't belong back in the graveyard. Also, HP(not Max) is dropped by 10 per innocent killed.

Option to relinquish the Guild is in there, but may kill the person, if they have no souls left over to sustain the tattoo removal. ^.^

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=31

Hope you all have fun!
« Last Edit: July 07, 2006, 02:22:03 PM by Sichae » Logged

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

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 #1 on: December 29, 2004, 04:33:20 AM »

Added a bit more.

Leon takes half of the gems on hand, and stores them until a person wishes to leave the guild.

Also some options are deadly...

Users that have souls, might find a bit of gold taken from their bank account to repair the village caused by people being scared of the souls/you. ^.^ (Admin selectable multiplier)

DB prefix and Translation compatable.

Same Link
« Last Edit: December 29, 2004, 04:37:44 AM by Sichae » Logged

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

Dannic
Guest
« Reply #2 on: December 29, 2004, 06:41:27 AM »

well what do ya know.  first time I battled in this one I get this.

Code:
Ghostly Woodsman slams against your Shield but has great trouble penetrating it.
Ghostly Woodsman tries to hit you but you RIPOSTE for 27 points of damage!
[-]

You have spilt the blood of an innocent!

You aren't sure how you did it, but you killed something that was already dead. Good for you.
You have slain Ghostly Woodsman!

Is it supposed to say both innocent and dead?
Logged
Dannic
Guest
« Reply #3 on: December 29, 2004, 07:12:27 AM »

Is there anyway to get this to work with some of the races as well?
Logged
Dannic
Guest
« Reply #4 on: December 29, 2004, 07:24:19 AM »

Added this to mine.  

Code:
"Player Access, title",
         "mindk"=>"How many DKs do you need before the guild is available?,int|0",
         "cost"=>"How many points do you need before the guild is available?,int|0",

Code:
module_addhook("pointsdesc");

Code:
case "pointsdesc":
      if ($cost >0){
         $args['count']++;
         $format = $args['format'];
         $str = translate("The Dark Slayers Guild is availiable upon reaching %s Dragon Kills and %s points.");
         $str = sprintf($str, get_module_setting("mindk"),$cost);
         output($format, $str, true);
      }
      break;

modified this:

Code:
case "village":
         $pointsavailable = $session['user']['donation'] - $session['user']['donationspent'];
         if ($session['user']['dragonkills'] < get_module_setting("mindk") || $cost > $pointsavailable)
            break;
         if ($session['user']['location'] == get_module_setting("slayerloc")) {
         tlschema($args['schemas']['marketnav']);
          addnav($args['marketnav']);
         tlschema();
         addnav("Dark Slayer's Guild","runmodule.php?module=slayerguild&op=enter");
      }
        break;

Add this just before the switch in the dohook() function

Code:
$cost = get_module_setting("cost");
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #5 on: December 29, 2004, 09:04:42 AM »

 (SELECT location FROM creatures WHERE creaturename='Someone's Grandfather'
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Grandfather'' at line 1)
thats what it is saying


Getting this error after installation.
Logged
Dannic
Guest
« Reply #6 on: December 29, 2004, 09:25:45 AM »

the apostrophe in Someone's is the problem.

Is that a stock creature?
« Last Edit: December 29, 2004, 09:27:55 AM by Dannic » Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #7 on: December 29, 2004, 09:33:54 AM »

Yes and normally works fine.
Logged
Damien
Guest
« Reply #8 on: December 29, 2004, 10:00:54 AM »

I installed this couple of hours ago and now I got post about prblem from a player on my server:

SELECT location FROM creatures WHERE creaturename='Dragon Slayer's ghost'
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's ghost'' at line 1

Is this even happening because of this module or have my players been lucky to avoid this creature in the forest... Smiley

- Damien
Logged
Dannic
Guest
« Reply #9 on: December 29, 2004, 10:07:08 AM »

no.  it has to do with a sql statement in the module.
Logged
Kendaer
Guest
« Reply #10 on: December 29, 2004, 10:21:14 AM »

Umm.m you shouldn't *ever* be selecting by creature name.

There can be multiple creatures with the same name and different stats!

You should *always* be using the creatureid..  If you don't know the creature id, then you have a different problem and there might be something that can be done.

If you are hooking on the battle-win/lose hooks (which I suspect you are) then you should be able to check $args['creatureid'] to get the id of the creature.
All forest and graveyard creatures have that field in them.

Dopplegangers (from the forest) of course, won't, so you'll want to check actually if (!is_set($args['creatureid'])) and if that's the case assume that it's someone who is 'alive' (ie, not a graveyard creature).

Hopefully this will help you out.
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 #11 on: December 29, 2004, 12:56:38 PM »

I am so freaking sorry... I was up at 4 AM, server was down... nothing to do... so I coded it out.

I know that Creature Name was not at all the right way to go, but I was extremely drowsy (I could barely type)

1.3 Now Here!
  • Includes Dannic's Changes.
  • Includes the checking for (isset, not is_set *_*) creatureid, not creaturename.
  • If doppleganger, sets location==0, which is alive...
  • Handles Death Better...
http://dragonprime.net/users/Sichae/slayerguild.zip
Logged

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

Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #12 on: December 29, 2004, 06:19:55 PM »

Excellent,
 Thanks for the quick update. I really like this mod, great idea.
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: December 29, 2004, 06:28:23 PM »

Excellent,
 Thanks for the quick update. I really like this mod, great idea.

You are quite welcome...

HUGE bug fixed. The way I had it, it would double a person's uses, not increase by one.

Same Link
Logged

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

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 #14 on: January 04, 2005, 01:37:59 PM »

New Version!

Forgot to have $args['name'] instead of $session['user']['name'] for the Bio.
Download Link put in!

Had to fix it, because the creatures table changes from PR11 to PR12...

Same Link
Logged

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

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
23 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search