Jump to content
  • 0

npc that uses a cashpoints


Question

Posted

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.

12 answers to this question

Recommended Posts

Posted

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.

Posted

 

 

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

Posted

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.

Posted

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

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?

Posted (edited)

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
Posted

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

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...