Jump to content

AinsLord

Members
  • Posts

    791
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by AinsLord

  1. mga sir same problem hosting naman to wla naman akong problema sa lumang git version ko pero d2 lague sa char server connection nag kka gnto ok naman ung inter_athena config ko pati char config user/pass dko paden alam ano problema gs2 ko sana latest git gamitin baka may maka tulong
  2. BUMP to this post sir @Emistry thanks definitely working however it doesnt give random option it provides the option listed in the OptID variable is it possible like getting 1 option then probably randomize 2 or 3 options? function script Costumes_R { set .@Total,2; //<%>,<ItemID>,<Amount> setarray .@P1[0],100,33002,1; //Fallen Angel Wing setarray .@P2[0],20,33001,1; //Flapping Angel Wing setarray .@Default[0],1230,1; //Token Scrolls set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { // getitem .@Default[.@j], .@Default[.@j+1]; callfunc("F_CASH_SHOP_RANDOM", .@Default[.@j], .@Default[.@j+1]); if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { // getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); callfunc("F_CASH_SHOP_RANDOM", getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]")); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=9) announce ""+strcharinfo(0)+" has opened [Devil Scroll] and reward ["+getitemname(.@k[0])+" x "+.@k[1]+"]!",0; specialeffect2 251; end; } function script F_CASH_SHOP_RANDOM { .@item_id = getarg(0); .@amount = getarg(1); setarray .@OptID[0], RDMOPT_WEAPON_ATTR_TELEKINESIS, RDMOPT_VAR_MAXHPAMOUNT, RDMOPT_VAR_INTAMOUNT, RDMOPT_VAR_LUKAMOUNT; setarray .@OptVal[0],10,10,10,10; setarray .@OptParam[0],1,2,3,4; .@item_type = getiteminfo(.@item_id, ITEMINFO_TYPE); if (.@item_type == IT_ARMOR || .@item_type == IT_WEAPON) getitem3 .@item_id,.@amount,1,0,0,0,0,0,0,.@OptID,.@OptVal,.@OptParam; else getitem .@item_id,.@amount; return; } again sir thank you so much for the help ?
  3. the git version im using doesnt have this im having problems using the latest rathena git @LearningRO but if i use the latest rathena git what are the steps to add a custom Itemgroup? do i need to go to the src and const.txt or any new method?
  4. BUMP to this post here is the sample of the random item script for box i have function script Costumes_R { set .@Total,14; //<%>,<ItemID>,<Amount> setarray .@P1[0],10,20764,1; //Fallen Angel Wing setarray .@P2[0],20,45008,1; //Flapping Angel Wing setarray .@P3[0],30,969,1; //Gold setarray .@P4[0],30,7620,2; //Enriched Oridecon setarray .@P5[0],30,7620,2; //Enriched Elunium setarray .@P6[0],70,7179,10; //Pods setarray .@P7[0],70,12259,2; //Miracle Medecine setarray .@P8[0],70,12684,10; //Speed Potion setarray .@P9[0],70,14586,5; //Spark Candy setarray .@P10[0],70,16682,1; //Halter Box setarray .@P11[0],90,12906,1; //Hwergelmir's Tonic setarray .@P12[0],90,12904,1; //Steamed Scorpion setarray .@P13[0],90,12903,1; //Steamed Tongue setarray .@P14[0],90,12908,1; //Immortal Stew setarray .@Default[0],45101,1; //Token Scrolls set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } if(1<=.@gz&&.@gz<=9) announce ""+strcharinfo(0)+" has opened [Devil Scroll] and reward ["+getitemname(.@k[0])+" x "+.@k[1]+"]!",0; specialeffect2 251; end; } and what im trying to do is once i opened the box and got the item it has a random option in the item itself RDMOPT_WEAPON_ATTR_TELEKINESIS, RDMOPT_VAR_MAXHPAMOUNT; like this random option and more of this thanks in advance i do really appreciate the help
  5. so here is the script i made for specific item with a specific random option stats //Test functions function script F_CASH_SHOP_RANDOM { setarray .@OptID[0],RDMOPT_WEAPON_ATTR_TELEKINESIS, RDMOPT_VAR_MAXHPAMOUNT; setarray .@OptVal[0],10,10; setarray .@OptParam[0],0,0; getitem3 5518,1,1,0,0,0,0,0,0,.@OptID,.@OptVal,.@OptParam; end; } im figuring out how can i make it like random option for the "getitem3 5518" and also random option if i want like random item box then when opened random option will be put in the item
  6. tried to download the GRFs however it say error occurred at the top right of the GRF does anyone has the file for this?
  7. ive made the box ill just make it random items so here is the script i made to get specific item with a specific item option //Test functions function script F_CASH_SHOP_RANDOM { setarray .@OptID[0],RDMOPT_WEAPON_ATTR_TELEKINESIS, RDMOPT_VAR_MAXHPAMOUNT; setarray .@OptVal[0],10,10; setarray .@OptParam[0],0,0; getitem3 5518,1,1,0,0,0,0,0,0,.@OptID,.@OptVal,.@OptParam; end; } im still trying to figure out how can i make it like random option once i open the box random @optID random OptVal dont know yet what is optparam for
  8. thats one and the other one the item obtained have a random option like this on
  9. is there a item box that will provide a random option upon opening like example you open "god sword box" it will give you the sword with random options. and "Costume Lower Box" it will give you random costume item with a random options. if there is like a free script care to share thanks in advance
  10. but i dont have that kind of connection error using my old git ive checked all the IPs its working fine i mean its all added
  11. i just downloaded the new git i didnt update my old rathena
  12. Bump in to this post In addition when i try to start the server this error shows but in my old rathena git i can start the server without this kind of error? what seems to be the problem #TIA
  13. here is the warnings ive encountered it doesnt stop the compiling however i buggers me seeing this is there any way to remove this?
  14. here is the error im encountering while applying the src it came from here from @Patskie any solution for this one? thanks in advance
  15. use this script create a new text file - script storage2 -1,{ OnInit: bindatcmd "storage2",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT); end; } change this part - script storage2 -1,{ openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT); to this for 2nd storage - script storage3 -1,{ openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT); and so on the last storage in the script is a VIP one so if your server doesnt have VIP enable you can just delete the lines for VIP
  16. in your conf/inter_server.yml put this Body: - ID: 0 Name: "Storage" Table: storage - ID: 1 Name: "VIP" Table: storage2 max: 300 - ID: 2 Name: "VIP2" Table: storage3 max: 300 - ID: 3 Name: "VIP3" Table: storage4 max: 300 on your database SQL put this -- -- Table structure for table `storage` -- CREATE TABLE IF NOT EXISTS `storage` ( `id` int(11) unsigned NOT NULL auto_increment, `account_id` int(11) unsigned NOT NULL default '0', `nameid` int(10) unsigned NOT NULL default '0', `amount` smallint(11) unsigned NOT NULL default '0', `equip` int(11) unsigned NOT NULL default '0', `identify` smallint(6) unsigned NOT NULL default '0', `refine` tinyint(3) unsigned NOT NULL default '0', `attribute` tinyint(4) unsigned NOT NULL default '0', `card0` int(10) unsigned NOT NULL default '0', `card1` int(10) unsigned NOT NULL default '0', `card2` int(10) unsigned NOT NULL default '0', `card3` int(10) unsigned NOT NULL default '0', `option_id0` smallint(5) NOT NULL default '0', `option_val0` smallint(5) NOT NULL default '0', `option_parm0` tinyint(3) NOT NULL default '0', `option_id1` smallint(5) NOT NULL default '0', `option_val1` smallint(5) NOT NULL default '0', `option_parm1` tinyint(3) NOT NULL default '0', `option_id2` smallint(5) NOT NULL default '0', `option_val2` smallint(5) NOT NULL default '0', `option_parm2` tinyint(3) NOT NULL default '0', `option_id3` smallint(5) NOT NULL default '0', `option_val3` smallint(5) NOT NULL default '0', `option_parm3` tinyint(3) NOT NULL default '0', `option_id4` smallint(5) NOT NULL default '0', `option_val4` smallint(5) NOT NULL default '0', `option_parm4` tinyint(3) NOT NULL default '0', `expire_time` int(11) unsigned NOT NULL default '0', `bound` tinyint(3) unsigned NOT NULL default '0', `unique_id` bigint(20) unsigned NOT NULL default '0', `enchantgrade` tinyint unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=MyISAM; change this line `storage` to same name as you indicated in inter_server.yml ex: `storage2 ( as shown on my inter_server.yml CREATE TABLE IF NOT EXISTS `storage` ( here is the script im using byako,143,144,4 script More Storage#prt 4_F_KAFRA4,{ mes "[ Kafra ]"; mes "Which storage do you want to open?"; next; switch(select("Normal Storage","Storage1","Storage2","VIP Storage2")) { case 1: mes "[ Kafra ]"; mes "Storage will be opened. Thank you"; close2; openstorage; break; case 2: mes "[ Kafra ]"; mes "Storage 1 will be opened"; close2; openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT); break; case 3: mes "[ Kafra ]"; mes "Storage 1 will be opened"; close2; openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT); break; case 4: mes "[ Kafra ]"; if (vip_status(1)) { .@mode = STOR_MODE_GET|STOR_MODE_PUT; mes "VIP will be opened. Thank you"; } else { .@mode = STOR_MODE_GET; mes "Seems you're no longer VIP anymore. You only can take the items."; } close2; openstorage2(3,.@mode); break; } end; } i hope this can help ? Credits to this guide
  17. is there like custom command to open the additional storage like @storage2 / @storage3 and so on? if there is what is the script thanks for the help EDIT: i made this script it works fine but how can i put like a msg if storage1 is open and try to do @storage2 it will say "storage 1 is open can't open storage 2 at the moment" just like that here is the script: - script storage3 -1,{ OnInit: bindatcmd "storage3",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT); end; }
  18. here is the bug i encounter everytime i log in and claim daily reward here is the script i use //===== EinherjarRO Scripts ================================== //= Daily Prize, OnPCLoginEvent //===== By: ================================================== //= Stolao //===== Current Version: ===================================== //= 1.59 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A reward system for players who play more frequently //===== Comments: ============================================ //= Maybe Make .MinWait an array mins,days,weeks,months,years; //===== Additional Comments: ================================= //= For Older See Forums //= 1.51 Changed set .@g formula and move lower into script //= 1.52 Replace all disbottom -> message //= 1.53 Changed Format to Include minuets instead of just hours //= 1.54 Made Time till next rewards display dynamic //= 1.55 Changed a forgotten .PointType$ -> getd(.@TT[1]) //= 1.56 changed .@XT -> .@XT$ //= 1.57 Added Atoi where nessisary //= 1.58 Fixed a swapped .@x and .@x+1 //= 1.59 Serveral Edit Undocumented to fix //===== Contact Info: ======================================== //= [Stolao] //= Email: [email protected] //============================================================ - script LOGIN -1,{ OnWhisperGlobal: OnLoginCmnd: OnPCLoginEvent: if(.Rest){ set @login, (gettime(7) * 365 * 24 * 60) + (gettime(8) * 24 * 60) + (gettime(3) * 60) + gettime(2); query_sql("SELECT REPLACE (`last_ip`,'.','_') FROM `login` WHERE `account_id` = "+getcharid(3),@ip$); if((getd("$G_LIP_"+@ip$)+(60*60*24)) <= @c) setd("$G_LIP_"+@ip$,@c); if(@login > #LastDailyReward + .MaxWait ){ set #logintimer, 0; set @login, 0; } set .@rest, (gettime(7) * 365 * 24 * 60) + (gettime(8) * 24 * 60) + (gettime(3) * 60) + .Rest; message strcharinfo(0),"[ Daily Rewards ]: to collect reward you must remain logged in for "+ ( @login - .@rest ) +" Minuets"; } set .@i, (gettime(7) * 365 * 24 * 60) + (gettime(8) * 24 * 60) + (gettime(3) * 60) + gettime(2); if(.@i - .Rest >= (#LastDailyReward + .MinWait)){ sleep2 100 + ( .Rest * 60000 ) - ( .@i - #logintimer ); if(.@i < #LastDailyReward + .MaxWait){ set #DRewardCon, #DRewardCon + 1; } else { set #DRewardCon, 0; } set .@g, (#DRewardCon > getarraysize(.Rewards$)) ? (getarraysize(.Rewards$)-1) : #DRewardCon; explode(.@XT$,.Rewards$[.@g],"|"); for(set .@x,0; .@x < getarraysize(.@XT$); set .@x,.@x + 1){ set .@TT[.@x], atoi(.@XT$[.@x]); } if(.Mode & 1 && .@TT[4]){ //[Note]: I need to figure out a checkweight for all items tired atm lol, for now ill leave it missing for(set .@x,4; .@x < getarraysize(.@TT); set .@x,.@x + 2){ getitem .@TT[.@x], .@TT[.@x+1]; message strcharinfo(0),"[ Daily Rewards ]: Recived "+ .@TT[.@x+1] +" "+ getitemname(.@TT[.@x]); } } if(.Mode & 2){ if(.@TT[0]){ set zeny,zeny + .@TT[0]; message strcharinfo(0),"[ Daily Rewards ]: Recived "+ .@TT[0] +"z"; } if(.@TT[1]){ setd getd(.Points$[0]),getd(.Points$[0]) + .@TT[1]; message strcharinfo(0),"[ Daily Rewards ]: Recived "+ .@TT[1] +" "+.Points$[1]; } } if(.Mode & 4 && (.@TT[3] || .@TT[4])) getexp .@TT[3], .@TT[4]; if(.Mode & 8){ for(set .@x,0; .@x < getarraysize(.BuffInfo); set .@x,.@x + 4){ if(#DRewardCon % .BuffInfo[.@x + 1] == 0) sc_start .BuffInfo[.@x], .BuffInfo[.@x + 2] * 60000, .BuffInfo[.@x + 3]; } } message strcharinfo(0),"[ Daily Rewards ]: You have collected your daily reward, for "+#DRewardCon+" day"+((#DRewardCon > 1)?"s":"")+" in a row."; cutin .Pic$[.@g],4; set #LastDailyReward, .@i; set #logintimer, 0; set @login, 0; } else { set .@days,(#LastDailyReward + .MinWait - .@i)/60/24; set .@hours,((#LastDailyReward + .MinWait - .@i)/60)%24; set .@mins,(#LastDailyReward + .MinWait - .@i)%60; message strcharinfo(0),"[ Daily Rewards ]: You have "+ ((.@days) ? .@days +":Days " : "") +""+ ((.@hours) ? .@hours +":Hours " : "") +""+ ((.@mins) ? .@mins +":Minutes " : "") +"till your next reward"; } end; OnPCLogoutEvent: if(@login){ set .@i, (gettime(7) * 365 * 24 * 60) + (gettime(8) * 24 * 60) + (gettime(3) * 60) + gettime(2); set #logintimer, .@i - @login + #logintimer; set @login, 0; } //return; end; OnInit: waitingroom ">->Daily Rewards",0; //Basic Settings // 1: Item | 2: Points | 4: Exp // 8: Gain Buffs Every X Consecutive Days logged in // (a bit value, e.g. 3 = Items & Points from Multi) set .Mode,1 + 2 + 4 + 8; //To Enable @ Command '@loginreward' unslash next lines // * Needs extra commands for typos bindatcmd("daily" ,"LOGIN::OnLoginCmnd",0,99); //Enable Delay if @afk or @autotrade are available to players // remove // to enable certain command checks //bindatcmd("at" ,"LOGIN::OnPCLogoutEvent",0,99); //bindatcmd("autotrade" ,"LOGIN::OnPCLogoutEvent",0,99); //bindatcmd("AT" ,"LOGIN::OnPCLogoutEvent",0,99); //bindatcmd("Autotrade" ,"LOGIN::OnPCLogoutEvent",0,99); //bindatcmd("afk" ,"LOGIN::OnPCLogoutEvent",0,99); //bindatcmd("AFK" ,"LOGIN::OnPCLogoutEvent",0,99); //Minimum Minuets Between Collecting Daily Reward // Day: 22*60 - 24*60 // Week: 10080 set .MinWait,24*60; //Minuets Before Lose Consecutive Daily Reward // Day: 48*60 - 50*60 // Week: 20160 set .MaxWait,3000; //Number of mins after logging before collecting prize set .Rest,60; //Point Type // [0] Points earned // [1] Point name in mes setarray .Points$,"#KAFRAPOINTS","K-Points"; // Consecutive Days Buff // Each buff contains 4 variables (32 Total Max) // <Type>,<Days>,<Duration>,<Rate>, // Buff 1 // <Type>,<Days>,<Duration>,<Rate>, // Buff 2 // ...; // // Example: 188,7,45,3 // -Every 7th consecutive day logged in Player gains +3 Str for 45 mins // // Type is 188, which references which SC_ to use, SC_INCSTR in this example // -For a full list of SC_ visit the db/const.txt // Days is days buff is applied, in this example 7, so every 7th day, 14,21,28.... // Duration is buff duration is Minuits, in this example 45 mins // Rate is buff strength, in this example player gains 3 Str //setarray .BuffInfo ,260,2,360,1 // Life Insurance for 360 Mins Every 2nd Day //,198,3,120,10 // +10% Hp for 120 Mins Every 3th Day //,196,5,120,25 // +25 Flee for 120 Mins Every 5th Day //,257,7,240,50; // +50% Exp for 240 Mins Every 7th Day // Daily Prize items (max 128 days): // "<Zeny>|<Points>|<BaseExp>|<JobExp>|<itemID-1>|<amount-1>|<itemID-2>|<amount-2>...etc", // Day 1 // "<Zeny>|<Points>|<BaseExp>|<JobExp>|<itemID-1>|<amount-1>|<itemID-2>|<amount-2>...etc" // Day 2 // ...; // Total length of any days string must be 255 or shorter // * If players login longer than the last set // day, they will keep getting the last prize. setarray .Rewards$, "0|0|0|0|7059|5", // Day 1: 5 Free Ticket for Kafra Storage "0|0|0|0|7060|5", // Day 2: 5 Free Ticket for Kafra Transportation "0|0|0|0|12208|1", // Day 3: 1 Battle Manual "0|0|0|0|12766|1", // Day 4: 1 JOB Battle Manual "0|0|0|0|12210|1", // Day 5: 1 Bubble Gum "0|0|0|0|12211|3", // Day 6: 3 Kafra Card "0|0|0|0|601|1", // Day 7: ######### 1 Random Box ########## "0|0|0|0|11503|50", // Day 8: 50 Siege White Potions "0|0|0|0|11504|20", // Day 9: 20 Siege Blue Potions "0|0|0|0|12411|1", // Day 10: 1 HE Battle Manual "0|0|0|0|12016|5", // Day 11: 5 Speed Potion "0|0|0|0|12216|10", // Day 12: 10 LV10 Agil Scroll "0|0|0|0|12215|10", // Day 13: 10 LV10 Blessing Scroll "0|0|0|0|601|1", // Day 14: ######### 1 Random Box ########## "0|0|0|0|12622|1", // Day 15: 1 Boarding Halter "0|0|0|0|12214|2", // Day 16: 2 Convex Mirror "0|0|0|0|12103|1", // Day 17: 1 Bloody Branch "0|0|0|0|6910|1", // Day 18: 1 Enriched Oridecon "0|0|0|0|6911|1", // Day 19: 1 Enriched Eluminium "0|0|0|0|14003|3", // Day 20: 3 Elite Siege Supply Box "0|0|0|0|601|1", // Day 21: ######### 1 Random Box ########## "0|0|0|0|6286|1", // Day 22: 1 Gym Pass "0|0|0|0|12535|1", // Day 23: 1 Yggdrasil Berry "0|0|0|0|12817|3", // Day 24: 3 Old Card Album "0|0|0|0|6833|10", // Day 25: 10 Token of Ziegfried "0|0|0|0|12261|2", // Day 26: 2 Miracle Medicine "0|0|0|0|601|1", // Day 27: ######### 1 I ♥ Games Hat ########## "0|0|0|0|601|1"; // Day 28: ######### 1 Random Box ########## setarray .Pic$, "Daily_01", //pic with day1 highlighted "Daily_02", //pic with day2 highlighted "Daily_03", //pic with day3 highlighted "Daily_04", //pic with day4 highlighted "Daily_05", //pic with day5 highlighted "Daily_06", //pic with day6 highlighted "Daily_07", //pic with day7 highlighted "Daily_08", //pic with day8 highlighted "Daily_09", //pic with day8 highlighted "Daily_10", //pic with day8 highlighted "Daily_11", //pic with day8 highlighted "Daily_12", //pic with day8 highlighted "Daily_13", //pic with day8 highlighted "Daily_14", //pic with day8 highlighted "Daily_15", //pic with day8 highlighted "Daily_16", //pic with day8 highlighted "Daily_17", //pic with day8 highlighted "Daily_18", //pic with day8 highlighted "Daily_19", //pic with day8 highlighted "Daily_20", //pic with day8 highlighted "Daily_21", //pic with day8 highlighted "Daily_22", //pic with day8 highlighted "Daily_23", //pic with day8 highlighted "Daily_24", //pic with day8 highlighted "Daily_25", //pic with day8 highlighted "Daily_26", //pic with day8 highlighted "Daily_27", //pic with day8 highlighted "Daily_28"; //pic with day8 highlighted end; } thanks for the help
  19. is there any script just like this one? its like a warper to other map or farming area with check points in the NPC, SHOP and Monster information inside the map Thanks in advance
  20. came across with the same issue did you already fix this?- @ItsFree
  21. is there a script or src modification for this kind of NPC pub? TIA
  22. this part here cant be access to go upstairs i hope this can be updated ? these cells also not accessible to walk upstairs @iubantot
×
×
  • Create New...