goddameit Posted January 7, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted January 7, 2012 (edited) Quote King of the Hill or KOTH involves one team capturing a point andtrying to keep it for themselves for a certain amount of time (officially 3 minutes). Download Map : koth01.grfDownload Script : King of the Hill.txt 4.69K 203 downloads King of the Hill.txt 4.6K 296 downloads QuoteThe first clicked is blue and other is red. Quote If there is no red team after 30s, event will be ended. Quote You can also change like this >>http://i.imgur.com/Flj3M.png, it's used to limit event time(ex:30 seconds) Quote Other version : http://rathena.org/b...ill-vvend-zone/ King of the Hill.txt King of the Hill.txt Edited August 8, 2013 by goddameit 4 Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 7, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 7, 2012 Wow..this Idea ..xD nice game ...better than the Original one..... Quote Link to comment Share on other sites More sharing options...
Mirage Posted January 7, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 217 Reputation: 18 Joined: 11/20/11 Last Seen: March 25, 2014 Share Posted January 7, 2012 *downloads* Nice event! Quote Link to comment Share on other sites More sharing options...
Shadowz Posted January 8, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 24 Reputation: 1 Joined: 11/15/11 Last Seen: October 8, 2019 Share Posted January 8, 2012 Nice to see that you're implementing other games in RO Good job! Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted January 22, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Share Posted January 22, 2012 (edited) error map not found. error in mapserver. Edited January 22, 2012 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
Nokia Posted January 22, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Share Posted January 22, 2012 you can download the map in the first post.. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted January 23, 2012 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Share Posted January 23, 2012 yes. i download it. but nothing happpen. when the KOTH started its unable to click. and in my map server got error map not found. the koth01.grf do i need to patch it or extracting it? Quote Link to comment Share on other sites More sharing options...
goddameit Posted January 25, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted January 25, 2012 yes. i download it. but nothing happpen. when the KOTH started its unable to click. and in my map server got error map not found. the koth01.grf do i need to patch it or extracting it? Add new map. Quote Link to comment Share on other sites More sharing options...
Amellia sizilia sembiring Posted January 25, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 108 Reputation: 4 Joined: 01/04/12 Last Seen: August 30, 2016 Share Posted January 25, 2012 @hatake takashi U just need put grf to client and set to data.ini I will work fine Quote Link to comment Share on other sites More sharing options...
Lordamax Posted January 25, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 Share Posted January 25, 2012 this is the only thing i know when adding custom map(s)..i'm not sure with this.... I hope it would help you... go to conf/maps_athena.conf and add this line map: koth01 Put koth01.grf to C: then go to conf/grf-files.txt and add this line grf: C:koth01.grf then run mapcache.exe.. Quote Link to comment Share on other sites More sharing options...
RagnaTempo Posted February 5, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 01/26/12 Last Seen: April 3, 2012 Share Posted February 5, 2012 (edited) Hmm..The NPC seems to be pretty cool. I managed to add the map koth01 the server successfully. But when I click on the NPC, nothing happens...It is as if there is a syntax error. @Edit Sorry, the npc its all ok. Just my fault... Need a party to enter on the game. I modified the script and i just put this on npc start: if(getcharid(1) == 0){mes "[King of The Hill]";mes "You need a party to enter.";close;} Nice Work god... Edited February 5, 2012 by RagnaTempo Quote Link to comment Share on other sites More sharing options...
dhaisuke Posted July 22, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 76 Reputation: 2 Joined: 06/07/12 Last Seen: May 6, 2020 Share Posted July 22, 2012 Sir Please Help nothing happen when i click ng npc KOTH Quote Link to comment Share on other sites More sharing options...
donkeyg Posted August 23, 2012 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Share Posted August 23, 2012 is this script works? Quote Link to comment Share on other sites More sharing options...
Zasura Posted August 26, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 48 Reputation: 4 Joined: 11/27/11 Last Seen: October 22, 2020 Share Posted August 26, 2012 thanks, i'll try it. Quote Link to comment Share on other sites More sharing options...
Thanna Posted September 7, 2012 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 271 Reputation: 7 Joined: 01/06/12 Last Seen: May 16, 2015 Share Posted September 7, 2012 sir goddameit what grf are you using on your video of KOTH the new version? because cyntax is not as good as that because yours have cells indication Quote Link to comment Share on other sites More sharing options...
Natsu Dragneel Posted October 4, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 138 Reputation: 1 Joined: 12/27/11 Last Seen: September 7, 2016 Share Posted October 4, 2012 re upload the map pls, cant download it. Quote Link to comment Share on other sites More sharing options...
donkeyg Posted October 14, 2012 Group: Members Topic Count: 344 Topics Per Day: 0.07 Content Count: 1060 Reputation: 1 Joined: 02/13/12 Last Seen: November 14, 2016 Share Posted October 14, 2012 why when i entered the room, middle of the map got 1 Red plant with a chat room (empty words) ???? and ur KOTH video at youtube is not works for me.. not running.. someone please re-upload tqtq Quote Link to comment Share on other sites More sharing options...
goddameit Posted October 18, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted October 18, 2012 why when i entered the room, middle of the map got 1 Red plant with a chat room (empty words) ???? and ur KOTH video at youtube is not works for me.. not running.. someone please re-upload tqtq and ur KOTH video at youtube is not works for me use proxy Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 21, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 21, 2012 why after died player will spawn back in the koth01 map although the game is over ?. Quote Link to comment Share on other sites More sharing options...
goddameit Posted October 22, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted October 22, 2012 (edited) why after died player will spawn back in the koth01 map although the game is over ?. oh, I didn't notice it OnPCDieEvent: //Add below getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") end; if(!getcharid(1)) end; //Add above if(getcharid(1)==.pid[1]) Edited October 22, 2012 by goddameit Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 22, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 22, 2012 why after died player will spawn back in the koth01 map although the game is over ?. oh, I didn't notice it OnPCDieEvent: //Add below getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") end; if(!getcharid(1)) end; //Add above if(getcharid(1)==.pid[1]) above is what for goddameit ?. coz original script is like this, OnPCDieEvent: if(getcharid(1)==.pid[1]) { warp "koth01",23,7; sleep2 1000; unitskilluseid set(@z,bg_monster(0,"koth01",23,7,"",1002,"")),54,1,getcharid(3); }else if(getcharid(1)==.pid[0]) { warp "koth01",23,88; sleep2 1000; unitskilluseid set(@z,bg_monster(0,"koth01",23,88,"",1002,"")),54,1,getcharid(3); }else end; Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 22, 2012 to ensure it only work or affect only the participants of KOTH .... Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 22, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 22, 2012 change the original this ? OnPCDieEvent: if(getcharid(1)==.pid[1]) { warp "koth01",23,7; sleep2 1000; unitskilluseid set(@z,bg_monster(0,"koth01",23,7,"",1002,"")),54,1,getcharid(3); }else if(getcharid(1)==.pid[0]) { warp "koth01",23,88; sleep2 1000; unitskilluseid set(@z,bg_monster(0,"koth01",23,88,"",1002,"")),54,1,getcharid(3); }else end; into this one ? OnPCDieEvent: //Add below getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") end; if(!getcharid(1)) end; //Add above if(getcharid(1)==.pid[1]) Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 22, 2012 change OnPCDieEvent: if(getcharid(1)==.pid[1]) into OnPCDieEvent: //Add below getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") end; if(!getcharid(1)) end; //Add above if(getcharid(1)==.pid[1]) Quote Link to comment Share on other sites More sharing options...
madtoyz Posted October 22, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 146 Reputation: 10 Joined: 01/21/12 Last Seen: March 11 Share Posted October 22, 2012 (edited) change OnPCDieEvent: if(getcharid(1)==.pid[1]) into OnPCDieEvent: //Add below getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") end; if(!getcharid(1)) end; //Add above if(getcharid(1)==.pid[1]) iam i correct ?..so after this,when the event is end,player will back save at normal place right ? //Made Goddameit //Web http://goo.gl/q9sej //Vsersion 2012/01/08 - 01:50 AM prontera,147,172,4 script KOTH#RRnpc 100,{ if(.pid[1]||!getcharid(1))end; set .pid[.pid[0]?1:0],getcharid(1); if(.pid[1]) warpparty "koth01",23,7,getcharid(1); else warpparty "koth01",23,88,getcharid(1); if(.pid[1]) { stopnpctimer; sleep2 2000; mapannounce "koth01","[KOTH]:Game Start!!",0; initnpctimer "KOTH_CheckArea"; initnpctimer "#Kothwaitroom"; initnpctimer "KOTH#AreaT"; }else initnpctimer; end; OnTimer1: announce "[KOTH]: Party ["+getpartyname(.pid[0])+"] start the koth!!",0; end; OnTimer30000: donpcevent "KOTH#RRnpc::OnEndd"; end; OnPCDieEvent: //Add below getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") end; if(!getcharid(1)) end; //Add above if(getcharid(1)==.pid[1]) { warp "koth01",23,7; sleep2 1000; unitskilluseid set(@z,bg_monster(0,"koth01",23,7,"",1002,"")),54,1,getcharid(3); }else if(getcharid(1)==.pid[0]) { warp "koth01",23,88; sleep2 1000; unitskilluseid set(@z,bg_monster(0,"koth01",23,88,"",1002,"")),54,1,getcharid(3); }else end; sleep2 7000; OnPCLogoutEvent: if(@z) unitkill @z; end; OnInit: setwall "koth01",47,29,2,4,0,"kothwall11"; setwall "koth01",47,71,2,4,0,"kothwall22"; OnEndd: stopnpctimer; stopnpctimer "KOTH_CheckArea"; stopnpctimer "#Kothwaitroom"; stopnpctimer "KOTH#AreaT"; setarray .pid[0],0,0; set getvariableofnpc(.defhp,"KOTH#AreaT"),25; set getvariableofnpc(.defghp,"KOTH#AreaT"),180; set getvariableofnpc(.hp,"KOTH#AreaT"),getvariableofnpc(.defhp,"KOTH#AreaT"); set getvariableofnpc(.rhp,"KOTH#AreaT"),getvariableofnpc(.defghp,"KOTH#AreaT"); set getvariableofnpc(.bhp,"KOTH#AreaT"),getvariableofnpc(.defghp,"KOTH#AreaT"); set getvariableofnpc(.loca,"KOTH#AreaT"),0; set getvariableofnpc(.area,"KOTH#AreaT"),0; set getvariableofnpc(.spee,"KOTH#AreaT"),0; mapwarp "koth01","prontera",150,180; end; } - script KOTH_CheckArea -1,{ function InArea { getmapxy(.@m$,.@x,.@y,0,getarg(0)); if(.@m$=="koth01"&&.@x>=46&&.@x<=53&&.@y>=46&&.@y<=53) return 1; else return 0; } OnTimer1: setarray .@bo,0,0; for(set .@i,0;.@i<=1;set .@i,.@i+1) { deletearray $@partymemberaid[0],128; getpartymember getvariableofnpc(.pid[.@i],"KOTH#RRnpc"),2; copyarray .@paid[0],$@partymemberaid[0],set(.@pnum,$@partymembercount); for(set .@j,0;.@j<.@pnum;set .@j,.@j+1) if(isloggedin(.@paid[.@j])) if(InArea(rid2name(.@paid[.@j]))) set .@bo[.@i],.@bo[.@i]+1; } if(!.@bo[0]&&!.@bo[1]) { set getvariableofnpc(.area,"KOTH#AreaT"),0; set getvariableofnpc(.spee,"KOTH#AreaT"),0; } else if(!.@bo[0]&&.@bo[1])||(.@bo[0]&&!.@bo[1]) { set getvariableofnpc(.area,"KOTH#AreaT"),.@bo[0]?1:2; //½Ö¥¿¦b¦û»â set getvariableofnpc(.spee,"KOTH#AreaT"),.@bo[0]?.@bo[0]:.@bo[1]; //¦û»â³t«× }else set getvariableofnpc(.area,"KOTH#AreaT"),3; initnpctimer; end; } koth01,50,50,4 script #Kothwaitroom 1083,{ end; OnInit: waitingroom " ",0; end; OnTimer500: delwaitingroom; waitingroom "["+getvariableofnpc(.hp,"KOTH#AreaT")+"][b"+getvariableofnpc(.bhp,"KOTH#AreaT")+"][R"+getvariableofnpc(.rhp,"KOTH#AreaT")+"]",0; initnpctimer; end; } - script KOTH#AreaT -1,{ OnFlagD: if(getarg(0)==2) set .bhp,(.bhp<=0?0:.bhp-1); else if(getarg(0)==3) set .rhp,(.rhp<=0?0:.rhp-1); else return; return; OnTimer1000: if(!.loca&&!.area) { if(.hp<.defhp) set .hp,.hp+1; set .area,0; set .spee,0; initnpctimer; end; }else if(.loca&&(.loca==.area||!.area)) { if(.hp<.defhp) set .hp,.hp+(.spee?.spee:1); }else if(.area&&.spee&&.area!=3&&.area!=.loca) { set .hp,.hp-.spee; if(.hp<=0) { set .loca,.area; set .hp,.defhp; set .rhp,(.rhp?.rhp:1); set .bhp,(.bhp?.bhp:1); } }else { sleep 1; } callsub OnFlagD,.loca+1; if(.rhp<=0||.bhp<=0)&&(.area==.loca||.area==0)&&(.hp==.defhp) { sleep 1000; announce "["+(.rhp?"Blue":"Red")+".Team Win!!]",0; donpcevent "KOTH#RRnpc::OnEndd"; end; } initnpctimer; end; } koth01,44,26,4 script #koth01_warp_1-1 45,2,2,{ warp "koth01",53,28; end; } koth01,34,72,4 script #koth01_warp_1-2 45,2,2,{ warp "koth01",27,65; end; } koth01,44,80,4 script #koth01_warp_1-3 45,2,2,{ warp "koth01",72,65; end; } koth01,44,73,4 script #koth01_warp_2-1 45,2,2,{ warp "koth01",53,71; end; } koth01,34,26,4 script #koth01_warp_2-2 45,2,2,{ warp "koth01",27,34; end; } koth01,44,17,4 script #koth01_warp_2-3 45,2,2,{ warp "koth01",72,34; end; } koth01,23,7,4 script NPC#koth01 100,{ if(select("Heal","Storage")==1) percentheal 100,100; else openstorage; close; } koth01,23,88,4 duplicate(NPC#koth01) NPC#koth02 100 koth01 mapflag pvp //The Exit to Prontera koth01,49,48,5 script Exit#2 902,{ warp "prontera" ,155,181; OnInit: waitingroom "Prontera",0,0; end; } and can explain this function ? getmapxy(.@m$,.@x,.@y); if(.@m$!="koth01") Edited October 22, 2012 by madtoyz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.