Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. // https://rathena.org/board/topic/123699-goldroom-adding-limit-for-300mins/ prontera,155,181,5 script Sample#goldroom 4_F_KAFRA1,{ doevent "gold_room_main::OnTalk"; } // warp portal back prontera ordeal_3-2,123,123,0 warp gold_room_back_prt 1,1,prontera,155,181 // peco peco summon ordeal_3-2,0,0,0,0 monster Peco Peco 1019,200,60000,0,"gold_room_main::OnKill" - script gold_room_main -1,{ OnInit: // gold room map .map$ = "ordeal_3-2"; // entrance fee .zeny_cost = 200000; // rate to get gold .rate = 50; // gold random amount setarray .gold_amount,1,5; setmapflag .map$,mf_noteleport; setmapflag .map$,mf_pvp; setmapflag .map$,mf_pvp_noguild; setmapflag .map$,mf_pvp_noparty; setmapflag .map$,mf_nobranch; setmapflag .map$,mf_nosave; setmapflag .map$,mf_nomemo; setmapflag .map$,mf_noreturn; setmapflag .map$,mf_nowarp; setmapflag .map$,mf_nowarpto; end; OnTalk: mes "Enter Gold Room ?"; if ( .zeny_cost ) mes F_InsertComma( .zeny_cost ) + " Zeny"; switch ( select( "Enter Gold Room", "Exchange Gold Point", "Cancel" )) { case 1: if (gettimetick(0) < #GOLDROOM_CD) { mes "You can only re-enter after "+(#GOLDROOM_CD - gettimetick(0))+" seconds."; } else if ( Zeny < .zeny_cost ) { mes "Not enough Zeny."; } else { #GOLDROOM_CD = gettimetick(0) + (12 * 60 * 60 * 1000); // 12 hours cooldown. Zeny -= .zeny_cost; deltimer strnpcinfo(3)+"::OnKick"; addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick"; warp .map$,0,0; } break; case 2: mes "You got "+F_InsertComma( #GOLDPOINTS )+" Points"; input .@value,0,#GOLDPOINTS; if ( checkweight( 969, .@value ) ) { #GOLDPOINTS -= .@value; getitem 969,.@value; mes "Gained "+.@value+" Gold."; } else { mes "You overweight."; } default: break; } close; OnKick: if (strcharinfo(3) == .map$) { dispbottom "Gold Room : Time's UP !"; warp "SavePoint", 0, 0; } end; OnKill: if ( .rate < rand( 100 ) ) { .@point = rand( .gold_amount[0],.gold_amount[1] ); #GOLDPOINTS += .@point; dispbottom "Gained "+.@point+" Point. You got "+F_InsertComma( #GOLDPOINTS )+" Points now."; } end; OnPCDieEvent: .@killerrid = killerrid; if ( strcharinfo(3) == .map$ && .@killerrid != getcharid(3) && getmonsterinfo( .@killerrid,MOB_NAME ) != "null" ) { #GOLDPOINTS = 0; dispbottom "You died, you lost all the point."; } end; }
  2. perhap edit this file ? \System\monster_size_effect.lub
  3. // https://rathena.org/board/topic/123699-goldroom-adding-limit-for-300mins/ prontera,155,181,5 script Sample#goldroom 4_F_KAFRA1,{ doevent "gold_room_main::OnTalk"; } // warp portal back prontera ordeal_3-2,123,123,0 warp gold_room_back_prt 1,1,prontera,155,181 // peco peco summon ordeal_3-2,0,0,0,0 monster Peco Peco 1019,200,60000,0,"gold_room_main::OnKill" - script gold_room_main -1,{ OnInit: // gold room map .map$ = "ordeal_3-2"; // entrance fee .zeny_cost = 200000; // rate to get gold .rate = 50; // gold random amount setarray .gold_amount,1,5; setmapflag .map$,mf_noteleport; setmapflag .map$,mf_pvp; setmapflag .map$,mf_pvp_noguild; setmapflag .map$,mf_pvp_noparty; setmapflag .map$,mf_nobranch; setmapflag .map$,mf_nosave; setmapflag .map$,mf_nomemo; setmapflag .map$,mf_noreturn; setmapflag .map$,mf_nowarp; setmapflag .map$,mf_nowarpto; end; OnTalk: mes "Enter Gold Room ?"; if ( .zeny_cost ) mes F_InsertComma( .zeny_cost ) + " Zeny"; switch ( select( "Enter Gold Room", "Exchange Gold Point", "Cancel" )) { case 1: if (gettimetick(0) < #GOLDROOM_CD) { mes "You can only re-enter after "+(#GOLDROOM_CD - gettimetick(0))+" seconds."; } else if ( Zeny < .zeny_cost ) { mes "Not enough Zeny."; } else { #GOLDROOM_CD = gettimetick(0) + (12 * 60 * 60); // 12 hours cooldown. Zeny -= .zeny_cost; deltimer strnpcinfo(3)+"::OnKick"; addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick"; warp .map$,0,0; } break; case 2: mes "You got "+F_InsertComma( #GOLDPOINTS )+" Points"; input .@value,0,#GOLDPOINTS; if ( checkweight( 969, .@value ) ) { #GOLDPOINTS -= .@value; getitem 969,.@value; mes "Gained "+.@value+" Gold."; } else { mes "You overweight."; } default: break; } close; OnKick: if (strcharinfo(3) == .map$) { dispbottom "Gold Room : Time's UP !"; warp "SavePoint", 0, 0; } end; OnKill: if ( .rate < rand( 100 ) ) { .@point = rand( .gold_amount[0],.gold_amount[1] ); #GOLDPOINTS += .@point; dispbottom "Gained "+.@point+" Point. You got "+F_InsertComma( #GOLDPOINTS )+" Points now."; } end; OnPCDieEvent: .@killerrid = killerrid; if ( strcharinfo(3) == .map$ && .@killerrid != getcharid(3) && getmonsterinfo( .@killerrid,MOB_NAME ) != "null" ) { #GOLDPOINTS = 0; dispbottom "You died, you lost all the point."; } end; }
  4. prontera,155,181,5 script Sample 4_F_KAFRA1,{ mes "Pay "+.zeny+" Zeny to play?"; cutin "1s_1", 3; if (select("Pay", "Cancel") == 1) { if (Zeny < .zeny) { mes "Not enough zeny."; } else { for (.@level = 1; .@level <= 7; .@level++) for (.@i = 0; .@i < (10 - .@level); .@i++) { cutin .@level+"s_"+.@i, 3; sleep2 (.@level * 100) + (.@i * 100); } } } close2; cutin "", 255; end; OnInit: .zeny = 100000; end; } in future, please write everything in your first post rather than keep asking for changes.
  5. I didn't found any thing that you have modified aboved. you're probably didnt reload the NPC after modified it.
  6. Fixed in v1.3, redownload the files when it get approved in the system.
  7. job3_arch01 mapflag gvg_castle remove the mapflag.
  8. if ( Zeny < .zeny_cost ) { mes "Not enough Zeny."; } else { Zeny -= .zeny_cost; warp .map$,0,0; } break; change into if (gettimetick(0) < #GOLDROOM_CD) { mes "You can only re-enter after "+(#GOLDROOM_CD - gettimetick(0))+" seconds."; } else if ( Zeny < .zeny_cost ) { mes "Not enough Zeny."; } else { #GOLDROOM_CD = gettimetick(0) + (12 * 60 * 60); // 12 hours cooldown. Zeny -= .zeny_cost; warp .map$,0,0; } break;
  9. if you're using PK mode server, then conf/battle/misc.conf#L35-L36, else no.
  10. you didnt recompile the server after your modified the source code.
  11. you cant change the quest system expiry date.
  12. what are you looking for are probably these src/map/script_constants.hpp#L1102-L1103 export_constant(SC_EXPBOOST); export_constant(SC_ITEMBOOST); this is half correct, the main culprit for any invalid SC_*** causing petrification status are because all these invalid SC_*** has a default value of 0, which coincidentally SC_STONE has the same value of 0. That's why it caused petrification status for all invalid SC_***
  13. the script is outdated and not longer recommended due to exploitable in newer version of rathena. use this instead. https://rathena.org/board/topic/90173-item-and-point-shop/ or npc/custom/quests/quest_shop.txt
  14. //================================================== // jawaii - Jawaii, the Honeymoon Island //================================================== jawaii,207,290,10,10 monster Phen 1158,3,3600000,1800000,1234 remove the 1234
  15. ...,{ resetstatus(); },{},{} just make the reset stone into a usable item type and change the item script.
  16. by default, rAthena doesn't have any NPC or event label using "1234" keywords. if its your custom npc, you're not suppose to remove it if its your custom npc, and you want to remove the NPC, make sure you remove this event label from the monster. if you didnt remove any npc but this errors shown, then recheck your event label that attached to the monster.
  17. job_sword1,223,167,4 script Race Prizer 45,1,1,{ switch ( .winner_count++ ) { case 1: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 1st place !!",0; getitem 7227,1; dispbottom "You earned 80 Race Points for being first place."; set #racepoints,#racepoints+80; warp "prontera",150,150; break; case 2: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 2nd place !!",0; getitem 7227,1; dispbottom "You earned 50 Race Points for being second place."; set #racepoints,#racepoints+50; warp "prontera",150,150; break; case 3: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 3rd place !!",0; mapannounce "job_sword1","[ Race Manager ] : Hurry up for 4th Place Guys Go go go go !!!",0; getitem 7227,1; dispbottom "You earned 35 Race Points for being third place."; set #racepoints,#racepoints+35; warp "prontera",150,150; break; case 4: initnpctimer; default: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the "+.winner_count+"th place !!",0; getitem 675,1; dispbottom "You earned 20 Race Points for being "+.winner_count+"th place."; set #racepoints,#racepoints+20; warp "prontera",150,150; break; } end; OnTimer30000: stopnpctimer; mapannounce "job_sword1","[ Race Manager ] : We already got our "+.winner_count+" winners better luck next time, Race Event is now over warping all back to town those who left inside the map !!",bc_map; set .winner_count,0; mapwarp "job_sword1","prontera",150,150; mapwarp "arena_room","prontera",150,150; disablenpc "Race Prizer"; disablenpc "RaceGO"; close; } 30 seconds after 4th winner, 5th winners still can get the rewards.
  18. job_sword1,223,167,4 script Race Prizer 45,1,1,{ switch ( .winner_count++ ) { case 1: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 1st place !!",0; getitem 7227,1; dispbottom "You earned 80 Race Points for being first place."; set #racepoints,#racepoints+80; warp "prontera",150,150; close; case 2: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 2nd place !!",0; getitem 7227,1; dispbottom "You earned 50 Race Points for being second place."; set #racepoints,#racepoints+50; warp "prontera",150,150; close; case 3: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 3rd place !!",0; mapannounce "job_sword1","[ Race Manager ] : Hurry up for 4th Place Guys Go go go go !!!",0; getitem 7227,1; dispbottom "You earned 35 Race Points for being third place."; set #racepoints,#racepoints+35; warp "prontera",150,150; close; default: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the "+.winner_count+"th place !!",0; getitem 675,1; dispbottom "You earned 20 Race Points for being "+.winner_count+"th place."; set #racepoints,#racepoints+20; close; } } try
  19. use the quest shop instead. npc/custom/quests/quest_shop.txt
  20. if ($koegid) { .@aid = getcharid(3, getguildmaster($koegid)); if (.@aid && isloggedin(.@aid)) { getitem 607, 10, .@aid; } } use this, it will send the reward as long as the master is online.
  21. check your custom npc scripts that adding this mapflag, if any.
  22. the built-in attendance system has its own UI, if you want those script that support cutins, then just find it at the forum and download to use it.
  23. just my own preference, look shorter and simpler, its less redundant, hence easier to read.
  24. use older client ... newer client no longer allow player to distribute stats since its useless when all characters are starting with 1 stats all, and manually distribute the status in-game.
  25. you probably had 100 auto trade vendor or you hardcoded the extra 100 players for your user count ....
×
×
  • Create New...