• 0
Sign in to follow this  
neXus

npc that uses a cashpoints

Question

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.

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

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.

Share this post


Link to post
Share on other sites

 

 

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Posted · Hidden by Emistry, May 23, 2014 - No reason given
Hidden by Emistry, May 23, 2014 - No reason given

...???

Share this post


Link to post

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Sign in to follow this