Jump to content
  • 0

npc that uses a cashpoints


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

im a newbie in scripting,

 

can anyone make me an npc in which the npc will going to sell an item that uses a cashpoints. but i need an npc that has a menus

menus will gonna be weapons, armors, headgears, and accesories.

all of the item here will going to use a cashpoints to buy them. i hope someone can help me with this kind of npc.

 

thanks.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

You should use the search engine next time.

 

http://rathena.org/board/files/file/2504-multi-currency-shop/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

i tried this one but i noticed that the price was zeny but it was points and if the player is a blacksmith it will gonna be discounted. i want a script/npc that has a price of

 

100 P not 100 z... and the discount of the blacksmith/merchant will not gonna show here.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

 

 

i tried this one but i noticed that the price was zeny but it was points and if the player is a blacksmith it will gonna be discounted.

That's how you do it. Discount skill does not affect the price. and lastly,

 

 

 

 

 

100 P not 100 z...

you cant just change that...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

but in some RO in there cashshop the prize of the items are not being showing as a discounted prize and it was not using a Z as the prize of the time, it is P as Points.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Follow this : 

** Define a shop/cashshop/itemshop/pointshop NPC.

-%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}
<map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}

-%TAB%cashshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}
<map name>,<x>,<y>,<facing>%TAB%cashshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}

-%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}
<map name>,<x>,<y>,<facing>%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}

-%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}
<map name>,<x>,<y>,<facing>%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

i also tried that script but still i wasnt able to make my npc have an option first before buying the products using a custom points. i want an npc that has an option first like weapons, headgears and misc. all option has an items with a designated amount on it, like with euphys script "shop npc" just like it but i want to have an option first before buying an item and also i want to use a P=points not Z=zeny as the price of the item showing on the npc shop. can anyone help me with this one?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   2
  • Joined:  04/27/14
  • Last Seen:  

i think it can help u *sorry my english is bad*

 

red = npc name

blue = npc sprite ID

orange = item ID

green = price item

yellow = map & coordinate NPC

 

lunar01,135,192,4    cashshop   [Cash 01] Shizuka    758,5380:7500

Edited by sylphers
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   136
  • Joined:  02/26/14
  • Last Seen:  

He basically wants an NPC to "callshop" different cashshops based on a menu.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

pneuma was correct i wanted to have an npc that will going to have a speech first and after that the npc will going to have a menu that has the items that will gonna be bought using the cashpoint or custom points. thanks  anyway for helping. i hope someone will gonna help with this one...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Posted · Hidden by Emistry, May 23, 2014 - No reason given
Hidden by Emistry, May 23, 2014 - No reason given

...???

Link to comment

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

i already found the answer about multiple shops in one npc. however i have another problem here when got multiple shop in one npc i cant buy the item instead i got a gravity error..

heres my script. hope someone can help me
 

-cashshop premium01 -1,501:1000,502:1000,503:1000;
-cashshop premium02 -1,504:1000,505:1000,506:1000;

prontera,150,150,6 script Premium 123,{
mes "[Premium Point Redemption]";
mes "Please select a category";
next;
menu "Items",L_01,"Cards",L_02;
next;

L_01: callshop "premium01",0;
npcshopattach "premium01";
end;

L_02: callshop "premium02",0;
npcshopattach "premium02";
end;

}


im sorry if i just post my script her. i cant download the file using my phone. i hope someone can help me ..


hello?

Edited by Pneuma
Put scripts in a codebox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

Gravity error ? Make sure you got the suitable msgstringtable.txt for your client.

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