29 posts in this topic

index.php?app=downloads&module=display&section=screenshot&id=6

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

 

Share this post


Link to post
Share on other sites

 

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

Edited by Jezu

Share this post


Link to post
Share on other sites

i used this one but i got this error

 

post-1258-0-56860200-1375617280_thumb.png

post-1258-0-98951000-1375617279_thumb.png

 

How to fix this?

Edited by P r o p e r t i e s

Share this post


Link to post
Share on other sites

i used this one but i got this error

 

attachicon.gif ItemShop-May16diff.png

attachicon.gif ItemShop-May.16diff.png

 

How to fix this?

I dont think, this modify the packet, can you check the same shop with normal, instead of using ishop, use shop and see if it works. Edited by dastgirpojee

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

 

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

File Name: Special Shop

File 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..

Share this post


Link to post
Share on other sites

 

 

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

File Name: Special Shop

File 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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Dude, This will replace Z in zenys by any description that i want?
For example "Kafra Points" displays KP?

Share this post


Link to post
Share on other sites

Dude, This will replace Z in zenys by any description that i want?

For example "Kafra Points" displays KP?

 

 

no.

Share this post


Link to post
Share on other sites

i got problem on this on original npc.c it is like this :

 

nullpo_retr(1, sd);

if ((nd = npc->checknear(sd,map->id2bl(id))) == NULL)
  return 1;

if ( nd->subtype != SHOP && !(nd->subtype == SCRIPT && nd->u.scr.shop && nd->u.scr.shop->items) ) {
 
  if( nd->subtype == SCRIPT )
ShowError("npc_buysellsel: trader '%s' has no shop list!n",nd->exname);
  else
ShowError("npc_buysellsel: no such shop npc %d (%s)n",id,nd->exname);

  if (sd->npc_id == id)
sd->npc_id = 0;
  return 1;
}

 

on the patch it is like this: i dont know where i will put the patch.

 

 

if ((nd = npc->checknear(sd,map->id2bl(id))) == NULL)
return 1;

- if (nd->subtype!=SHOP) {
+ if (nd->subtype!=SHOP && nd->subtype!=ITEMSHOP && nd->subtype!=POINTSHOP) {
ShowError("no such shop npc : %dn",id);
if (sd->npc_id == id)

    sd->npc_id=0 

 

and i got this error :

 

QXH1f.png

 

im using latest rev..

 

need help thanks!

Edited by P r o p e r t i e s

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now