Jump to content

topechi

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by topechi

  1. Hello! I'd like to request for a classic quest npc if possible please. With 3 item options(item option in words only not like quest shop that you can see the actual item). Thanks in advance!
  2. have you tried double checking your accname.lub and accessoryid.lub? and changing the view id on your itemdb.
  3. Which part of the script should i insert box 1 and 2 sir? sorry just a newbie here. thanks in advance sir!
  4. I'd like to add like a specific item for example a farm room ticket with expiration (1hour) to enter the farm zone. If the ticket expires, players will be warped out of the farm zone and ticket will disappear. please and thank you! prontera,155,185,5 script Farm Zone 1_F_MARIA,{ while ( true ) { mes "How can i help you ?"; switch( select( "Information:Farm Items" )) { case 1: mes "This is a Farm Zone."; mes "You are able to Hunt Monster inside this Room."; mes "Every Monster will award you random items."; next; mes "But there is some Condition.."; mes "You can only go in ^FF0000once every "+.RoomCleanMin+" minutes for 1 times.^000000"; mes "And Maximum of ^FF0000"+.MaxPlayers+" Players per "+.RoomCleanMin+" Minutes.^000000"; mes "Maximum Hunting Limit ^FF0000"+.MaxItemLimit+"^000000"; next; mes "There will be a ^FF0000Room Cleaning^000000 from time to time..."; mes "All players will be kicked out, it is your bad luck if you meet this."; mes "Delay will still apply even though you just go in for 1 Seconds.."; next; break; case 2: // #HuntRoomDelay = 0; if ( #HuntRoomDelay + .DelayMin * 60 > gettimetick(2) ) { mes "Wait for ^FF0000"+( ( ( #HuntRoomDelay + .DelayMin * 60 ) - gettimetick(2) )/60 )+" Minutes^000000."; close; } else if ( getarraysize( .Hunter ) >= .MaxPlayers ) { mes "Currently the Room is Full. Please try again later."; close; } else { warp .Map$,0,0; set .Hunter[getarraysize( .Hunter )], getcharid(3); set #HuntRoomDelay, gettimetick(2); // please don't set the deny variable into the future, if admin adjust the setting to decrease the value, player will experience long deny set #FarmHunt,0; end; } } } close; OnNormalKill: monster .Map$,0,0,"--ja--",.normal_mob[rand(.normal_mob_size)],1,strnpcinfo(0)+"::OnNormalKill"; getitem .farm_normal[rand(.farm_normal_size)], 1; goto L_kill; OnBossKill: monster .Map$,0,0,"--ja--",.boss_mob[rand(.boss_mob_size)],1,strnpcinfo(0)+"::OnBossKill"; getitem .farm_boss[rand(.farm_boss_size)], 1; L_kill: #FarmHunt++; dispbottom "[ Farm Zone ] : Farmed "+ #FarmHunt +" / "+.MaxItemLimit+" Items"; if ( #FarmHunt >= .MaxItemLimit ) { message strcharinfo(0),"Limit Reach , you may join again later."; sleep2 2000; warp "prontera",155,181; } end; OnInit: // Maximum Player can join per X Minutes. set .MaxPlayers,5; // Adding X Minutes of Delay before can go in again. set .DelayMin,15; // Maximum Hunt Limit per round inside the Zone. set .MaxItemLimit,1000; // Map that will be used in thos Zone. set .Map$,"moc_fild19"; // Clear Map Every X Minutes. set .RoomCleanMin,15; // Mapflag Initialization setmapflag .Map$, mf_nomobloot; setmapflag .Map$, mf_nomvploot; setmapflag .Map$, mf_nowarpto; setmapflag .Map$, mf_nochat; setmapflag .Map$, mf_novending; setmapflag .Map$, mf_nocommand,60; setmapflag .Map$, mf_nojobexp; setmapflag .Map$, mf_nobaseexp; setarray .farm_normal, 501,502,503,504,505; // farm 1 of these items when kill normal mobs setarray .farm_boss, 506,507,508,509,510; // farm 1 of these items when kill boss monsters setarray .normal_mob, 2401,2402,2403,2404; setarray .boss_mob, 1388, 1096, 1120; .farm_normal_size = getarraysize(.farm_normal); .farm_boss_size = getarraysize(.farm_boss); .boss_mob_size = getarraysize(.boss_mob); .normal_mob_size = getarraysize(.normal_mob); while ( true ) { killmonster .Map$, "All"; cleanmap .Map$; // you also forgot about this command mapwarp .Map$,"prontera",155,181; for ( .@i = 0; .@i < 80; .@i++ ) monster .Map$,0,0, "[ Farm Zone ] Resident", .normal_mob[ rand( .normal_mob_size ) ], 1, strnpcinfo(0)+"::OnNormalKill"; for ( .@i = 0; .@i < 5; .@i++ ) monster .Map$,0,0, "[ Farm Zone ] Guardian", .boss_mob[ rand( .boss_mob_size ) ], 1, strnpcinfo(0)+"::OnBossKill"; deletearray .Hunter; announce "[ Farm Zone ] : Farming Zone has been Cleaned up, another 5 Players may go in now.", bc_blue; sleep ( .RoomCleanMin * 60000 ); mapannounce .Map$,"[ Farm Zone ] : Room Clean Up now...All Users will be warped Out.", bc_map; killmonster .Map$, "All"; sleep 3000; } end; }
  5. How do i add a reward on the winning team/party on the end of the match? Thanks! // ------------------------------------------------------------------------------------------ // ------ rAthena Script Release // Title: Simple 4 vs 4 PVP Gateway // Author: jTynne - [email protected] // Version: 0.1 (Beta) // Modification: paopao - [email protected] // ------------------------------------------------------------------------------------------ prontera,161,190,4 script pao 91,{ set .@n$,"[^FF0000Party Battle Royale Manager^000000]"; set .@charid,getcharid(0); mes .@n$; mes "Would you like to register to the Party Battle Royale Tournament?"; next; menu "Yes",-,"No",L_cancel; if(getmapusers("bat_b02") > 0) { mes .@n$; mes "There appears to be a match currently in session. Check back momentarily."; close; end; } mes .@n$; mes "Which side of the arena would you like to join?"; next; menu "Odin ("+$pvp4nA+"/2)",L_odinparty,"Freya ("+$pvp4nB+"/2)",L_freyaparty,"Cancel",L_cancel,"CLEAR",L_clear; L_odinparty: if (getcharid(1) == 0) { mes "You must be a member of a party to register."; close; end; } if ($pvp4nA == 0) { set $partyid1,getcharid(1); mes "You have registered " + getpartyname($partyid1) + " for this tournament session."; mes " "; goto L_odin; } if (getcharid(1) != $partyid1) { mes "Team " + getpartyname($partyid1) + " has already registered for this match. Please wait until the match is over or renewed."; close; end; } if ($pvp4nA > 0) { goto L_odin; } L_freyaparty: if (getcharid(1) == 0) { mes "You must be a member of a party to register."; close; end; } if ($pvp4nB == 0) { set $partyid2,getcharid(1); mes "You have registered " + getpartyname($partyid2) + " for this tournament session."; mes " "; goto L_freya; } if (getcharid(1) != $partyid2) { mes "Team " + getpartyname($partyid2) + " has already registered for this match. Please wait until the match is over or renewed."; close; end; } if ($pvp4nB > 0) { goto L_freya; } L_odin: if(.@charid == $pvp4nAchar1 || .@charid == $pvp4nAchar2 || .@charid == $pvp4nBchar1 || .@charid == $pvp4nBchar2) { mes "Registration Cancelled! You may only register once per round."; close; end; } if($pvp4nA < 2) { set $pvp4nA,$pvp4nA+1; if($pvp4nA == 1) { set $pvp4nAchar1,getcharid(0); set $regidA1,getcharid(3); } if($pvp4nA == 2) { set $pvp4nAchar2,getcharid(0); set $regidA2,getcharid(3);} if($pvp4nA == 1 || $pvp4nB == 1) { if($pvp4timer == 0 ) { initnpctimer; } else {set $pvp4timer,1; } } mes "You've joined the selected team. Once the other four teams have filled up, you'll automatically be transferred into the PVP arena. If all four teams do not fill up within the next 30 seconds, this session will be cleared."; npctalk strcharinfo(0)+" has entered the round on the West side."; if($pvp4nA == 2 && $pvp4nB == 2) { stopnpctimer; goto L_begin;} close; end; } goto L_full; L_freya: if(.@charid == $pvp4nAchar1 || .@charid == $pvp4nAchar2 || .@charid == $pvp4nBchar1 || .@charid == $pvp4nBchar2) { mes "Registration Cancelled! You may only register once per round."; close; end; } if($pvp4nB < 2) { set $pvp4nB,$pvp4nB+1; if($pvp4nB == 1) { set $pvp4nBchar1,getcharid(0); set $regidB1,getcharid(3); } if($pvp4nB == 2) { set $pvp4nBchar2,getcharid(0); set $regidB2,getcharid(3); } if($pvp4nA == 1 || $pvp4nB == 1) { if($pvp4timer == 0 ) { initnpctimer; } else {set $pvp4timer,1; } } mes "You've joined the selected team. Once the other four teams have filled up, you'll automatically be transferred into the PVP arena. If all four teams do not fill up within the next 30 seconds, this session will be cleared."; npctalk strcharinfo(0)+" has entered the round on the East side."; if($pvp4nA == 2 && $pvp4nB == 2) { stopnpctimer; goto L_begin;} close; end; } goto L_full; L_full: mes .@n$; mes "Sorry, but this team is full. Try another team, please."; close; end; L_begin: pvpon "bat_b02"; gvgoff "bat_b02"; npctalk "All four teams have been filled. All participants currently logged in will be transferred to the arena in ten seconds."; sleep2 10000; set .@x,0; L_warploop: while (.@x < 5) { if (.@x == 0) { warpchar "bat_b02",59,149,$pvp4nAchar1; } else if (.@x == 1) { warpchar "bat_b02",59,149,$pvp4nAchar2; } else if (.@x == 2) { warpchar "bat_b02",331,149,$pvp4nBchar1; } else if (.@x == 3) { warpchar "bat_b02",331,149,$pvp4nBchar2; } else { npctalk "A round is now in session."; announce "[Party Battle Royale] Battle Royale match has started.",bc_all,0xD6A4E6; goto L_startround; } set .@x, .@x + 1; } goto L_warploop; end; L_cancel: mes .@n$; mes "Do come back if you change your mind."; close; end; OnTimer10000: announce "[Party Battle Royale] Entry to the Battle Royale ends in 20 seconds.",bc_all,0xD6A4E6; npctalk "Ten seconds have passed. Entry to the round ends in 20 seconds."; end; OnTimer20000: announce "[Party Battle Royale] Entry to the Battle Royale ends in 10 seconds.",bc_all,0xD6A4E6; npctalk "Twenty seconds have passed. Entry to the round ends in 10 seconds."; end; OnTimer30000: announce "[Party Battle Royale] Battle Royale registration has ended and renewed.",bc_all,0xD6A4E6; npctalk "Thirty seconds have passed and thus I have canceled the round."; stopnpctimer; goto L_clear; L_clear: set $pvp4timer,0; set $pvp4nA,0; set $pvp4nB,0; set $pvp4nAchar1,0; set $pvp4nAchar2,0; set $pvp4nBchar1,0; set $pvp4nBchar2,0; end; L_startround: end; } - script paonpc -1,{ OnPCDieEvent: getmapxy (.@map$, .@x, .@y, 0); if(.@map$ == "bat_b02") { } end; OnPCKillEvent: getmapxy (.@map$, .@x, .@y, 0); if( .@map$ == "bat_b02") { set .@tempn1$,strcharinfo(0); set .@tempnid,killedrid; set .@tempn2$,rid2name(killedrid); mapannounce "bat_b02",""+.@tempn1$+" has killed "+.@tempn2$+".",1,0xD6A4E6;} getitem 7829,5; mapannounce "bat_b02",""+killedrid+" "+$pvp4nAchar1+""+$pvp4nAchar2+"",1,0xD6A4E6; mapannounce "bat_b02",""+killedrid+" "+$pvp4nBchar1+""+$pvp4nBchar2+"",1,0xD6A4E6; mapannounce "bat_b02",""+$pvp4nA+""+$pvp4nB+"",1,0xD6A4E6; if ($regidA1 == .@tempnid || $regidA2 == .@tempnid) {set $pvp4nA, $pvp4nA - 1;} if ($regidB1 == .@tempnid || $regidB2 == .@tempnid) {set $pvp4nB, $pvp4nB - 1;} if ($pvp4nA == 0 || $pvp4nB == 0) { set $pvp4nA, 0; set $pvp4nB, 0; set $pvp4nAchar1,0; set $pvp4nAchar2,0; set $pvp4nBchar1,0; set $pvp4nBchar2,0; announce "[Party Battle Royale] Battle Royale match has ended.",bc_all,0xD6A4E6; mapwarp "bat_b02","prontera",156,185; } end; }
  6. Can i request for a simple 1v1 pvp with reward and pots disabled (potions and ygg) script please? thank you!
  7. how do i implement @startevent sir? it says @startevent is unknown command and how can i remove the onclock sir? so that players can access it anytime? thanks in advance!
  8. I'd like to ask on how to add a custom map grf (like on the attached files) properly? just a newbie sorry. i tried extracting it and following that tutorial but i get this error when warping to the custom map. thanks in advance! control_center_map.grf
  9. *SOLVED thanks for your time and effort
  10. should i type those in the terminal sir?
  11. I tried stoping the server and starting it again sir, the 3 screens (char,map and login) is closing really fast.
  12. Its blank sir. what command should i put in? PonyVPS technical support is slow, not responding as of today. I just need to relaunch the 3 screens sir but don't know what command to put in.
  13. on vnc viewer sir. well actually, i restarted my server then the 3 screen disappeared (map, char and login) i dont know how to relaunch it again. what should i type on the terminal sir? sorry just a newbie.
  14. Just wondering what command to use to relaunch the map, char and login server screen?
  15. Where should i type the word "screen" ? sorry just a newbie :/ Here is what i have.. Its not showing the map, char and login screen but it says it has started. Help please. Thanks!
  16. Just wondering how to show the Map, Login and Char screen again? after i restarted my server it says that my server has been restarted but the Map, Login and Char screen disappeared. i cant log in to my server. Need help please. Just a newbie here. Thanks!
  17. thanks for the reply. i'll try that one.
  18. Hi just a newbie here, just wondering how to start/use this npc anytime? thanks! FFA.txt
  19. Already did sir. But when i open it with notepad/notepad++ its all symbols inside sir
  20. How do i edit iteminfo.lub? when i open it with notepad, cant understand it. its all symbols etc.. need help pls? thanks
  21. i tried to hange to loc to 512 and reloaditemdb, i cant wear the item. here it is{ Id: 30032 AegisName: "_sage_ring" Name: "Sage Ring" Type: 5 Buy: 20 Def: 2 Upper: 63 Loc: 512 EquipLv: 1 Refine: false View: 2164 Script: <" bonus bAllStats,5; "> }, but if i change the loc to 1, i can wear it.
  22. Is there any guide on how to change an item position? for example from lower to mid. i tried change the loc to 512 but i cant wear it. need help please. thanks!
  23. [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1193 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1269 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1276 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1208 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1275 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1268 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1272 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1270 [Debug]: Source (NPC): Manager#arug_cas01 (invisible/not on a map) [Status]: Received '34' guild castles from char-server. [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1674 [Debug]: Source (NPC): 3F Gate Switch#jupe at juperos_02 (97,70) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1674 [Debug]: Source (NPC): 3F Gate Switch#jupe at juperos_02 (97,70) [Warning]: buildin_monster: Attempted to spawn non-existing monster class 1674 [Debug]: Source (NPC): 3F Gate Switch#jupe at juperos_02 (97,70) its a long error, just got some of it. Need help pls how to fix this. i installed fresh trunk files already, but still got the same errors. thanks in advance!
×
×
  • Create New...