setarray .@i[ 0 ], 1000, 1500, 2000, 2500, 3000, 3500, 4000;
This array holds the values that will be randomly selected as rates. Change the numbers to change what the rates will be.
Side note: What is j.@a in your announce line? Is that a typo?
prontera,123,123,4 script Skull Cleaner 123,{
mes "[^0000FFSkull Cleaner^000000]";
mes "Would you like me to remove the names from your collected skulls?";
if(select("Yes:No") == 2) end;
.@amount = countitem( 7420 );
delitem 7420,.@amount;
getitem 7420,.@amoint;
mes "There you go!";
close;
}
No.
Those are MySQL server configuration settings in inter_athena.conf... Nothing to do with the server password used to communicate between the servers.
Also, making modifications to anything outside of the src folder does not require a recompile.
@Radian,
Check conf/login_athena.conf Check if you are or are not using MD5 hashes.
If yes, make sure your s1 account in your login table of your MySQL DB's password is set to have a hashed password that corresponds to your non-encoded server password.
Then check your conf/map_athena.conf and verify the password setting
Do the same in conf/char_athena.conf (Both of these settings should be NON-encoded)
I've linked to the normal files, be sure to check any import folder configurations as well.
Change:
if (countitem(969) <250) && (countitem(4001) <20) && (Zeny < .@NeedZeny) goto L_Missing;
To:
if(countitem(969) < 250 || countitem(4001) < 20 || Zeny < .@NeedZeny) goto L_Missing;
This will change the logic from AND (meaning all statements are true) to OR (at least one of the statements is true).
Check out your checkweight options here.
setd ".@enc$", select("Fighting Enchant:Magic Enchant:Archer Enchant:Critical/Fatal Enchant:Max HP Enchant:Max SP Enchant:ASPD Enchant:STR Enchant:AGI Enchant:DEX Enchant:VIT Enchant:INT Enchant:LUK Enchant");
This sets a variable (name determined by the value of .@enc$) equal to the selection of the menu presented by the select script command.
For example, if .@enc$ = ".@variable" and the user selects "Fighting Enchant" from the menu then .@variable = 1
.@EnStat = callfunc( (.chancetype?"EnchantStat_1":"EnchantStat_0"), .@enc$) ;
This sets the variable .@EnStat to the value that is returned by the function EnchantStat_1( ) or Enchant_Stat_0( ) (function determined by the variable .chancetype) with an argument passed that was defined by the above setd line.
Updated from the wiki:
getinventorylist;
for(.@i = 0; .@i < @inventorylist_count; .@i += 1){
if(@inventorylist_id[.@i] == 512){ // 512 is the item id for apple
mes "You have an apple with you!";
close;
}
}
mes "You don't have an apple with you :(";
close;
Read which variables are set by getinventorylist; Here
If you're using eAthena then many of the script commands rAthena uses do not exist. You cannot use definitions such as
@menu$ = "";
In eAthena. You must revert all instances of var = value; to set var,value;
In other words: it's time to update to rAthena and this issue, along with many others, will disappear.
Run a search in your npc directory for the string "mid_camp" Then you'll know which files have NPCs on that map. You can then remove them by either removing the whole file or commenting/deleting specific npc scripts.