DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • June 18, 2013, 03:25:13 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Gems In Bank  (Read 1251 times)
0 Members and 1 Guest are viewing this topic.
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« on: June 22, 2011, 04:33:59 AM »

I want a module that appears on the side showing gems in bank like the Banked Gold module by Kurt P., fixes by SexyCook.   What that module does is add another line in personal info in char stats.  It shows the gold in your bank.  I don't like the modules that display gems in bank next to the on hand gems via putting them in parenthesis.  I would like it on a new line, like the Banked Gold module.  I'm stumped as to what code I need in the charstat case.  I've tried just gems but it shows gems on hand.  I haven't edited the author yet as I'm trying to fix it and get it working first.  Any help would be great.  I've posted the code for help.

Thank you in advance.
« Last Edit: June 22, 2011, 04:36:26 AM by Megan|SaraDayBella » Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #1 on: December 24, 2011, 12:33:18 PM »

Just wondering if anyone knows how to do it...
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #2 on: December 24, 2011, 04:18:22 PM »

Something like:
modulename_dohook($hookname,$args){
    switch(
$hookname){
        case 
"charstats":
            
output("Gems in Bank: %s",get_module_setting("gems"));
            break;
    ...
    }
    return 
true;
}
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #3 on: December 24, 2011, 05:16:01 PM »

That's not how to add a charstat.

File attached, enjoy  Smiley
Logged
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #4 on: December 24, 2011, 06:19:03 PM »

Damn Rars. I can't uncompress them currently. So I can't see why you think I'm wrong.
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #5 on: December 24, 2011, 07:36:15 PM »

Code:
<?php
setcharstat
("Personal Info","Banked Gems",$gems);
?>


You can't just output a stat.
Logged
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #6 on: December 24, 2011, 10:00:28 PM »

Have you ever tried? It works. I didn't even realize there was a function for that.
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #7 on: December 24, 2011, 10:17:17 PM »

No but i did try your code and it never worked.
Logged
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #8 on: December 25, 2011, 04:19:27 AM »

Thank you so much.  It works.  I didnt know that was my problem. But I conveniently converted both modules into one.  Thank you
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #9 on: December 25, 2011, 07:40:01 AM »

No but i did try your code and it never worked.
Brendan, it's pseudocode. It's not supposed to work.
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #10 on: December 25, 2011, 07:41:55 AM »

You don't understand, i tried just using output and it can't work like that.
Logged
Novelus|Grant|DarknessFalls
Captain of the Guard
***
Offline Offline

Posts: 229


Its not the beginning, or the end, that matters.


View Profile WWW
« Reply #11 on: December 25, 2011, 05:48:48 PM »

Perhaps I am confused. Arthur says it works. Brendan says it doesn't work. Can we figure if the hook would work or not? Or what? Geesh.
Logged

Not Nadez. Got it?
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #12 on: December 25, 2011, 07:05:22 PM »

I attached the file and Sara clearly stated that it works, can't you read?
Logged
Novelus|Grant|DarknessFalls
Captain of the Guard
***
Offline Offline

Posts: 229


Its not the beginning, or the end, that matters.


View Profile WWW
« Reply #13 on: December 25, 2011, 08:53:25 PM »

Slightly off topic, but I'd really like to know what your problem is lately, Brendan. You've been treating people like crap for a few weeks now. Not sure why you have an attitude, when someone is asking for clarification.

Now, back on topic. Lets simplify this. You had stated that Arthur's bit o'code was not working. He stated his did. I understand and saw that you posted the link. I was not referring to the link. I was referring to Arthur's solution. I did not look at the file you attached yet, as I am curious as to what Arthur's fix is first, before looking at your code.
Logged

Not Nadez. Got it?
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #14 on: December 25, 2011, 09:08:23 PM »

Arthur wants people to learn and he helps with snip its.  Kinda like hes a teacher.  Sometimes he will give the whole code.  Sometimes not.  All his code is missing is what is in Brendan's.  Its missing the $gems=blah.  Before the setcharstat bit o code.  So yes it would work had Arthur put that part.  So go look at Brendan's file.  All he added was that $gems= code above Arthurs code. 
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
21 Guests, 1 User
JollyGG
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search