Jump to content
  • 0

Custom Shop NPC but uses Proof of Donation instead of Zeny


chiCHI

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  11/05/11
  • Last Seen:  

I've been researching for many days now but I didn't find any custom scripts like this one..

I just want a simple custom shop npc like a tool dealer but instead of zeny, it uses the player's current amout of Proof of Donation..

Normal Shop NPC:

------------------------------

Red Potion 50 Z

------------------------------

[buy] [Cancel]

Custom Shop NPC:

------------------------------

Custom Item 10 P

------------------------------

P: [ 0 ] [buy] [Cancel]

The "P" stands for the amount of "Proof of Donation" the player currently holds.. and if i may add, the shop is unaffected by the Discount skill of merchants..

Is this script possible? I've been trying to take a look at the source but its too much for me to do anything reckless right now.. Thank you very much for any help or even hints..I really appreciate it. Thank you thank you.

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Emistry shop is just perfect

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  11/23/11
  • Last Seen:  

Yep this is perfectly possible.

Where x = ID of Proof of Donation, y = ID of item for sale and z = price of item for sale.

//Cash Shop using Proof of Donation

prontera,1,1,3,xxxx	sshop	Custom Shop	111,y:z,yy:zz,yyy:zzz

prontera,100,50,3	script	Custom Shop 70,{
		callshop "Custom Shop",0;
		end;
	}

All you need to do is:

- change x to the ID of Proof of Donation.

- change y to the ID of the item you want to be sold.

- change z to how much the items cost, i.e. how many Proof of Donations do they need to buy the item.

- change this to where you want the npc - [x(100),y(50)] and the direction it faces [z(3)]

prontera,100,50,3

Ignore prontera,1,1,3, this is a hidden NPC which acts as the shop.

Hopefully that helps/works(eep).

Edited by Kingee
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  11/05/11
  • Last Seen:  

Thank you so much sir!! I will try it now!

EDIT: I am getting errors, I exactly did the instructions you provided sir..

here's my script:

prontera,1,1,3,7179 sshop Custom Shop 111,5471:10,5472:10

prontera,100,50,3 script Custom Shop 70,{
  callshop "Custom Shop",0;
  end;
 }

and here is the error shown at map_server:

dqooqx.png

Im currently using eA SVN 14968.. what to do?

Thank you so much for any help...

Edited by chiCHI
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  11/05/11
  • Last Seen:  

use TAB's

I'm using tabs sir..i already double checked everything..

EDIT: I changed the "sshop" to "shop" and the TAB errors in the map server disappeared. However when I clicked buy on the npc, my character freezes and cannot move to other tiles..the only way to move again is by re-logging in..

Any help sirs? :S

Thank you so much..

Edited by chiCHI
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  201
  • Reputation:   47
  • Joined:  11/17/11
  • Last Seen:  

Can you post the script here (Using codebox) so we can see if we spot an error?

You do not have to give us any specific detail, you can change the name so long as that thing you change doesnt effect others. Example:

Changing a npc name would change something like triggered events with that name.

But post the script if you would, if not we can only guess at the problem o.o

Edited by Truly
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

prontera,1,1,3,xxxx sshop Custom Shop 111,y:z,yy:zz,yyy:zzz

i dont think this features exist in both the original or 3Ceam / eAthena Emulator..

perhaps you required a custom diff patch for this....

( * That's why you get Error * )

Edited by Emistry
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

What exactly is "sshop" did you mean "shop" ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

In order to make a shop like that.. eAthena uses shop or cashshop.. o_o I've never seen sshop.. Typo?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

prontera,1,1,3,xxxx sshop Custom Shop 111,y:z,yy:zz,yyy:zzz

from the structure of this "shop"

i do believe it is a custom mod .....

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

prontera,1,1,3,xxxx sshop Custom Shop 111,y:z,yy:zz,yyy:zzz

from the structure of this "shop"

i do believe it is a custom mod .....

Only way he would name it sshop or unless it was a typo. Thus, it's better off to call the shop, shop, or cashshop to label what the actual shop is. Keep in mind, if it is a custom mod, not everyone has the custom mod so it wouldn't make sense to give an example with a custom mod placed in it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  11/23/11
  • Last Seen:  

Oh my bad! God I forgot I was using eAmod when I did this. How embarrassing...disregard my posts.

Edited by The King
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   3
  • Joined:  11/05/11
  • Last Seen:  

Oh my bad! God I forgot I was using eAmod when I did this. How embarrassing...disregard my posts.

Aww, that's too bad. By the way, what is eAmod? Did you mod your own eathena to support this? Or is it downloadable somewhere? Anyway thanks very much dude..

What exactly is "sshop" did you mean "shop" ?

Yes I think it's a "shop"..

Can you post the script here (Using codebox) so we can see if we spot an error?

You do not have to give us any specific detail, you can change the name so long as that thing you change doesnt effect others. Example:

Changing a npc name would change something like triggered events with that name.

But post the script if you would, if not we can only guess at the problem o.o

Here is my code..I just followed sir The King's instructions he provided above..

//Main npc located somewhere in prontera
prontera,155,155,3	 script	 CustomShop	 811,{
 callshop "Cshop",0;
 end;
}

//The hidden npc which holds the function
prontera,1,1,3,7179	 shop	 Cshop	 811,5471:25,5472:25

From the looks of it I assume that you need to first edit the source itself before this can be attained? Or can this have a workaround by using scripts? If there is none, it's OK..I'll just stick with Lunar's Dynamic shop NPC for now.. thanks to all guys who took their time to take a look at this request..thank you so much..

Edited by chiCHI
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

hmmm... im using this since last year http://www.eathena.ws/board/index.php?showtopic=230175 until now..

Custom Dynamic Shop..

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Well..if you are looking for somekind of Shop that need to use items to buy items....

you can check here

Original Post : Link

[ Update ] : Added a Multi Currency Shop Script :

Description :

It is a Simple Shop take use Item Currency to Buy items. It Support Multiple Shop in 1 NPC. This Script is based on the Idea of those other TCG / POD / etc Shop that users keep requesting.

The only different is, this Script only use 1 NPC + 1 Shop ( Invinsible ) NPC to settle all your Problems.

Of Course, that this script can fulfill certain User Request like ,

"Please help me create a Custom Dynamic Shop with Multiple Menu ."..

You can add around ~128 Shop in this NPC. Add the Shop Selection at the Menu / New Cases for each of it.

Simple Explaination :

A Script that allow setup several Shop that using Different Items as Currency to buy Items for the Corresponding Shop...


Multi Currency Shop [ Version 3 ]

Changelog :

  • [ Version 1 ] - Simple Shop Based Currency Shop.
  • [ Version 2 ] - Support Multiple Different Currency Shop in 1 NPC.
  • [ Version 3 ] - Fixed Repeating Items Lists Problem.

Scripts : View Download

Please let me know if there is any problems. As well as any Suggestion to Improve it.

even though it is not as simple / as perfect you can think of it...but still you can give it a try

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

For more information about the sshop visit eAmod website. :(

Edited by Cuspid
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...