DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • October 19, 2017, 02:51:17 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: *BETA* Magic Frog Forest Event  (Read 2661 times)
0 Members and 1 Guest are viewing this topic.
Rudiviss1
Guest
« on: January 25, 2005, 10:33:20 AM »

Hey Guys and thanks to robert [I used your script to learn how to code a bit, tell me if this is OK, if not, i'll remove the file immediately! Wink], this is my first EVER MOD for LOTGD and it is adapted from robert's wannabe knight script! I hope this works on everybodies LOTGD, it works on mine but I am hoping to add some more things to it when i have a bit more knowledge of php coding!

http://dragonprime.net/users/rudiviss1/magicfrog.zip I THINK AT THE MOMENT [may change soon! Sorry  Wink]

To install, simply drag into the specials folder in the LOTGD directory.

Please give me feedback! Thanks!

PS.
Is V 0.98 coding any different to 0.97???

Thanks,
Rudi
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 #1 on: January 25, 2005, 10:56:01 AM »

I do believe that 98 coding is much different of 97, as it requires not to many alterations of the core files and core databases, and usually holds all of the variables local.

Like in 97, to allow a person to hold a Blue Gem (New Currency) you could make an alteration to the accounts table, and add that is, referencing it as:
Code:
$session[user][bluegem]
But, in 98, you can store it in a pref:
Code:
"blue"=>"How many blue gems does this user have,int|0",
And increment it, when they reach a special or something:
Code:
$bluegem = get_module_pref("blue");
$bluegem++;
set_module_pref("blue",$bluegem);
Like so.

Then, you could hook (in the dohook) into charstats:
Code:
case "charstats":
$title = translate_inline("Personal Info");
$name = translate_inline("Blue Gems");
$amnt = get_module_pref("blue");
setcharstat($title,$name,$amnt);
break;
Instead of modding the core file, to make those apparent.

So, to answer your question, 98 and 97 are different, and I prefer 98 to 97 any day. ^_^

http://dragonprime.net/users/Rudiviss1/magicfrog.zip

The links in this Forum are case sensitive ^_^
« Last Edit: January 25, 2005, 10:56:35 AM by Sichae » Logged

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

Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5475



View Profile WWW
« Reply #2 on: January 25, 2005, 10:59:37 AM »

Although you gave Robert due credit in your announcement thread and in the zip popup message, you failed to credit him in the actual mod file as this is often the only thing people will see.  You must do this.
Logged

Play the latest beta version here on DragonPrime
Rudiviss1
Guest
« Reply #3 on: January 25, 2005, 11:05:50 AM »

Thanks very much guys, i'm just goin to edit the file now, and upload it again ASAP, thanks for resetting the link and the 098 coding etc.!
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!
Recent Topics
DragonPrime LoGD
Who's Online
23 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search