Jump to content

AnnieRuru

Script Developers
  • Content Count

    1677
  • Joined

  • Last visited

  • Days Won

    245

Everything posted by AnnieRuru

  1. it warp to source place ... wonder why you can't read the script (just 89 lines without comments) http://upaste.me/r/cec21097384776dc9 and the idea isn't mine ... I only make script accordingly to someone else idea EDIT: forgot to add noreturn mapflag ... again
  2. this one ... Paskie sent me the topic link asked me to write so ... http://rathena.org/board/topic/93022-random-pker/ I finished it... Download 2.1 scuffle_event_2.1.txt also needs source modification of -> getmemberaid this is a twist to last man standing event every few hours (configurable), this event will randomly select a few players those players who are quick enough to type '@scuffle' will be able to join the event then its a last man standing ... the last one who stay in the map gains the prize the condition to pick the players for the registrations are : ( by default ) - not a vendor - not in a chatroom - not inside an event map (nowarp and nowarpto mapflag) - not a GM - active in last 30 seconds - base level above 55 - no same ip to configure the time, simply change OnClock0000: // Configure time here ...OnClock0600:OnClock1200:OnClock1800:..
  3. how come you didn't get ... show your edited script
  4. being asked too much in script request section, so better just release one script emp_breaker_ladder_1.0.txt patch ... no need recompile ... http://upaste.me/0b1d4993914f05487 what this script do ? hmm ... just display the top players who has broke emperium ..
  5. oh edited http://upaste.me/54511096937d17482 players being jailed has SC_JAILED status, so no need to use sec_pri
  6. http://upaste.me/107c10972ae3f2b16 the reason is because the direct variable assigned caused the condition inside being calculated so I blamed it as SVN fault, not my script fault http://rathena.org/board/topic/73718-script-automatiicaly-modifies-menu-other-variables/?p=153502
  7. I can support rathena users ... but I don't support those using outdated SVN ... later ask you patch the script, then you say this command and that command doesn't exist in your svn ... its pain and time wasting
  8. ... now I don't encourage this script ... promotes players to play more than 5 hours continuously ... promotes bad gaming habit ... anyways http://upaste.me/54511096937d17482 I hope you know what is math
  9. try change subject into client side ... how do you diff your client ? how about try using one of the hexed client here and login to your server ?
  10. https://github.com/rathena/rathena/blob/master/src/map/skill.c#L12151 same =/
  11. https://github.com/HerculesWS/Hercules/blob/master/src/map/skill.c#L11332 its already enable by default so what ... you want to off it or what ? I bet you didn't even read the client translation ...
  12. well, the reason that I used getinventorylist; is to retain the slotted cards while being store inside the box so its kinda hard to have multiple valkyrie armor in a single box and no .... just 1 piece of item id 31000 and 1 valkyrie_armor will do the trick .. valkyrie_armor +0 will get id 31001 valkyrie_armor +7 will get id 31008 I've tested in my test server of course
  13. not sure you can understand, but I have level up my scripting skill 3 times2006~2007 just learned how to script 2007~2009 2nd generation 2010~2011 3rd generation 2013~ now 4th generation let me just brief you my past scripting techniques example like search a value in array http://upaste.me/91c4109597fd86270 in other words, any script that I made before 2012 is consider outdated script for me . . . . stupid maki ... make eathena forum down againluckily I still have the plans in my old backup-disk so the script should be http://upaste.me/058f109570518cb1f with the source modification of http://upaste.me/6e0710958b3a393e1
  14. http://rathena.org/board/topic/91042-utility-sql-mission-board/?p=247348 that script only compatible with rathena, so I post on that board
  15. I actually has a list of TODO for mission board 2.5 during year 2011, but it was never done /*TODO: - shorten the player side loading time by running multiple timer - shorten all loading time by using sleep2 (condition)*1; instead if (condition) sleep2 1; - fix a minor bug that players still can submit quest even though the level or job requirement has changed eg: a quest limited level 20~30 but can submit quest on level 31, I tried other games I can't submit anymore - update int__ function - add timeleft__ function - bring out the player side dynamic menu when accepting mission to prevent server process same data repeatedly - add when whisper npc:mission it cast a viewpoint in the mini-map - optimize the monster kill part if the kill count already reach the limit, it shouldn't increase more count */ <=== now I've level up, I think its better for me scrap this whole script and make a new one ... I've only done the red part, the rest was never done I've played on a mmorpg game called Perfect World, I can't submit a quest when I'm level 41 that is meant for level30~40 so the behavior should be like this so if they took a mission for 90~99, they can keep this mission but they have to level up all the way until level90, then only can submit it which ... kills the purpose though what you are asking probably needs OnPCJobLvUpEvent: .. I don't think there's a need for that ... . . I actually made this script with my test server having 20480 check_gotocount ... so its still better to increase it
  16. until developer fix this bug =/ http://herc.ws/board/tracker/issue-7894-battlegrounds-emblem-and-guardian/
  17. http://upaste.me/6a67109559565b02b - fix when players when finished a daily type mission on previous day, on the next day talk to npc will cause infinite loop (already fixed) - fix a bug the players can submit the quest outside the level range limitation
  18. that's weird ... you have to tell which emulator you are using ... get_alliance_count https://github.com/HerculesWS/Hercules/blob/master/src/map/guild.c#L1374 ... honestly how outdated your emulator is ?
  19. yeah ... I did that without having to talk to npc ... just double click the item will do ...
  20. honestly this kind of script I can complete within minutes =/ prontera,158,183,4 script asdfadsf 100,{ if ( !getcharid(1) ) { dispbottom "You don't have a party"; end; } getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; .@origin = getcharid(3); for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; .@name$[.@c] = strcharinfo(0); .@apple[.@c] = countitem(Apple); .@c++; .@total += countitem(Apple); } } attachrid .@origin; for ( .@i = 0; .@i < .@c; .@i++ ) mes ( .@i + 1 )+". "+ .@name$[.@i] +" is carrying "+ .@apple[.@i] +" apples"; announce strcharinfo(1) +" carrying a total apples of "+ .@total, bc_all; close;} so ... spoon feed http://upaste.me/57af109516d8670f8
  21. http://upaste.me/3552109485f5c7de0 for some reason, recently there is air about instance script requests ?
  22. if it is graphic driver problem, or maybe bandwidth problemif you have a shadow of yourself, the shadow shouldn't move at all but you say it moves with you, I think that's a clone ...
  23. - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { getitem .itemid, 1; } } } } end;}
  24. @niniyoh143 don't triple post @quesoph just click the report button. . . // check completed how many times.if( .@repeatable[.@i] ){query_sql( "SELECT COUNT(`id`),TIMESTAMPDIFF( HOUR,`completion`,NOW() ),DATE_ADD( `completion`, INTERVAL "+.@redo_delay+" HOUR) FROM `player_mission` WHERE `mission_id` = "+.@id[.@i]+" AND `completion` <> '0000-00-00 00:00:00'",.@mission_completed,.@diff_delay,.@day$ );if( .@repeatable[.@i] && ( ( .@mission_completed >= .@repeatable[.@i] ) || ( .@diff_delay && .@diff_delay <= .@redo_delay ) ) ){next;mes "^0055FF[ "+.@npc_name$+" ]^000000";mes " ";if( .@mission_completed >= .@repeatable[.@i] ){mes "You cant pick this mission, you have mission completion reach the max repeatable attempt of "+.@mission_completed+" times.";close;}if( .@diff_delay && .@diff_delay <= .@redo_delay ){mes "You cant pick this mission, you have mission redo delay isnt finish yet.";mes "Approximate : ^FF0000"+.@day$+"^000000";close;}}} when I read this chunk of code, I immediately spotted 3 errors 1. query_sql( "UPDATE `player_mission` SET `completion` = NOW() WHERE `cid` = "+getcharid(0)+" AND `mission_id` = "+.@mission_id ); as I thought the correct way to update the missions should only update the mission that are not yet completion but he update every rows included those has already completed it should be update ... and completion = '000...' 2. .@repeatable[.@i] ... that .@i isn't needed because the query_sql already did a limit 1 previously ... and the .@i was conditioned before when listing all the quest list so if there is more than 1 mission in the npc, this will always return 0 emistry probably test this part when he only has 1 mission in the npc .. he needs to setup more 3. I wonder why he put both redo-delay and repeatable only with the repeatable condition .. if admin setup the mission with only redo-delay but not repeatable, the redo-delay condition will not be read they need to be split out in 2 different conditions ... .... means you see it as 1 single bug but there is actually 3 ... this is not a simple script, I can't fix this immediately will do this after dinner ... now I have to go out and eat
  25. Patskie's script uses Scenario #1 for Scenario #2, its even easier - script custom_drop -1,{OnNPCKillEvent: if ( !getcharid(1) ) { if ( rand(4000) < 25 ) // .@rand_gc_drop ... 25/4000 = 1/160 getitem 512,1; if ( rand(2000) < 5 ) // .@rand_sc_drop .... 5/2000 = 1/400 getitem 513,1; if ( rand(1000) < 1 ) // .@rand_gc_drop .... 1/1000 getitem 511,1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { if ( rand(4000) < 25 ) // .@rand_gc_drop ... 25/4000 = 1/160 getitem 512,1, $@partymemberaid[.@i]; if ( rand(2000) < 5 ) // .@rand_sc_drop .... 5/2000 = 1/400 getitem 513,1, $@partymemberaid[.@i]; if ( rand(1000) < 1 ) // .@rand_gc_drop .... 1/1000 getitem 511,1, $@partymemberaid[.@i]; } } } end;}
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.