-
Posts
1691 -
Joined
-
Last visited
-
Days Won
78
Community Answers
-
sader1992's post in 1 hour cooldown on npcs... was marked as the answer
prontera,155,155,5 script Cornfarmer 4_CORN,{ if (BaseJob == Job_Gunslinger) { if (CORNCOOLDOWN > gettimetick(2)){ mes "you need to wait 1 hour to get one more corn"; close; } getitem 26001,1; CORNCOOLDOWN = gettimetick(2) + 3600; //3600 seconds! = 1 hour mes "you got a corn!"; close; }//gs only mes "corn only for gunslingers sorry"; close; }
-
sader1992's post in Obtain Points Only if Killed Player has a Variable was marked as the answer
set .@killedvar,getvar(EnableGod,getcharid(0,rid2name(killedrid))); if(.@killedvar == 1 && EnableGod == 1){ PvPkills++; dispbottom "You have won points."; dispbottom "God Point(s): "+PvPkills+"."; }
-
sader1992's post in Maximum number of skills per job was marked as the answer
pc.hpp
#define MAX_SKILL_TREE 85
also a fast way to do it
create new group id
give it all_skill: true permission
add the group id to OnPCLoginEvent for the job id or at the job changer (or any kind of script)
you will find all the skills in the etc window
-
sader1992's post in Help for All in one shop Script was marked as the answer
you should import the sql item db table in your database to use this script
-
sader1992's post in Buffer NPC with buff for VIP and non VIP was marked as the answer
prontera,0,0,0 script buffer 444,{ //buffs for everyone specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,60000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,60000,10; specialeffect2 EF_HEAL2; percentheal 100,100; //vip buffs if(vip_status(VIP_STATUS_ACTIVE)){ sc_start SC_STRFOOD,60000,10; sc_start SC_INTFOOD,60000,10; sc_start SC_DEXFOOD,60000,10; sc_start SC_AGIFOOD,60000,10; sc_start SC_VITFOOD,60000,10; sc_start SC_LUKFOOD,60000,10; } end; }
-
sader1992's post in how to privent this hacker !!! was marked as the answer
this maybe related https://github.com/rathena/rathena/issues/3391
-
sader1992's post in mob not spawn if count more than was marked as the answer
still the same
.variable is an npc variable not global variable
.count in npc1 != .count in npc2
for more info
rAthena Variables
-
sader1992's post in HELP the titles tab disappeared was marked as the answer
the name of the first tab is too lang
i suggest you decreases the name of the first tab
msgstring file
it may fix the problem
-
sader1992's post in [Solved]how to change RagexeRE default language? was marked as the answer
check out this
and also in the sclientinfo.xml
this line <langtype>0</langtype>
see here
https://github.com/rathena/rathena/wiki/Clientinfo.xml
+-----+------------------------+-------------------+ | int | enum SERVICETYPE | "servicetype" tag | +-----+------------------------+-------------------+ | 0 | SERVICETYPE_KOREA | korea | | 1 | SERVICETYPE_AMERICA | america | | 2 | SERVICETYPE_JAPAN | japan | | 3 | SERVICETYPE_CHINA | china | | 4 | SERVICETYPE_TAIWAN | taiwan | | 5 | SERVICETYPE_THAI | thai | | 6 | SERVICETYPE_INDONESIA | indonesia | | 7 | SERVICETYPE_PHILIPPINE | philippine | | 8 | SERVICETYPE_MALAYSIA | malaysia | | 9 | SERVICETYPE_SINGAPORE | singapore | | 10 | SERVICETYPE_GERMANY | germany | | 11 | SERVICETYPE_INDIA | india | | 12 | SERVICETYPE_BRAZIL | brazil | | 13 | SERVICETYPE_AUSTRALIA | australia | | 14 | SERVICETYPE_RUSSIA | russia | | 15 | SERVICETYPE_VIETNAM | vietnam | | 17 | SERVICETYPE_CHILE | chile | | 18 | SERVICETYPE_FRANCE | france | | 19 | SERVICETYPE_UAE | uae | +-----+------------------------+-------------------+
-
sader1992's post in Custom ITEM was marked as the answer
MOVED to the right section
also try to use grf editor if your iteminfo is encrypted or download item info from the English project
see this
https://rathena.org/board/topic/102689-ragnarok-english-translation-project/
-
sader1992's post in unlockable warpra was marked as the answer
i would tell you how but you must know that there is more dynamic ways to do that
so this is the code
switch(select("prontera", "alberta " + ((!#alberta_plat)?"^E82D0B[Lucked]^000000":"^05FF00[UnLucked]^000000"), "goldroom", "Other")) { case 1: if (#alberta_plat == 1) { warp("alberta", 49, 241); end; } if (#alberta_plat == 0) { next; mes "Sorry but you did not unlock that platform yet"; close; end; } } you see i added this line next to the option
((!#alberta_plat)?"^E82D0B[Lucked]^000000":"^05FF00[UnLucked]^000000") this mean
if(!#alberta_plat){ //#alberta_plat == 0 //the option will be "alberta ^E82D0B[Lucked]^000000" }else{ //#alberta_plat == 1 or more than 1 //the option will be "alberta ^05FF00[UnLucked]^000000" } you can do this too
((#alberta_plat == 0)?"^E82D0B[Lucked]^000000":"^05FF00[UnLucked]^000000")
and for the color code use this
https://color.adobe.com/create/color-wheel/
-
sader1992's post in Wiping bank vault. was marked as the answer
stop the server before you edit the database to take effect
-
sader1992's post in servers can not connect was marked as the answer
char_conf login_ip: 127.0.0.1 char_ip: vps_ip map_conf char_ip: 127.0.0.1 map_ip: vps_ip use your lan ip instead of vps_ip
and login using lan ip
-
sader1992's post in How the GM character gets GM clothes was marked as the answer
https://github.com/rathena/rathena/wiki/Clientinfo.xml
<admin>2000001</admin> <admin>Account_ID</admin>
-
sader1992's post in alberta false warp to water area was marked as the answer
it look for me you don't use the same albetra in the mapcache
get that alberta or add your alberta in the mapcache
-
sader1992's post in applying diff and patch file was marked as the answer
Git
you already have it if you did download rAthena through git (what you should have done)
ofc there is a lot of ways but this the most common way
you can check this video to see how i applied my diff to rathena
https://youtu.be/kY6X0PqCrqg?t=151
also better to backup your server if it's big diff
-
sader1992's post in Set specific MVP don't drop card when spawn in BB was marked as the answer
i don't know about that
but you can use mob_avail to copy the mvp add the drop without the card and replace it the mvp id in mob_boss if you know what i mean
this would get you to the result you want
-
sader1992's post in Dead player will cast text was marked as the answer
- script scriptname#100 -1,{ OnPCDieEvent: showscript .words$[rand(getarraysize(.words$))]; end; OnInit: setarray .words$,"nani?","mada mada","korosah!","konoooo"; end; }
-
sader1992's post in Freebies NPC was marked as the answer
@Poring King didn't notice that xD , thanks.
this for job level 10
- script scriptname#100 -1,{ OnPCJobLvUpEvent: if(JobLevel == 10){ getitem 1002,1; } } however if you don't want the player to get the reward again (after rebirth and changing the job) do this
- script scriptname#100 -1,{ OnPCJobLvUpEvent: if(JobLevel == 10){ if(!freeItems){ getitem 1002,1; freeItems = true; } } }
-
sader1992's post in H>Script Problem was marked as the answer
try this
pvp_n_1-2,0,0,0,0 monster 1 Point 1007,60,0,60000,"fabre_punch_main::OnKill_1" pvp_n_1-2,0,0,0,0 monster 10 Points 1007,30,0,60000,"fabre_punch_main::OnKill_2" pvp_n_1-2,0,0,0,0 monster -20 Points 1007,50,0,60000,"fabre_punch_main::OnKill_3" pvp_n_1-2,0,0,0,0 monster Super Points 1229,10,0,60000,"fabre_punch_main::OnKill_4" OnKill_1: callsub( L_Point,( .point_rate * 1 ) ); // Fabre = 1 Point end; OnKill_2: callsub( L_Point,( .point_rate * 10 ) ); // Fabre = 10 Point end; OnKill_3: callsub( L_Point,( .point_rate * -20 ) ); // Fabre = -20 Point end; OnKill_4: callsub( L_Point, rand( 1,100 ), 1 ); // Fabre = random 1~100 Point end; L_Point: if ( .status == 2 ) { .@value = getarg( 0,0 ); query_sql( "INSERT INTO `e_fabre_punch_rank` (`cid`, `name`, `point`) VALUES ( "+getcharid(0)+", '"+escape_sql( strcharinfo(0) )+"', "+.@value+" ) ON DUPLICATE KEY UPDATE `point` = `point` + "+.@value ); dispbottom "<Fabre Punch Event> Gained " + .@value + " Point."; if(getarg(1)) announce "Super Fabre has been killed by [ " + strcharinfo(0) + " ] for " + .@value + " Point(s) !",bc_map; } else if ( .status == 0 ) { dispbottom "Event not yet start, please wait."; } return; }
-
sader1992's post in Kafra Bank was marked as the answer
rAthena/conf/script_athena.conf
// Default value of the 'max' argument of the script command 'input'. // When the 'max' argument isn't provided, this value is used instead. // Defaults to INT_MAX. //input_max_value: 2147483647 input_max_value: 10000000
-
sader1992's post in Force to Reborn was marked as the answer
@Kakaroto
change the line to be like this (add "&& !Is_Baby()")
if( !(eaclass()&EAJL_UPPER) && !Is_Baby() ) return false;
-
sader1992's post in Support level 1500. was marked as the answer
rathena/src/map/pc.cpp
line 11371
from
sv_readdb(dbsubpath2, "job_exp.txt",',',4,1000+3,CLASS_COUNT*2,&pc_readdb_job_exp, i > 0); //support till 1000lvl to
sv_readdb(dbsubpath2, "job_exp.txt",',',4,1500+3,CLASS_COUNT*2,&pc_readdb_job_exp, i > 0); //support till 1000lvl don't forget to recompile !
-
sader1992's post in Requesting Offline Message To Spesific Player was marked as the answer
it's easy to make this kind of scripts
but why don't you use RODEX ?