DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 18, 2013, 08:06:10 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 ... 18 19 [20] 21 22 23   Go Down
  Print  
Author Topic: Equipment Shop v3.8.10  (Read 45283 times)
0 Members and 1 Guest are viewing this topic.
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #285 on: October 30, 2011, 06:48:34 PM »

would be helpful if I knew what code and where to put it

But then we'd be doing all the work for you Megan. Wink
Yeah, what he said.
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #286 on: October 30, 2011, 06:53:17 PM »

Coding is hard for me. I've tried learning it and cant get it.  Thats why I ask.  But if no one will help then thats fine.  I'll just do everything from the db instead of an easier way
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 #287 on: October 31, 2011, 09:50:10 AM »

So I went to look in the db and there is no code for show in shop...I must add one and like I said I'm clueless as to how.  Any help is appreciated.
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 #288 on: October 31, 2011, 10:17:09 AM »

That's what I meant. You need to add it... If I had more time, I'd do it. But I don't.
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #289 on: December 02, 2011, 01:51:02 PM »

can someone tell me how to add it and how to get the name of the misc item to appear.  I added the code ot the bioinfo file like all the other ones are and named the misc one the way the others are calling for the 2 module prefs misc and miscname and its still not working.  all i did was copy the others for the coding and change the prefs to misc and miscname and its still not showing the mscname.  I dont know why.  Help would be great
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 #290 on: December 03, 2011, 03:49:00 PM »

Could you show us your file, as it is after you made your edits?
Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #291 on: December 04, 2011, 09:38:35 PM »

I attached the bioinfo file and in the settings file all the settings used are set.  so i dont know why its not displaying...and also my other question of how to get the armor and weapons options to work like the ring one and not the way they are wasnt answered...also i want the option to chose to display it in the shop there too.  any help is great. 


also note in the file i renamed the other categories to theme my site
Logged

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

Posts: 97


Lacking..?


View Profile WWW
« Reply #292 on: April 26, 2012, 11:29:34 AM »

*Sweeps the dust off the topic*

Oh my, here I am reviving a dead thread..my apologies.

Anyways - As a donation incentive I have it available for players to create their own equipment. I have a few problems though.

After a dragonkill the weapon and armor go away. I do not want this :3.

Also is there anyway to create a function in which the items are available to donors specifically. I know you can change the shop settings however I want all players to see the shop and purchase some of the weaker yet more upgraded gear than the default shops provide. Maybe a donor only section implemented into it?

Just curious if someone would be willing to explain a method for at-least the first one I'd be grateful, Arthur and I tried however I assume I messed up.
Logged
Evil Night
Militia
**
Offline Offline

Posts: 5


View Profile
« Reply #293 on: April 27, 2012, 05:37:44 AM »

Hi Crims,

I believe the Custom Equipment module is the answer to everything you mentioned in your post. It's made by Booger and included in the core.

NB: It's not part of the equipment shop, it actually a lodge module but it should still do what you want it to.
« Last Edit: April 27, 2012, 05:41:41 AM by Evil Night » Logged
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 553


chown -R us ./base


View Profile WWW
« Reply #294 on: April 29, 2012, 06:45:19 AM »

I helped someone with this recently... was it you?
So in the bit where they buy/are given the custom weapon or armor, mark that somehow, like with a pref. Let's call the pref custw for custom weapon, custa for custom armor.
set_module_pref("custw",1);
set_module_pref("custa",1);
Obviously it would be best to create the pref in the _getmoduleinfo() function:
"prefs"=>array(
...
"Keep after DK,title",
"custw"=>"Do they have a custom weapon?,bool,0",
"custa"=>"Do they have a custom armor?,bool,0",
"When those are true, it's kept after DK. When false it's not.,note",
"This applies even when the weapon or armor didn't come from this module.,note",
),
In the _install() function, add:
module_addhook("dk-preserve");
In the _dohook function, add a case for it:
case "dk-preserve":
if (
get_user_pref("custw")){
$args['weapon']=0;
}
if (
get_user_pref("custa")){
$args['armor']=0;
}
break;
I think that should work, but it's untested.

My apologies to Megan, who I've aparently ignored for months.
« Last Edit: April 29, 2012, 06:47:01 AM by ArthuruhtrA » Logged

Dragons of MythMy Modules | Tynastera!
BOWTIES ARE COOL
RaynDarren
Mod God
*****
Offline Offline

Posts: 638


View Profile WWW
« Reply #295 on: May 22, 2012, 04:25:08 PM »

Apologies for resurrecting an old thread.

Couple things:

1. I don't see where alignment is alterable by items?
2. Did alt currency ever get added?


Alterations I'd like to make:
1. I'd like bio display to look like this:
Player has the following items:
item 1
item 2
etc

At the moment only the Player has line appears.
This is the code for the item, but it doesn't appear. Please note, this is formerly the misc catagory.
if( get_module_pref( 'trinket', 'mysticalshop', $acctid ) )
   output( '`3%s`2.`0`n', get_module_pref( 'trinketname', 'mysticalshop', $acctid ) );
2. I'd like to have a staff/donator only  set of items in addition to the individual ones
3. I'd like ot add a commentary section for people to suggest items.

Thoughts?
~Rayn
« Last Edit: May 22, 2012, 07:05:03 PM by RaynDarren » Logged

Visit me at my new home!
RaynDarren
Mod God
*****
Offline Offline

Posts: 638


View Profile WWW
« Reply #296 on: May 23, 2012, 05:21:59 PM »

Forgive the double post, but I think I've found a bug.

In the editor and shop, the link Miscellenea appears for those items in the misc catagory. I've searched every single file in the folder and cannot find where this is to change it. The word, any spelling and partial word only does not appear anywhere in the folder or mysticalshop.php file.  Please note that it did appear in partial (misc) but that was only in outputs and has subsiquently been changed by me to trinkets.

Anyone know why this is happening and how to fix it?

Thanks,
~Rayn
Logged

Visit me at my new home!
Aeo
Mod God
*****
Online Online

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #297 on: May 23, 2012, 06:04:16 PM »

3. I'd like ot add a commentary section for people to suggest items.

I suggest the WINDSUMMONER Suggestion Module. It doesn't add a commentary section, but it allows players to make suggestions for a wide range of topics (mounts being one of them).

Forgive the double post, but I think I've found a bug.

In the editor and shop, the link Miscellenea appears for those items in the misc catagory. I've searched every single file in the folder and cannot find where this is to change it. The word, any spelling and partial word only does not appear anywhere in the folder or mysticalshop.php file.  Please note that it did appear in partial (misc) but that was only in outputs and has subsiquently been changed by me to trinkets.

Anyone know why this is happening and how to fix it?

Thanks,
~Rayn

Have you checked in the module settings?
« Last Edit: May 23, 2012, 06:10:43 PM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
RaynDarren
Mod God
*****
Offline Offline

Posts: 638


View Profile WWW
« Reply #298 on: May 23, 2012, 08:23:12 PM »

Thank you for the suggestion of Windsummoner's module, but I wish the commentary within the shop itself. I've done this several times before and all have worked with no problems atall. With this module, the posts do not appear and the commentary is not updated in grotto view commentary. I don't know why.

Yes, I've checked all the module settings, the catagories list does not appear anywhere within the settings.
Logged

Visit me at my new home!
Aeo
Mod God
*****
Online Online

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #299 on: May 24, 2012, 03:11:25 AM »

Yes, I've checked all the module settings, the catagories list does not appear anywhere within the settings.

Perhaps if you looked in the /modules/mysticalshop.php file, you should take a look at line 49, which may or may not contain the line of code:

Code:
$names = translate_inline( array(0=>'Rings',1=>'Amulets',2=>'Weapons',3=>'Armor',4=>'Cloaks',5=>'Helmets',6=>'Gloves',7=>'Boots',8=>'Miscellanea') );

Smiley
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Pages: 1 ... 18 19 [20] 21 22 23   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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