-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Motoharo
-
-
10 hours ago, Hijirikawa said:
2607,Clip,Clip,4,30000,,100,,0,,1,0xFFFFFFFF,7,2,136,,0,0,0,{ atcommand "@autoloot"; },{},{ atcommand "@autoloot";}
Thank you!
-
Hello, is there any command to leave an equipment running @autoloot automatic when equipping and deactivating the command when unequip?
-
18 hours ago, rongmauhong said:
Hi, try this
prontera,150,150,6 script Daily Item Sale 100,{ mes "Hi"; next; if(select("Sale!:All items") == 2) { for(set .@i,0; .@i < getarraysize(.TradeID); set .@i, .@i +1){ if(.TradeID[.@i] != 0) { set .@menu$, .@menu$ + "^0000FF "+getitemname(.TradeID[.@i])+" ^000000 x "+.TradeCount[.@i]+" x "+.TradeItemsAmm[.@i]+""; set .@menu$, .@menu$ + ":"; } } set .@Select, select(.@menu$) - 1; if(.TradeCount[.@Select] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[.@Select]); mes " x"+.TradeItemsAmm[.@Select]; next; if(countitem(.TradeItemsReq[.@Select]) < .TradeItemsAmm[.@Select]) { mes "Where is my "+getitemname(.TradeItemsReq[.@Select]); close; } delitem .TradeItemsReq[.@Select], .TradeItemsAmm[.@Select]; getitem .TradeID[.@Select], 1; .TradeCount[.@Select] -= 1; close; } for(set .@i,0; .@i < getarraysize(.TodaySale); set .@i, .@i +1){ if(.TodaySale[.@i] != 0) { set .@menu$, .@menu$ + "^0000FF "+getitemname(.TodaySale[.@i])+" ^000000 x "+.TodayCount[.@i]+" x "+.TradeItemsAmm[.@i]+""; set .@menu$, .@menu$ + ":"; } } set .@Select, select(.@menu$) - 1; if(.TodayCount[.@Select] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[.@Select]); mes " x"+.TradeItemsAmm[.@Select]; next; if(countitem(.TradeItemsReq[.@Select]) < .TradeItemsAmm[.@Select]) { mes "Where is my "+getitemname(.TradeItemsReq[.@Select]); close; } delitem .TradeItemsReq[.@Select], .TradeItemsAmm[.@Select]; getitem .TodaySale[.@Select], 1; .TodayCount[.@Select] -= 1; close; OnInit: setarray .TradeID[0], 12210, 14533, 14545, 7619, 7620, 7227, 7228, 7229, 7230; //your cards id setarray .TradeCount[0], 5, 5, 5, 3, 3, 3, 2, 1, 3; //card count setarray .TradeItemsReq[0], 30002, 30002, 30002, 30002, 30002, 30002, 30002, 30002, 30002; //pod, poring coin, event ticket setarray .TradeItemsAmm[0], 1, 1, 1, 1, 1, 1, 1, 1, 1; // amount of ^ items for(.i = 0; .i < 5; .i ++) { // 5 items if(.TradeID[.i] != 0) { .TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))]; .TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))]; } } hideonnpc "Daily Item Sale"; end; OnClock0000: for(.i = 0; .i < 5; .i ++) { // 5 items if(.TradeID[.i] != 0) { .TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))]; .TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))]; } } end; OnClock2100: hideoffnpc "Daily Item Sale"; end; OnClock2115: hideonnpc "Daily Item Sale"; end; }
Thank you!! Worked
Can I get him to show up twice a week? Wednesday and Sunday for example
-
Could someone help me, make this npc stay hidden and only show up at a certain time? I wanted him to show up at 9:00 p.m. and leave at 9:15 p.m.
Quoteprontera,150,150,6 script Daily Item Sale 100,{
mes "Hi";
next;
if(select("Sale!:All items") == 2) {
for(set .@i,0; .@i < getarraysize(.TradeID); set .@i, .@i +1){
if(.TradeID[.@i] != 0) {
set .@menu$, .@menu$ + "^0000FF "+getitemname(.TradeID[.@i])+" ^000000 x "+.TradeCount[.@i]+" x "+.TradeItemsAmm[.@i]+"";
set .@menu$, .@menu$ + ":";
}
}
set .@Select, select(.@menu$) - 1;if(.TradeCount[.@Select] < 1) {
mes "I don't have this item.";
close;
}
mes "Do you want buy it?";
mes "I need - "+getitemname(.TradeItemsReq[.@Select]);
mes " x"+.TradeItemsAmm[.@Select];
next;
if(countitem(.TradeItemsReq[.@Select]) < .TradeItemsAmm[.@Select]) {
mes "Where is my "+getitemname(.TradeItemsReq[.@Select]);
close;
}
delitem .TradeItemsReq[.@Select], .TradeItemsAmm[.@Select];
getitem .TradeID[.@Select], 1;
.TradeCount[.@Select] -= 1;
close;
}
for(set .@i,0; .@i < getarraysize(.TodaySale); set .@i, .@i +1){
if(.TodaySale[.@i] != 0) {
set .@menu$, .@menu$ + "^0000FF "+getitemname(.TodaySale[.@i])+" ^000000 x "+.TodayCount[.@i]+" x "+.TradeItemsAmm[.@i]+"";
set .@menu$, .@menu$ + ":";
}
}
set .@Select, select(.@menu$) - 1;if(.TodayCount[.@Select] < 1) {
mes "I don't have this item.";
close;
}
mes "Do you want buy it?";
mes "I need - "+getitemname(.TradeItemsReq[.@Select]);
mes " x"+.TradeItemsAmm[.@Select];
next;
if(countitem(.TradeItemsReq[.@Select]) < .TradeItemsAmm[.@Select]) {
mes "Where is my "+getitemname(.TradeItemsReq[.@Select]);
close;
}
delitem .TradeItemsReq[.@Select], .TradeItemsAmm[.@Select];
getitem .TodaySale[.@Select], 1;
.TodayCount[.@Select] -= 1;
close;
OnInit:
setarray .TradeID[0], 12210, 14533, 14545, 7619, 7620, 7227, 7228, 7229, 7230; //your cards id
setarray .TradeCount[0], 5, 5, 5, 3, 3, 3, 2, 1, 3; //card count
setarray .TradeItemsReq[0], 30002, 30002, 30002, 30002, 30002, 30002, 30002, 30002, 30002; //pod, poring coin, event ticket
setarray .TradeItemsAmm[0], 1, 1, 1, 1, 1, 1, 1, 1, 1; // amount of ^ itemsfor(.i = 0; .i < 5; .i ++) { // 5 items
if(.TradeID[.i] != 0) {
.TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))];
.TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))];
}
}
end;OnClock0000:
for(.i = 0; .i < 5; .i ++) { // 5 items
if(.TradeID[.i] != 0) {
.TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))];
.TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))];
}
}
} -
10 hours ago, pajodex said:
Or you can enable the use of @cart to players instead
Yes, but I want to choose a cost
-
Could someone help me create an NPC that uses the @cart command for the player to choose between the 1 ~ 12 appearance of the carts?
-
Were you able to make the effects work? Does not work here. It worked on Hercules
Quote20307,C_Beginner_Cap,Costume Beginner Cap,4,0,,0,,,,0,0xFFFFFFFF,63,2,4096,,1,1,1348,{ if (BaseLevel < 100) { bonus bHit,30-(3*(BaseLevel/10)); bonus bMaxHP,1000-(100*(BaseLevel/10)); bonus bMaxSP,200-(20*(BaseLevel/10)); bonus bVariableCastrate,-10+(BaseLevel/10); bonus bHealPower,150-(10*(BaseLevel/10)); bonus bHealPower2,10*(BaseLevel/10); bonus bAddItemHealRate,10*(BaseLevel/10); } },{},{}
Edit: ID was duplicate in item_db. I erased one and the effect started again.
-
1 hour ago, Quesooo said:
don't forget to recompile server after modification.
I recompiled. I'm using the latest version of rathena.
-
Hello, When I turn on the server I got the error:
"[Error]: map_cart_read_config: Cannot read 'conf/carts.yml'."
How I can fix ?
-
3 hours ago, Playtester said:
You probably messed up when enabling pre-renewal mode.
https://github.com/rathena/rathena/blob/master/src/config/renewal.hpp
In this file you need to uncomment:
//#define PRERE
Don't do any other changes to the file. Then do a full recompile of all servers.
Thank you!!! Without error now
-
Hello, I downloaded the rathena from GIT, I configured, but when I start my server, I got a error.
I tried to fix placing one more column at the end of each, to be 30 columns, the error disappeared , but bugged my server, the classes are with very low aspd 0 ~ 18 aspd.
Does anyone know how to fix it? Without put one more column my aspd is 190 and the weight is 50/30 ( 90% of the weight at the beginning of the game) with all classes LOLSorry my bad english.
-
Hello, the npc don't work.
Same message ever: "I'm sorry, but your class is not supported."
Help with Vip Icon
in General Support
Posted · Edited by Motoharo
How to make the vip icon have the same duration as the player's VIP and keep counting even offline?