Page 1 of 1

[Mod] Trader Redo [mobs_npc]

PostPosted: Fri Jul 15, 2016 00:20
by everamzah
Description: This is a re-working of the trader's formspec. I was having some trouble with it, so this is an attempt to make it work more simply.
Depends: mobs
License: Not really sure, whatever Sapier says, I guess.
+ Spoiler


Download: GitHub or master.zip

Image

Original mobs_npc can be found at https://github.com/tenplus1/mobs_npc

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Mon Jul 18, 2016 10:09
by TenPlus1
Love the new formspec :) would it be ok to use this in the my own mobs_npc ??

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Mon Jul 18, 2016 12:47
by everamzah
You certainly may!

However, there seems to be some problem with traders not trading sometimes, I don't know why yet.

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Sat Jul 23, 2016 21:50
by Martno
everamzah wrote:However, there seems to be some problem with traders not trading sometimes, I don't know why yet.


Yeah the traders don't trade after some time, and their name change to yellow (?) I can only trade with green named traders. Also, when I quit the game and rejoin, their inventory is loaded again. Is this intentional? Or does this mod have a reload feature?

Other than that, traders work awesome, very fast.

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Sat Jul 23, 2016 22:43
by maikerumine
everamzah wrote:Description: This is a re-working of the trader's formspec. I was having some trouble with it, so this is an attempt to make it work more simply.
Depends: mobs
License: Not really sure, whatever Sapier says, I guess.
+ Spoiler


Download: GitHub or master.zip

Image

Original mobs_npc can be found at https://github.com/tenplus1/mobs_npc

You brilliant man, you! Do you also mind if I add the formspec to one of my mobs?
Maybe add a function to heal/feed npc on rightclick? This might keep their status green.

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Sat Jul 23, 2016 23:10
by everamzah
Yep, this mod needs a lot of work. I'll try to fix them, so they don't stop working on logout/trade/restart, etc.

Ps., This mod can be added anywhere, I feel, as long as Sapier's copyright notice is honored:
+ Spoiler

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Mon Oct 10, 2016 02:47
by taikedz
There's an easy way to get stuff for free off the trader.... needs bugfix... in the formspec?

Halve the stack (or put one item only from the stack) and put that in the item box - no price. Purchase, and you get that item free. And then the other half too, of course.

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Tue Oct 11, 2016 16:05
by azekill_DIABLO
OOOOOHH THE THUG

Re: [Mod] Trader Redo [mobs_npc]

PostPosted: Wed Nov 09, 2016 16:19
by Fixerol