DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 31, 2010, 03:50:16 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: 2 hook questions  (Read 1521 times)
0 Members and 1 Guest are viewing this topic.
R4000
Guest
« on: January 22, 2006, 05:54:29 AM »

1) is there a hook for when you win a battle, but AFTER the exp is given, cause i can hook now, but its before the exp is given xD

2) is there a list of hooks? Tongue

thx for the help. my new module is about 99% i just need a hook for after xp.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4652

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: January 22, 2006, 05:59:51 AM »

1) No, there is not, but if you need the total amount of experience, you could calculate yourself... Wink

2) Search *all* files in your lotgd folder for "modulehook("... Smiley That will give you the list (No, there is no other list yet...)
« Last Edit: January 22, 2006, 06:00:12 AM by XChrisX » Logged

Running for more than three years now:
R4000
Guest
« Reply #2 on: January 22, 2006, 06:03:35 AM »

1) ugh
2) ugh

xD

ill just hack the core a lil for number 1 and ill try compiling a list of hooks for u all when i can xD
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 #3 on: January 22, 2006, 07:35:34 AM »

Number 1, you can use battle-victory then add to the person's EXP. If you want to modify the creature's EXP prior to battle, use creatureencounter.

For Number 2, you can run this SQL to see what hooks are in use on your server, which compiles a very nice list.
Code:
SELECT DISTINCT location FROM module_hooks ORDER BY location ASC
« Last Edit: January 22, 2006, 07:36:44 AM by Sichae » Logged

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

R4000
Guest
« Reply #4 on: January 22, 2006, 12:13:11 PM »

1) well ill explain more below
2) thx!

well im making a system to give boosts to XP and damage and questpoints ect.
its done now, but i had to hack some core code to let me multiply values but that makes it unportable so i needed a hook so i could multiply it.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4652

Be aware of the squirrel!


View Profile WWW
« Reply #5 on: January 22, 2006, 12:51:40 PM »

The hook you need is "creatureencounter" - as Sichae already stated.

Modify the $args array and you can alter every value of the $badguy-array Wink
Logged

Running for more than three years now:
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
24 Guests, 1 User
spector
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search