Jump to content

NexusXVI

Members
  • Posts

    227
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by NexusXVI

  1. @Capuche Lol ddn't understand that !! @Skorm Is it possible to restrict a certain map to use a specific @command since im only using it on 1 map i'll just restrict them from using @afk and @at(autotrade) in that map for certainty that they cannot abuse the script itself
  2. Currently untested but yeah. prontera,100,100,5 script hourlypoints 139,8,11,{ end; OnTouch: dispbottom "Stay here to get afk hourly points."; attachnpctimer(); startnpctimer(); end; OnTimer3600000: getmapxy(.@map$,.@x,.@y,0); if( distance(.x,.y,.@x,.@y)<=11 && .@map$==.map$ ) { if( !@afk ) { set #KAFRAPOINTS, #KAFRAPOINTS + .point_amt; dispbottom "You received "+.point_amt+" Kafrapoints by staying afk ingame for 1 hour"; dispbottom "Current Balance = "+#KAFRAPOINTS+" Kafrapoints"; set @consecutive_hour, @consecutive_hour + 1; if(@consecutive_hour == 3) { set @consecutive_hour,0; set #KAFRAPOINTS, #KAFRAPOINTS + .cpoint_amt; dispbottom "You receive "+.cpoint_amt+" Kafrapoints in afking for 3 consecutive hours"; dispbottom "Current Balance = "+#KAFRAPOINTS+" Kafrapoints"; } } else if( @afk>=gettimetick(2) ) { set #KAFRAPOINTS, #KAFRAPOINTS + .off_point_amt; set @consecutive_hour, @consecutive_hour + 1; if(@consecutive_hour == 3) { set @consecutive_hour,0; set #KAFRAPOINTS, #KAFRAPOINTS + .coff_point_amt; } } else { stopnpctimer(); set(.@player$, strcharinfo(0)); detachrid; atcommand "@kick \""+.@player$+"\""; end; } attachnpctimer(); initnpctimer(); } else { dispbottom "You left the afk area and will no longer receive Kafrapoints."; stopnpctimer(); } end; OnAFK: set(@afk,1); atcommand "@afk"; end; OnInit: getmapxy(.map$,.x,.y,1); bindatcmd "afk","hourlypoints::OnAFK"; set .cpoint_amt, 50; //Points gained for consecutive time online. set .point_amt, 10; //Normal points gained. set .coff_point_amt, 10; //Points gained for consecutive time offline. set .off_point_amt, 5; //Normal offline points gained. } prontera,0,0,5 script Offline AFK 100,{ set .@npc$, strnpcinfo(1); mes "["+.@npc$+"]"; mes "Would you like to activate offline afk?"; next; if(select("Yes:No")==2) { mes "["+.@npc$+"]"; mes "Alright, maybe next time."; close; } mes "["+.@npc$+"]"; mes "Ok, how long would you like to afk offline?"; next; set @menu, select(.menu$)-1; if(Zeny>=.pric[@menu]) { set(Zeny, Zeny-.pric[@menu]); mes "["+.@npc$+"]"; mes "See you soon!"; close2; set(@afk,gettimetick(2)+(.time[@menu]*60)); atcommand "@afk"; } else { mes "["+.@npc$+"]"; mes "I'm sorry but it seems you don't have enough Zeny for that..."; close2; } end; OnInit: function t { function s; set .@left, getarg(0); if ( .@left <= 0 ) return getarg(0); set .@day, .@left / 86400; set .@hour, .@left % 86400 / 3600; set .@min, .@left % 3600 / 60; set .@sec, .@left % 60; return ( ( .@day ? .@day +" day"+ s( .@day ) : "" ) + ( .@hour ? .@hour +" hour"+ s( .@hour ) : "" ) + ( .@min ? .@min +" min"+ s( .@min ) : "" ) + ( .@sec ? .@sec +" sec"+ s( .@sec,1 ) : "" ) ); function s { return ( ( getarg(0) > 1 ? "s" : "" ) + ( getarg(1,0) ? "" : " " ) ); } } setarray .time, 10, 30, 60, 120, 240, 480; //In minutes setarray .pric, 1500, 4400, 8800, 17600 35300, 70000; //In Zeny set .len, getarraysize(.time); unitwarp 0, getvariableofnpc(.map$,"hourlypoints"), getvariableofnpc(.x,"hourlypoints"), getvariableofnpc(.y,"hourlypoints") ; for(set(.@a,0);.@a<.len;set(.@a,.@a+1)) set(.menu$,.menu$+t(.time[.@a]*60)+" for "+.pric[.@a]+" Zeny.:"); } Variations ( shortcuts ) of the command @afk may be used to abuse this system for example @autotrade ( @at )... I recommend you add them after... bindatcmd "afk","hourlypoints::OnAFK"; Like... bindatcmd "autotrade","hourlypoints::OnAFK"; Where should I add it?
  3. Can you further modify the Script?? Add a menu for how long the player will afk and use the @autotrade command (@afk) and log out.. *They can choose how long and pay for a price. *Still the AFK zone will be enabled for online afk but offline afk on the other hand will have a little less reward. *After the time expires the character completely logs out
  4. Having a NPC error : Incorrect use of 'close' command ! (source:Akemi / path:npc/custom/bk/Botkiller6.txt ) Im not that sure how to fix this and I don't want to make the problem bigger xD // Guards sec_pri,24,63,4 script Kengo::JailMan 795,{ if (!callfunc("iReadC","BKJailTime")) { npctalk callfunc("getMes",$@GuardNPCID,0); end; } if (!getnpctimer(1,"JailCounter")) doevent "JailCounter::OnStart"; if (callfunc("iReadC","BKJailTime") < 1) { if (callfunc("interCheck")) { callfunc "SaveC","BKJailTime",0; atcommand "@unjail " + strcharinfo(0); end; } } npctalk callfunc("getMes",$@GuardNPCID,1) + strcharinfo(0) + callfunc("getMes",$@GuardNPCID,2) + callfunc("formatTime",callfunc("iReadC","BKJailTime")) + callfunc("getMes",$@GuardNPCID,3); close; } sec_pri,50,63,4 duplicate(JailMan) Akemi 795 sec_pri,76,63,4 duplicate(JailMan) Nomaru 795
  5. Having the same problem it's like the Client isn't reading the clientinfo.xml inside a grf . I tried a couple of stuff and ended up using my data folder these sucks yes and I hope someone will see the problem Ps. Im using the same client date your are using maybe it's time to choose other client.
  6. I'll test this right away skorm ================================================================ ================================================================ Your script works /no1 !! Just added a couple of corner signs so that the player can see where they can rest upon. /pat Questions : 1. Expanding the zone would make the rectangle larger from left to right or right to left?? 2 . What does the highlighted number means? ( prontera,100,100,5 script hourlypoints 139,8,11, ) it's the npc sprite my god!! X.X 3. If you want the reward to be an item of a kind ill just change "set .cpoint_amt" to "getitem" ?? Complementations : The script worked well and clean nice job ! Super easy to modify ! Suggestions : Add your signature on this script and make it officially yours.. I don't know if anyone had this or made this before.
  7. "GOOGLE" is the best and most probably the awesomest friend you could ever have. /no1 and the rathena search box on the upper right side of the page under your name is quite helpful too. Here is Euphy's Job Changer Script: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/custom/jobmaster.txt Just modify it oki setarray .Rebirth[0],99,50; // Minimum base level, job level to rebirth OR change to third class setarray .JobReq[0],10,40; // Minimum job level to turn into 1st class, 2nd class set .ThirdClass,1; // Enable third classes? (1: yes / 0: no) set .SNovice,45; // Minimum base level to turn into Super Novice set .LastJob,1; // Enforce linear class changes? (1: yes / 0: no) set .SkillPointCheck,1; // Force player to use up all skill points? (1: yes / 0: no) set .Platinum,1; // Get platinum skills automatically? (1: yes / 0: no) Set the thirdclass to : set .ThirdClass,0; to disabled third class /whisp
  8. http://www.eathena.ws/board/index.php?showtopic=222546 u can just edit the OnClock(time): and just configure it to run every hour.
  9. Ok !! atleast someone saw my post xD A single rectangular 8x11 tile would do, or you can just modify the field by using the same princple the permanent monster spawn do, by putting the coordinates manualy on how wide the NPC can create (if possible). the idea of having an NPC on the center is great Skorm players can choose how long (in minutes) they wanted to afk, by paying an Item or Zeny and at the same time gaining points on how long they afked (per minute). And maybe they can resume playing anytime they want.
  10. Hi guys Can you make an "hourly reward" script that can only work in a certain "rectangular coordinates" on a "certain map"? So that players will only get a reward if he/she AFKed in that certain(rectangular) spot only. It's like a resting zone. where using @afk will literaly generate rewards BUMP!
  11. Thanks Figured that out already but this will help others
  12. Is there any way that you can autoloot custom item drops?? I've used @alootid and @autoloot command but it seems it doesn't affect items that are not in the actual drop list of a monster. - script Dropall -1,{ OnInit: // blacklisted monsters .blacklist$ = "1664|1665|1666|1667|1954|1031|1002|1062|1113|1857|1242"; end; OnNPCKillEvent: getmapxy( .@map$,.@x,.@y, 0 ); if( !compare( "|"+.blacklist$+"|","|"+killedrid+"|" ) ) makeitem 6187,1,.@map$,.@x,.@y; end; } already tried the mob_item_ratio.. and the item i suggested there doesn't drop on anymonsters xD or maybe is it possible to make the item go STRAIGHT into your inventory? I hope someone could help .
  13. The Item in the script can't be autolooted with alootid and autoloot commands.. How can it be fixed??
  14. Thank you .. I'll look into it now and update you about it .. Works.. Thank you Missingno
  15. Ok so i tried to make a small script that consist of a small map with monster spawns (followed the wiki).. It was working, yes.. But after killing everything inside the monsters just wont RE spawn.. Here is what I did.. ayothaya,143,156,6 script Leveling Room 534,{ warp "ama_test.gat",50,103; } // Monsters ama_test,0,0,0,0 monster Poring 1002,9,1000,500,0 ama_test,0,0,0,0 monster Poring 1002,9,1000,500,0 ama_test,0,0,0,0 monster Poring 1002,9,1000,500,0 ama_test,0,0,0,0 monster Poporing 1031,9,1000,500,0 ama_test,0,0,0,0 monster Poporing 1031,9,1000,500,0 ama_test,0,0,0,0 monster Poporing 1031,9,1000,500,0 ama_test,0,0,0,0 monster Drops 1113,9,1000,500,0 ama_test,0,0,0,0 monster Drops 1113,9,1000,500,0 ama_test,0,0,0,0 monster Drops 1113,9,1000,500,0 ama_test,0,0,0,0 monster Marin 1242,9,1000,500,0 ama_test,0,0,0,0 monster Santa Poring 1062,10,1000,500,0 // ama_test,43,114,6 script Get Out 534,{ warp "ayothaya.gat" ,151,160; } .. so if anyone can actually help?.. would appreciate it.
  16. I don't know if this script already exist.., if it does can someone link it to me.. The idea is to make a monster drop random list of items with only 1 quantity.. Ex. Killing poring will make it drop either topaz,gold or diamond.. with only 1 quantity and on a % chance too on each and every item
  17. @Everyone The Guide still works perfectly (Back now at rAthena THANKFULLY,after that long second semester !!) I suggest u follow it carefully... The only error I myself encounter is the 1. Korean language .. I suggest downloading the latest client side translation as suggested in the tutorial https://subversion.assembla.com/svn/client-side-translation/ 2. Wrong packet version..check the db folder and make sure it is the same with the clientinfo.. 3. Batch file not connecting?? Re check the passwords and users specially inside the MySQL Here's the server i just made this morning.. If you need any help..feel free to message me or post it here
  18. I suggest keep every ip on 127.0.0.1 that will work as long as it is lan
  19. OK thnx again Em em! Sir my hourly points is not working NO map errors is it maybe because I already have a Daily Reward? Here is the script : DailyReward //===== EinherjarRO Scripts ================================== //= Daily Prize, OnPCLoginEvent //===== By: ================================================== //= Stolao //===== Current Version: ===================================== //= 1.48 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A reward system for players who play more frequently //===== Comments: ============================================ //= Todo: //= Revamp Exp and Points System, its kinda meh //===== Additional Comments: ================================= //= 1.00 Daily Prize //= 1.01 Fixed Typo //= 1.02 Removed unessisary calculation //= 1.03 Added a sleep2 for delayed reward //= 1.04 Added dispbottom //= 1.05 Made Clearer //= 1.06 Made Disbutton Dynamic //= 1.07 Added .RewardQnt for configable Reward Quantity //= 1.08 Fixed Typo //= 1.09 Seperated .ZMulti into .Mode and .ZMulti //= 1.0A Changed zeny formula for .Mode 0 //= 1.0B Changed Variable Names, More detailed exsplanations //= 1.0C Fixed typo again lol //= 1.0D Added in .PointType$, can now configure zeny into any point types //= 1.0E Added LoginCount //= 1.0F Made LoginCount Customisable //= 1.10 Changed Variable Names, More detailed exsplanations //= 1.11 Added Wipe feature //= 1.12 Fixed bug, changed "close;" to "close2;" //= 1.13 Changed .LogCount to bitwise //= 1.14 Changed .wipe to a whisper event, per Euphys Suggestion //= 1.15 Changed Formatting of config, per Euphys Suggestion //= 1.16 Added Login Reward Countdown, on each login //= 1.17 Added .PointName$ //= 1.18 Fixed Typo //= 1.19 Added Checkweight //= 1.1A Changed query_sql for $LOGINCOUNT to set //= 1.1B Fixed bug with #DRewardCon, arraysize compersison (Thanks AnnieRuru) //= 1.1C Added meathod for characters online for attachrid //= 1.1D Actually Fixed the 1.1B Bug //= 1.1F Changed zeny formula to remove .ZMulti from mode 0 //= 1.20 Changed .Reminder to .Welcome //= 1.21 Fixed missing details in Welcome Message //= 1.22 Changed .Mode to be bitwise //= 1.23 Added Item enable disable to .Mode //= 1.24 Changed whisper to allow for player Whispers //= 1.25 Added "time" Whisper Command for players, Thanks arzzae for suggestion //= 1.26 Made Whisper commands configable //= 1.27 Made GmLvl for wipe Configable //= 1.28 Fixed "Points" bitwise //= 1.29 Added Exp to .Mode //= 1.2A Optimized Rewards Script a little //= 1.2B Bug Fix with Display message on reciving rewards //= 1.2C Optimize a little more //= 1.2D Added server xp rate to config //= 1.2F Re-added checkweight //= 1.30 Move Checkweight up higher in script, makes more since //= 1.31 Removed XP Dispbutton //= 1.32 Added Buffer //= 1.33 Made BUffer Toggle-able //= 1.34 Made Buffer Dynamic //= 1.35 Optimized Buffer a little //= 1.36 Made Buffer More Dynamic //= 1.37 Optimized Buffer a little more //= 1.38 Fixed a typo in "seem" was "see" //= 1.39 removed "typo" bindatcmds //= 1.3A Fixed bug with sc_, didnt support names had to switch to ids //= 1.3B Fixed bug in buff bonus (time and rate) //= 1.3C Revamped buffs to take only 1 variable (now can only be 32 buffs) //= 1.3D Made Day(s) dynamic //= 1.3E Removed "Time" reqirement from players to check there Next Login Bonus //= 1.3F Added an Else after checkweight //= 1.40 Fixed typo in .BuffInfo //= 1.41 Reorganized rewards script //= 1.42 changed .@i -> .@x in Option & 32 (bug report by rakuzas) //= 1.43 Removed Login Count related scripts, as its not really part of rewards system //= 1.44 Made @loginreward do whole script, instead of relogging, //= 1.45 Removed Disable/Enable for whole script (just remove npc) //= 1.46 Changed A few Description, for easier understanding //= 1.47 Move sleep2 up to prevent possible multi rewards bug //= 1.48 Deleted unnecessary line "if( #DRewardCon == 0 ) set #DRewardCon,1;" //===== Contact Ifo: ========================================= //= [Stolao] //= Email: [email protected] //============================================================ - script LOGIN -1,{ OnWhisperGlobal: OnLoginCmnd: OnPCLoginEvent: sleep2 1000+.Rest*60000; set .@i,(gettime(7)*365*24)+(gettime(8)*24)+gettime(3); set .@g,getarraysize(.Rewards); if(.@i >= (#LastDailyReward + .MinWait)){ if(.@i < #LastDailyReward + .MaxWait){ set #DRewardCon,#DRewardCon+1; } else { set #DRewardCon,1; } if(#DRewardCon*2 > .@g-1){ set .@p,.Rewards[.@g-2]; set .@q,.Rewards[.@g-1]; } else { set .@p,.Rewards[#DRewardCon*2-2]; set .@q,.Rewards[#DRewardCon*2-1]; } if(.Mode&1&&.@p){ if(!checkweight(.@p,.@q)){ dispbottom "You seem to be oveweight, put some stuff away and relog to claim prize"; end; } else { getitem .@p,.@q; dispbottom ""+.@q+" "+getitemname(.@p)+""; } } if(.Mode&2) set .@A,#DRewardCon*.ZMulti; if(.Mode&8) set .@A,.@A+.@q; if(.Mode&2||.Mode&8){ setd .PointType$,getd(.PointType$)+.@A; dispbottom ""+.@A+" "+.PointType$+""; } if(.Mode&4){ set .@B,#DRewardCon*.XPMulti[0]; set .@C,#DRewardCon*.XPMulti[1]; } if(.Mode&16){ set .@B,.@B+.@q; set .@C,.@C+.@q; } if(.Mode&4||.Mode&16){ getexp .@B,.@C; } if(.Mode&32){ 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]; } } dispbottom "You have collected your daily reward, for "+#DRewardCon+" day"+((DRewardCon>1)?"s":"")+" in a row."; set #LastDailyReward,.@i; } else { dispbottom "You have "+(#LastDailyReward + .MinWait-.@i)+" hours till your next reward"; } end; OnInit: // ----------------------------------------------------------- // Daily Reward // ----------------------------------------------------------- //To Enable @ Command '@LoginReward' unslash next lines // * Needs extra commands for typos // bindatcmd("loginreward" ,"LOGIN::OnLoginCmnd",0,99); //Minimum Hours Between Collecting Daily Reward // Day: 22-24 // Week: 168 set .MinWait,22; //Hours Before Lose Consecutive Daily Rewar // Day: 48-50 // Week: 336 set .MaxWait,50; //Number of mins after logging before collecting prize set .Rest,0; //Type of Points/Zeny earned // eg: CASHPOINTS, Zeny, LoginPoints set .PointType$,"Zeny"; //Toggle // 1: Item | 2: "Points" from Multi | 4: Exp from Multi // 8: "Points" from Days with ItemID of 0 |16: Exp from Days with ItemID of 0 // 32: Gain Buffs Every X Consecutive Days logged in // (a bit value, e.g. 3 = Items & Points from Multi) set .Mode,1+2+4+8+16+32; //Consecutive Day Points Multiplier // * If players login longer than the last set day, // they will keep getting a larger Multiplier set .ZMulti,100; //Consecutive Day Exp Multiplier // <Base Exp>,<Job Exp>; // * If players login longer than the last set day, // they will keep getting a larger Multiplier. setarray .XPMulti,10,10; // 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 ,188,7,45,3 // +3 Str for 45 Mins Every 7th Day ,189,3,45,3 // +3 Agi for 45 Mins Every 3th Day ,190,3,45,3 // +3 Vit for 45 Mins Every 3th Day ,191,3,45,3 // +3 Int for 45 Mins Every 3th Day ,192,3,45,3 // +3 Dex for 45 Mins Every 3th Day ,193,3,45,3 // +3 Luk for 45 Mins Every 3th Day ,194,4,45,25 // +25 Hit for 45 Mins Every 4th Day ,196,4,45,25 // +25 Flee for 45 Mins Every 4th Day ,198,6,60,10 // +10% Hp for 60 Mins Every 10th Day ,199,6,60,10 // +10% Sp for 60 Mins Every 10th Day ,200,13,30,10 // +10% Atk for 30 Mins Every 10th Day ,201,13,30,10 // +10% Matk for 30 Mins Every 10th Day ,258,9,120,50; // +50% Item Drops for 120 Mins Every 9th Day // Daily Prize items (max 64 days): // <itemID>,<amount>, // Day 1 // <itemID>,<amount>, // Day 2 // ...; // * If players login longer than the last set // day, they will keep getting the last prize. setarray .Rewards[0], 12210,3, // Day 1 12210,3, // Day 2 7852,1, // Day 3 12210,3, // Day 4 12210,3, // Day 5 7852,1, // Day 6 13607,2; // Day 7 end; } Do scripts override each other?
  20. - script hourlypoints -1,{ //--Start of the Script OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1 || checkchatting() == 1) { dispbottom "The hourly points event stopped because you were vending / chatting. Please relog if you wish to start again."; stopnpctimer; end; } //Check if Idle getmapxy( .@map$, .@x, .@y, 0 ); if(@map$ == .@map$ && @x == .@x && @y == .@y) { set @afk, @afk + 1; } //If move timer resets else { set @afk, 0; } set @map$, .@map$; set @x, .@x; set @y, .@y; //Idle Check for 5 Minutes if(@afk == 84600) { dispbottom "The hourly points event stopped because you were idle for 1 Year. Please relog if you wish to start again."; stopnpctimer; end; } end; OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; getitem 6242,1; dispbottom "You received 1 "+getitemname( 7227 )+" by staying ingame for 1 hour"; set @consecutive_hour, @consecutive_hour + 1; } //Check for 12 hours consecutive if(@consecutive_hour == 3) { set @consecutive_hour,0; getitem 6242,5; dispbottom "You received 6 "+getitemname( 7227 )+" by staying ingame for consecutive of 6 hour"; } stopnpctimer; initnpctimer; end; } Can anyone upgrade this.. that the script will show display how long you are only per minute : ex. You are online for 1 Min You are online for 2 Min And so on...
  21. I just diffed the patch and cancelled out the Custom Aura..
  22. [Warning]: Unexpected type for argument 2. Expected number. [Debug]: Data: variable name='.@a$' index=0 [Warning]: Unexpected type for argument 3. Expected number. [Debug]: Data: variable name='.@a$' index=1 [Warning]: Unexpected type for argument 4. Expected number. [Debug]: Data: variable name='.@a$' index=2 [Warning]: Unexpected type for argument 5. Expected number. Got this error when i used the commands Using RA
×
×
  • Create New...