Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
index.php


File Name: Special Shop
File Submitter: Dastgir
File Submitted: 15 May 2013
File Category: Source Modifications

As Per This Topic: http://herc.ws/board/topic/3204-special-shop/#entry21298
Example of usage:

For using ItemID x for buying Items

<map name>,<x>,<y>,<facing> itemshop <npc name> <spriteid>,<item_id><itemid>:<amount>,.....



This shop will use item id mentioned in the NPC.

For Using Variable for buying items

<map name>,<x>,<y>,<facing> pointshop <npc name> <spriteid>,"<variable_name>":"<variable_description>",<itemid>:<amount>,.....





Variable_Name will be deducted from your variable,and it will show variable_description when click npc.

Please See ScreenShot for More information.


NOTE:
Please Do Not Share without Credit.Please Do not Share this as Paid Service.

Click here to download this file

 
Last edited by a moderator:
File Name: Customized Shop-Needs Item

File Submitter: dastgirpojee

File Submitted: 15 May 2013

File Category: Source Modifications

I made this script from request : http://herc.ws/board/topic/631-customize-npc-shop/

Example of usage:

<map name>,<x>,<y>,<facing>,<item_id> ishop <npc name> <spriteid>,<itemid>:<amount>,.....This shop will use item id mentioned in the NPC.
NOTE:

Please Do Not Share without Credit.Please Do not Share this as Paid Service.

Click here to download this file

Thank you for this very useful diff addon Sir dastgir! This is really helpful, however, how to make the NPC will tell the required itemid even the character has no ItemID on the inventory of a character. 

If the character has no ItemID required, the NPC will tell 'You don't have enough Kafra Points' shown on the screenshot below, then  I summon TCG Card (7227), afterwards, the NPC is showing what is required ItemID. 

In short.

How to do to make this npc that will show the <item_ID> when you click even the character has no required ItemID. 

Thank you!!! /heh

screen_Chaos000.jpg


 
Last edited by a moderator:
Will check into it.

 
Updated to v1.2

now can use itemshop and pointshop option.

 
hi dastgir, can i suggest a addition in your patch? can you add a stocks system? refer here in my post @ra http://rathena.org/board/topic/90173-item-and-point-shop/?p=234723 thanks!
Well its easy to make, but few thing want to discuss about it.1) whats the use of it, because when npc is going to be reloaded , it will just bring the stock back(neither can store stock data in memory, as it will be cleared when server restart/reload), also cannot use sql since npc ids can differ when reload.

So if you want it like stock full when reload, ofcourse I can do it, just message here.

Or stock system can also be done via simple script, you can use scripts to make stock too.

 
http://herc.ws/board/index.php?app=downloads&module=display&section=screenshot&id=6

File Name: Special ShopFile Submitter: Dastgir Pojee

File Submitted: 15 May 2013

File Category: Source Modifications

As Per This Topic: http://herc.ws/board/topic/3204-special-shop/#entry21298

Example of usage:

For using ItemID x for buying Items

<map name>,<x>,<y>,<facing> itemshop <npc name> <spriteid>,<item_id><itemid>:<amount>,.....This shop will use item id mentioned in the NPC.
For Using Variable for buying items

<map name>,<x>,<y>,<facing> pointshop <npc name> <spriteid>,"<variable_name>":"<variable_description>",<itemid>:<amount>,.....Variable_Name will be deducted from your variable,and it will show variable_description when click npc.
Please See ScreenShot for More information.

NOTE:

Please Do Not Share without Credit.Please Do not Share this as Paid Service.

Click here to download this file
can i ask how can i put this in my hercules server? should i put the codes manually? because i don't know the fastest way..

 
http://herc.ws/board/index.php?app=downloads&module=display&section=screenshot&id=6

File Name: Special ShopFile Submitter: Dastgir Pojee

File Submitted: 15 May 2013

File Category: Source Modifications

As Per This Topic: http://herc.ws/board/topic/3204-special-shop/#entry21298

Example of usage:

For using ItemID x for buying Items

<map name>,<x>,<y>,<facing> itemshop <npc name> <spriteid>,<item_id><itemid>:<amount>,.....This shop will use item id mentioned in the NPC.
For Using Variable for buying items

<map name>,<x>,<y>,<facing> pointshop <npc name> <spriteid>,"<variable_name>":"<variable_description>",<itemid>:<amount>,.....Variable_Name will be deducted from your variable,and it will show variable_description when click npc.
Please See ScreenShot for More information.

NOTE:

Please Do Not Share without Credit.Please Do not Share this as Paid Service.

Click here to download this file
can i ask how can i put this in my hercules server? should i put the codes manually? because i don't know the fastest way..
Well its now obsolute, since i have seen hercules changed the shop code, so you can use that.

 
Dastgir it is possible that you make plugin for this
default_biggrin.png
. it would be easier to people.

 
Yeah you know i am having a problem and request see at the last posts on that link. I want to make a shop using 3001 ID and with 4 category on it, i failed alot of times o.O

 
Make 4 Inivisible Trader NPC's

then make 1 new npc with list

prontera,150,150,5<tab>script<tab>Vote Shop<tab>,999,{mes "Select Category";switch(select("SHOP1:SHOP2")){ case 1: openshop("Vote_SHOP1"); close; case 2: openshop("Vote_SHOP2"); close;}}-<tab>trader<tab>Vote_SHOP1<tab>-1,{//Some Stuff HERE}-<tab>trader<tab>Vote_SHOP2<tab>-1,{//Some Stuff HERE}
Haven't tested, but should work.

 
Back
Top