mervz02 Posted December 20, 2023 Posted December 20, 2023 Hi Experts, Would like to ask if we can make this script working on rathena, its working on my Hercules but here in rathena it doesn't anyone? here the code Thank you in Advance moc_para01,23,35,5 script Activity Shop 4_F_ACOLYTE,{ set @header$,"[^FF8000 Activity Shop ^000000]"; mes @header$; mes "Hi " + (Sex ? "sir!" : "madam!"); mes " "; mes "How have you been, You should do some activities!"; switch(select("Activity Shop:I need more time!")) { case 1: openshop("Activity_Shop"); end; case 2: mes "[^FF8000 Activity Shop ^000000]"; mes "Ok come back later."; break; } close; } - trader Activity_Shop -1,{ OnInit: tradertype(NST_CUSTOM); // Upper sellitem Battle_Manual100,3; sellitem Battle_Manual_X3,7; sellitem Inc_Agi_10_Scroll,1; sellitem Blessing_10_Scroll,1; sellitem Bubble_Gum,50; sellitem Max_Weight_Up_Scroll,50; sellitem Str_Dish10,5; sellitem Agi_Dish10,5; sellitem Vit_Dish10,5; sellitem Int_Dish10,5; sellitem Dex_Dish10,5; sellitem Luk_Dish10,5; end; OnCountFunds: setcurrency(#ACTIVITYPOINTS); end; OnPayFunds: if( #ACTIVITYPOINTS < @price ) end; #ACTIVITYPOINTS = #ACTIVITYPOINTS - @price; purchaseok(); end; } Quote
0 pajodex Posted December 20, 2023 Posted December 20, 2023 rAthena is not same as Herc. You can use the pointshop we are using tho.. Use this format: <map name>,<x>,<y>,<facing>%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} It should be straight forward from hereon. Goodluck! Quote
0 mervz02 Posted December 20, 2023 Author Posted December 20, 2023 1 hour ago, pajodex said: rAthena is not same as Herc. You can use the pointshop we are using tho.. Use this format: <map name>,<x>,<y>,<facing>%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} It should be straight forward from hereon. Goodluck! Hi Thank you, but can you help me about the script above? i dun know how to make it, very little knowledge in scripting right now. all i want is to view that shop using the activity points Quote
0 Emistry Posted December 30, 2023 Posted December 30, 2023 https://rathena.org/board/topic/90173-item-and-point-shop/ Quote
Question
mervz02
Hi Experts,
Would like to ask if we can make this script working on rathena, its working on my Hercules but here in rathena it doesn't anyone? here the code
Thank you in Advance
moc_para01,23,35,5 script Activity Shop 4_F_ACOLYTE,{ set @header$,"[^FF8000 Activity Shop ^000000]"; mes @header$; mes "Hi " + (Sex ? "sir!" : "madam!"); mes " "; mes "How have you been, You should do some activities!"; switch(select("Activity Shop:I need more time!")) { case 1: openshop("Activity_Shop"); end; case 2: mes "[^FF8000 Activity Shop ^000000]"; mes "Ok come back later."; break; } close; } - trader Activity_Shop -1,{ OnInit: tradertype(NST_CUSTOM); // Upper sellitem Battle_Manual100,3; sellitem Battle_Manual_X3,7; sellitem Inc_Agi_10_Scroll,1; sellitem Blessing_10_Scroll,1; sellitem Bubble_Gum,50; sellitem Max_Weight_Up_Scroll,50; sellitem Str_Dish10,5; sellitem Agi_Dish10,5; sellitem Vit_Dish10,5; sellitem Int_Dish10,5; sellitem Dex_Dish10,5; sellitem Luk_Dish10,5; end; OnCountFunds: setcurrency(#ACTIVITYPOINTS); end; OnPayFunds: if( #ACTIVITYPOINTS < @price ) end; #ACTIVITYPOINTS = #ACTIVITYPOINTS - @price; purchaseok(); end; }
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.