Special Shop[Implement it in Hercules.]

Status
Not open for further replies.

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
Reference topic : http://rathena.org/board/topic/84169-specialty-shops/

Pull Request : https://github.com/HerculesWS/Hercules/pull/232 (Tested it out, and its working.) 

Diff File: SpecialShop_v1.2.diff (In case someone want to use it early/dev rejected it.)

I have tested this source, and it works fine, anyone who wants to try can test it.

Stolao said:
I wold like to suggest 2 new shop types (similar to cashshop)
 
1st being itemshop
Example:

<map name>,<x>,<y>,<facing> itemshop <NPC Name> <sprite id>,<costitem>,<itemid>:<price>{,<itemid>:<price>...}this would work just like a shop but would of course check for item defined in script
 
 
 
2nd would be more of a replacement to cashshop
Example:
 
Code:
<map name>,<x>,<y>,<facing>    pointshop	<NPC Name>	<sprite id>,<"points">,<itemid>:<price>{,<itemid>:<price>...} 
 
this could use any player or account bound point types such as #CashPoints or PvpPoints, as defined in script
 
 
 
Now i know how to add these without any source changes I've done it a thousand times, I'm suggesting we eliminate alot of the complexity of those script types.
 
Thoughts?

Although in cashshop rearrangement, we would like if format is this

<map name>,<x>,<y>,<facing>   pointshop <NPC Name> <sprite id>,<"points">,<"description">,<itemid>:<price>{,<itemid>:<price>...} 
Where description is the name of point put, like if variable if PkP and description is PvP Points.
Then when we open shop it will show in chat box (not npc dialog box), that "This shop uses PvP Points for purchasing items. Current PvP Points:123"
 

 

Attachments

Last edited by a moderator:
+1, hope it will add to the repo.

 
Last edited by a moderator:
@offtopic

You guys don't know the meaning of +1 don't  you?

That means you will give +1 Reputation on the post/topic. as I can see that 3 of you gave a +1 to Mr DP but you ddnt gave him reputation.
default_hmm.gif


@TS

Real +1 for this
default_smile.png


I want to suggest. Can you make it like cashshop interface? see attachment.

 
Try to buy without cash points on your character and test if this will work. I just have this long time ago by request and made by dastgir.. it gives me error when buying without cash points on account.

 
Try to buy without cash points on your character and test if this will work. I just have this long time ago by request and made by dastgir.. it gives me error when buying without cash points on account.
@Jezu:

It already works, (sevenzz meant to tell that if I can make this shop work with cashshop interface instead of normal shop interface)

This is new source, and doesn't give error(well I tested it personally many times),

It cannot be pulled to repo(Since Hercules is already working in something like this), so I will just make a patch of this in download section.

Thanks.

 
+1 for a patch at download section
default_tongue.png
nice code but I don't think it suits the emulator to come by default
default_biggrin.png


 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top