Jump to content

GM Takumirai

Members
  • Posts

    592
  • Joined

  • Last visited

Everything posted by GM Takumirai

  1. How qbout in the npc if you want to reset the rankings?
  2. put this code set .@type,atoi(strnpcinfo(2)); attachrid(getd(".n_"+.@type+"_master")); getmapxy(getd(".n_"+.@type+"_master_map$"),getd(".n_"+.@type+"_master_x"),getd(".n_"+.@type+"_master_y"),0); getmapxy(getd(".n_"+.@type+"_npc_map$"),getd(".n_"+.@type+"_npc_x"),getd(".n_"+.@type+"_npc_y"),1,strnpcinfo(0)); { for( .@i = 0; .@i < getarraysize( .map$ ); .@i++ ) if( getd(".n_"+.@type+"_master_map$") == .map$[.@i] ){ callsub onendd; break; } put this in the lower part. OnInit: setd ".n_"+atoi(strnpcinfo(2))+"_unit_id",getnpcid(0); set .amount,.amount+1; setarray .map$, "guild_vs1","0", "guild_vs2","1", "guild_vs3","2", "guild_vs4","3", "guild_vs5","4", "06guild_01","5", "06guild_02","6"; end; }
  3. Annie good to see u making ur script collection..
  4. @Euphy - can i request or suggest in your WOE controller to have a guild ranker ?? or guild point system?
  5. Please Support This If you want all this src to add on our rAthena http://rathena.org/b...mage-by-lilith/
  6. Where should i put the OnMinute00: and StartEvent: - thanks sir Emistry
  7. Mysterious how can i set this an automated RFYL? //===== rAthena Script ======================================= //= Run for Your Life //===== By: ================================================== //= Mysterious //===== Current Version: ===================================== //= 2.8 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A Run for your Life event (Based for Novices) //===== TODO: ================================================ // - Change more coding //===== Additional Comments: ================================= //= v1.0 - First release [Mysterious] //= v2.0 - Overhaul of Entire Script [Mysterious] //= v2.1 - Fixed Sentence structures [Mysterious] //= v2.2 - Fixed a Typo and made it obvious what players had to change [Mysterious] //= v2.3 - Removed unnecessary 'next;' thanks to soUPas [Mysterious] //= v2.4 - Fixed an issue where the prize giver was showing up when not supposed to [Mysterious] //= v2.5 - Added Friendly Messages [Mysterious] //= v2.6 - Removed duplicated OnInIt labels [Mysterious] //= v2.7 - Cleaning and organizing [Mysterious] //= v2.8 - Optimized a little better [Mysterious] //============================================================ - script RFYL#disable -1,{ OnInit: disablenpc "Zombie Master"; disablenpc "Present#RFYL"; } xxx,xxx,xxx,xxx script Zombie Minion 1015,{ if (getgmlevel() >= 40) goto LMS_Admin; mes "[Minion]"; if (!.Status) mes "My master seems to be slacking.."; else { mes "My master is currently busy! He has an invasion scheduled!"; } close; LMS_Admin: next; if (!.Status) mes "[Minion]"; mes "My master has no invasion planned at the moment. Do you wish to schedule an invasion?"; menu "- Start Event",M_RFYL,"- Spectate",M_warp,"- End Event",M_EndEvent,"- No Thanks",M_Leave; else { mes "[Minion]"; mes "Sorry! But there's already an invasion scheduled! Come back later."; } close; M_RFYL: next; mes "[Minion]"; mes "Hold on while I call my master."; close2; goto StartEvent; M_warp: next; mes "[Minion]"; mes "Very well, I will warp you to the map!"; warp "quiz_01",42,369; close; M_Leave: next; mes "[Minion]"; mes "Ok " + strcharinfo(0) +"! Please come back after."; close; M_EndEvent: next; mes "[Minion]"; mes "Ok master, I will stop the event for you right away!"; next; set .Status,0; disablenpc "Zombie Master"; disablenpc "Present#RFYL"; killmonsterall "quiz_01"; areawarp "quiz_01",10,10,450,450,"rachel",120,135; stopnpctimer; disablenpc "Zombie Minion"; warp "rachel",120,135; sleep 180000; enablenpc "Zombie Minion"; // ========================= StartEvent: //Announcement to notify all players // ========================= set .Status,1; announce "Zombie Vs. Novice event Will begin in 3 minutes. Head East/North",0; killmonsterall "quiz_01"; sleep 55000; announce "Zombie Vs. Novice event will begin in 2 minutes! Head East/North",0; sleep 5000; announce "Zombie Master: I have now appeared in Rachel!",0; enablenpc "Zombie Master"; sleep 60000; announce "Zombie Vs. Novice event will begin in 1 minute!",0; sleep 30000; mapannounce "quiz_01","In 30 seconds the zombies will spawn!",0; sleep 25000; announce "Zombie Vs. Novice event will begin in ~5~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~4~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~3~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~2~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~1~",0; sleep 1000; announce "Zombie Vs. Novice event has now begun!",0,0x00FF00; disablenpc "Zombie Master"; // ========================= // Round 1 // ========================= sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 55000; // ========================= // Round 2 // ========================= mapannounce "quiz_01","Round 2!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-2",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-2",1015,1; // ========================= // Round 3 // ========================= mapannounce "quiz_01","Round 3!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-3",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-3",1015,1; // ========================= // Round 4 // ========================= mapannounce "quiz_01","Round 4!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-4",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie-4",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-4",1015,1; // ========================= // Round 5 // ========================= mapannounce "quiz_01","Round 5!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-5",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-5",1015,1; // ========================= // Round 6 // ========================= mapannounce "quiz_01","Round 6!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-6",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-6",1015,1; // ========================= // Round 7 // ========================= mapannounce "quiz_01","Round 7! Final Round!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 20000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 30000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 40000; monster "quiz_01",42,369,"Zombie-7",1036,1; sleep 50000; monster "quiz_01",42,369,"Zombie-7",1036,1; sleep 60000; monster "quiz_01",42,369,"Zombie-7",1015,1; initnpctimer; end; // ========================= // End of Rounds // ========================= OnTimer0500: if ( getmapusers("quiz_01") == 0 ) { killmonsterall "quiz_01"; announce "RFYL Event: Event has ended. No one has joined.",0; stopnpctimer; end; } else if ( getmapusers("quiz_01") > 1 ) { mapannounce "quiz_01",getmapusers("quiz_01") +" has survived the event.",0,0x00FF00;; initnpctimer; end; } initnpctimer; end; // ========================= // When players die // ========================= OnPCDieEvent: getmapxy .@mapnvz$,.@xnvz,.@ynvz,0; if ( .@mapnvz$ == "quiz_01") { sleep2 100; warp "rachel",120,135; atcommand "@alive "+ strcharinfo(0); dispbottom "Sorry, but you were killed."; } sleep2 500; if (.@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) { killmonsterall "quiz_01"; mapannounce "quiz_01","You have won, approach the Present NPC please.",0; enablenpc "Present#RFYL"; stopnpctimer; end; } end; } quiz_01,42,378,3 script Present#RFYL 72,{ mes "[Present For You]"; mes "Please tell me your name:"; next; input .@name$; if(.@name$ != strcharinfo(0)) { mes "[Present For You]"; mes "Are you sure that is your name?"; close; } mes "[Present For You]"; mes "Congrats. You've won."; close2; announce "Present For You: We have a winner! "+.@name$+" has won the Novice vs Zombie event!",0; getitem 674, 3; // Change This item id to what ever you want warp "rachel",120,135; disablenpc "Present#RFYL"; set .Status,0; end; } xxxx,xxx,xxx,xxx script Zombie Master 1298,{ if (BaseLevel > 1) goto L_ClassLevel; //Change '1' to your desired level if (class == 0) goto L_Event; //Checks if the player is a Novice, if so, proceeds into the event. if (class > 0) goto L_ClassLevel; //Checks if the Player is NOT a Novice. If they aren't, they are not allowed to participate. L_Event: mes "[ ^0000FFZombie Master^000000 ]"; mes "You wish to participate the Zombie Vs. Novice event?"; next; switch(select("- Yes","- No")) { case 1: sc_end SC_ALL; percentheal 100,100; warp "quiz_01",42,369; end; break; case 2: next; mes "[ ^0000FFZombie Master^000000 ]"; mes "Come back when your ready."; close; break; L_ClassLevel: mes "[ ^0000FFZombie Master^000000 ]"; mes "Sorry, but it seems you are not a Novice and Level 1."; close; } // ========================= // Mapflags // ========================= quiz_01 mapflag nowarpto quiz_01 mapflag nowarp quiz_01 mapflag noteleport quiz_01 mapflag nomemo quiz_01 mapflag nosave SavePoint quiz_01 mapflag nobranch quiz_01 mapflag noicewall quiz_01 mapflag nopenalty quiz_01 mapflag nobranch quiz_01 mapflag noexp quiz_01 mapflag noreturn quiz_01 mapflag pvp_noparty quiz_01 mapflag restricted 1
  8. can i know how to make this? a quest script but using alt + u to appear the quest display menu?.. any help or guide please..
  9. I vote ricky will be titted as rathena contributor.. Thanks this
  10. yes there was a script that is paid.. but i requested a same script that is from a scratch.. not copying his whole script..
  11. No Offense to the Control Panel Ingame posted by Zephyr. //===== eAthena Script ======================================= //= User Account Editor //===== By =================================================== //= lllchrislll //===== Version ============================================== //= 1.0 - Script Made // - Added Reset Equip // - Added Change Slot // - Fixed Change Slot Bug // Changed from Menu > input //= 1.1 - Fixxed minor Bugs //===== Compatible With ====================================== //= Every eAthena Version //===== Description ========================================== //= This Script allows Player's editing their Account in-Game // like an Control Panel. //= For GM's over Level 40: //- View Server Statistic //- View your own Account - Same as Player //- View other Char's Account Details by typing // the name of an character bounded to it; such us E-Mail, IP, // for GM's with Level 80 and higher Username and Account ID as well //===== Comments ============================================= //= .@max_ch: Max Characters per Account, please // put the number you have or the Slot Change Part // won't work like it should. // For Renewal Servers : src/common/mmo.h > #define MAX_CHARS // Don't know for older servers anymore though. //============================================================ gonryun,151,89,6 script In-Game CP 110,{ if (!getgroupid()) { mes "You are not VIP."; close; } set .@max_ch,21; // Max Characters per Account set .@n$,"^55AA88[Control Panel]^000000"; mes .@n$; mes "Hello, " + strcharinfo(0); mes "I can tell you your Account"; mes "Settings, as well I can"; mes "change them for you."; mes "What do you like to do?"; next; if(getgmlevel() >= 40) goto GM_Menu; menu "- Show my Info",CP_My,"- Nothing",CP_Quit; close; //================== GM_Menu ================== GM_Menu: if(select("- View Players Account's:- View my Account:- View Server Statistic") == 1) { //===================== View other Player's Account ===================== mes .@n$; mes "Please type the character"; mes "name you want and I'll find the"; mes "Account bounded to it."; input @s_char$; next; mes .@n$; if(@s_char$ == "") { mes "Character Name is invalid."; close;} query_sql "SELECT `account_id` FROM `char` WHERE `name` = '"+@s_char$+"'",@s_accid; if(!@s_accid) { mes "Character Name is invalid."; close;} query_sql "SELECT `userid` , `sex` , `email` , `logincount` , `last_ip` FROM `login` WHERE `account_id` = '"+@s_accid+"'",@user$,@sex$,@email$,@login,@last_ip$; if(getgmlevel() >= 80) { mes "Username: " + @user$; mes "Account ID: " + @s_accid; } mes "Gender: " + @sex$; mes "E-Mail: " + @email$; mes "Login Count: " + @login; mes "Last IP: " + @last_ip$; mes " "; mes "Duo user protection"; mes ((getgmlevel() >= 80) ? "the Password" : "the Username, Account ID and Password"); mes "won't be shown."; close; //=================================================== //================= View my Account ============= } else if(@menu == 2) { CP_My: query_sql "SELECT `userid` , `sex` , `email` , `logincount` , `last_ip` FROM `login` WHERE `account_id` = '"+getcharid(3)+"'",@user$,@sex$,@email$,@login,@last_ip$; mes .@n$; mes "Username: " + @user$; mes "Account ID: " + getcharid(3); mes "Gender: " + @sex$; mes "E-Mail: " + @email$; mes "Login Count: " + @login; mes "Your IP: " + @last_ip$; mes " "; mes "Duo user protection"; mes "the password won't be shown."; mes "What now?"; next; switch(select("- View Char's:- Edit E-Mail:- Edit Gender:- Nothing")) { //============== View Char's ============ case 1: mes .@n$; mes "Choose a character, if you"; mes "want to change something."; query_sql "SELECT `char_num` , `name` , `class` , `base_level` , `job_level` , `zeny` , `str` , `agi` , `vit` , `int` , `dex` , `luk` , `last_map` , `last_x` , `last_y` , `save_map` , `save_x` , `save_y` FROM `char` WHERE `account_id` = '"+getcharid(3)+"' ORDER BY `base_level` DESC",@char_num,@name$,@class,@base_level,@job_level,@zeny,@str,@agi,@int,@vit,@dex,@luk,@last_map$,@last_x,@last_y,@save_map$,@save_x,@save_y; set @menu$,""; mes " "; set @menu$,"- " + @name$[0] + ""; mes "^FF0000~ "+@name$[0]+" ~^000000"; mes "---------------------"; mes "[base/Job: " + @base_level[0] + "/" + @job_level[0] + "]"; mes "(Class: " + jobname(@class[0]) + ")"; mes "====================="; for( set @a,1; @a < getarraysize(@name$); set @a,@a + 1) { mes "^FF0000~ "+@name$[@a]+" ~^000000"; mes "---------------------"; mes "[base/Job: " + @base_level[@a] + "/" + @job_level[@a] + "]"; mes "(Class: " + jobname(@class[@a]) + ")"; mes "====================="; set @menu$,@menu$ + ":- " + @name$[@a] + ""; } next; if((prompt(@menu$) - getarraysize(@name$)) > 0) { close; } else { set @m,@menu - 1; mes .@n$; mes "You have chosen:"; mes "^FF0000~ "+@name$[@m]+" ~^000000"; mes "Base/Job: " + @base_level[@m] + "/" + @job_level[@m]; mes "Class: " + jobname(@class[@m]); mes "Zeny: " + @zeny[@m]; mes " "; mes "Strenght: " + @str[@m]; mes "Agility: " + @agi[@m]; mes "Vitality: " + @vit[@m]; mes "Intelligence: " + @int[@m]; mes "Dexterity: " + @dex[@m]; mes "Luck: " + @luk[@m]; mes " "; mes "Position:"; mes "Current Map: " + @last_map$[@m]; mes "Cooardinates x: " + @last_x[@m] + ", y: " + @last_y[@m]; mes " "; mes "Savepoint:"; mes "Map: "+ @save_map$[@m] + " x: " + @save_x[@m] + ", y: " + @save_y[@m]; mes "What do you want to do?"; next; switch(select("- Reset Position:- Reset Style:- Change Slot:- Reset Equip:- Nothing")) { //=============================== Reset Position ============================ case 1: mes .@n$; query_sql "SELECT `online` FROM `char` WHERE `name` = '"+escape_sql(@name$[@m])+"'",@online; if(@online) { mes "I'm sorry, but I can't reset the"; mes "position of the chosen character"; mes "while you are logged-in on it."; close; } mes "I will reset the position now."; query_sql "UPDATE `char` SET `last_map` = '"+@save_map$[@m]+"' , `last_x` = '"+@save_x[@m]+"' , `last_y` = '"+@save_y[@m]+"' WHERE `name` = '"+escape_sql(@name$[@m])+"'"; close; //=============================== Reset Style ============================ case 2: mes .@n$; mes "This will reset your"; mes "whole style."; next; if(select("- Proceed:- Stop!!") - 1) { mes .@n$; mes "As you wish."; mes "Your request has been canceled."; close; } else { mes .@n$; query_sql "SELECT `online` FROM `char` WHERE `name` = '"+escape_sql(@name$[@m])+"'",@online; if(@online) { mes "I'm sorry, but I can't reset the"; mes "style of the chosen character"; mes "while you are logged-in on it."; close; } query_sql "UPDATE `char` SET `hair` = '0' , `hair_color` = '0' , `clothes_color` = '0' WHERE `name` = '"+escape_sql(@name$[@m])+"'"; mes "Your request has been completed."; close; } //=============================== Change Character Slot ============================ case 3: set @menu_c$,""; mes .@n$; mes "The slots, which are used:"; mes " "; for( set @num,0; @num < getarraysize(@char_num); set @num,@num + 1) { mes @char_num[@num] + ". " + @name$[@num]; } mes " "; mes "Into which Slot do you want to change?"; next; input @num_ch; mes .@n$; if(@num_ch > .@max_ch) { mes "I'm sorry, but you"; mes "have put an invalid"; mes "number. Try again please."; close; } mes "You have chosen:"; mes @num_ch + "."; mes " "; mes "I will change the slot now."; mes "Is that correct?"; if(select("- Yes, continue:- No, wrong") - 1) { close; } else { next; mes .@n$; query_sql "SELECT `online` FROM `char` WHERE `name` = '"+escape_sql(@name$[@m])+"'",@online; if(@online) { mes "I'm sorry, but I can't change the"; mes "Slot of the chosen character"; mes "while you are logged-in on it."; close; } for(set @n_ct,0; @n_ct < getarraysize(@char_num); set @n_ct,@n_ct + 1) { if(@char_num[@n_ct] == @num_ch) { mes "I'm sorry, but this"; mes "Slot is in use already."; mes "Try again please."; close; } } query_sql "UPDATE `char` SET `char_num` = '"+@num_ch+"' WHERE `name` = '"+escape_sql(@name$[@m])+"'"; mes "Your request has been completed."; close; } //================================ Reset Equip =============================== case 4: mes .@n$; mes "Wanna reset your Equip?"; if(select("- Yes, please:- No, thanks") - 1) { close; } else { next; mes .@n$; query_sql "SELECT `online` FROM `char` WHERE `name` = '"+@name$[@m]+"'",@online; if(@online) { mes "I'm sorry, but I can't reset"; mes "your equipment of this character"; mes "while you are logged-in on it."; close; } mes "I will start now."; query_sql "UPDATE `inventory` SET `equip` = '0' WHERE `char_id` = '"+getcharid(0,escape_sql(@name$[@m]))+"'"; query_sql "UPDATE `char` SET `weapon` = '0' , `shield` = '0' , `head_top` = '0' , `head_mid` = '0' , `head_bottom` = '0' WHERE `name` = '"+escape_sql(@name$[@m])+"'"; next; mes .@n$; mes "Your request has been completed."; close; } //===================== Nothing ===================== case 5: goto CP_Quit; break; } // Edit Char - End } // Choose Char - End //============== Edit Mail ============ case 2: mes .@n$; mes "Now input the new E-Mail"; mes "Address:"; mes "Note: Type 'Cancel' for"; mes "aborting your attempt."; next; input @mail_n$; if(@mail_n$ == "Cancel") goto CP_Quit; mes .@n$; mes "Old E-Mail:" +@email$; mes "New E-Mail:" +@mail_n$; mes " "; mes "Is that correct?"; next; if(select("- Yes, proceed please:- No, cancel it") - 1) { mes .@n$; mes "As you wish."; mes "Your request has been canceled."; close; } else { mes .@n$; mes "You're E-Mail will be changed now."; next; query_sql "UPDATE `login` SET `email` = '"+escape_sql(@mail_n$)+"' WHERE `account_id` = '"+getcharid(3)+"'"; mes .@n$; mes "Your request has been completed."; close; } //============== Edit Gender - 1 Month delay ============ case 3: mes .@n$; if(gettimetick(2) < #sexch) { mes "You can't change your"; mes "gender again. The time left:"; mes #sexch - gettimetick(2) + " Seconds."; close; } mes "Note: Delay between changing your"; mes "gender again is one month."; mes "Wanna still change it?"; next; if(select("- Yes, proceed please:- No, cancel it") - 1) { mes .@n$; mes "As you wish."; mes "Your request has been canceled."; close; } else { mes .@n$; mes "You're gender will be changed now,"; mes "you'll be kicked afterwards."; next; mes .@n$; mes "Your request has been completed."; close2; set #sexch,gettimetick(2) + 2592000; changesex; end; } //===================== Nothing ===================== case 4: goto CP_Quit; break; } } else if(@menu == 3) { //=============== Server Statistic =================== query_sql "SELECT count(*) FROM `login` WHERE `account_id` > 1",.@count_acc; query_sql "SELECT count(*) FROM `char`",.@count_char; query_sql "SELECT `zeny` FROM `char` WHERE `zeny` > 0",.@count_zeny; for( set .@z,0; .@z < getarraysize(.@count_zeny); set .@z,.@z + 1) set .@total_zeny,.@total_zeny + .@count_zeny[.@z]; next; mes .@n$; mes "Total Accounts: " + .@count_acc; mes "Total Characters: " + .@count_char; mes "Total Zeny: " + .@total_zeny; next; menu "Show Online Players",-,"Nothing",CP_Quit; mes .@n$; mes "I will now show the list of the"; mes "Online Players in your Chat Box."; close2; dispbottom "======~-[)* Online <†> Players *(]~-========"; query_sql "SELECT `name` , `class` , `base_level` , `job_level` FROM `char` WHERE `online` = '1'",.@name$,.@class,.@b_level,.@j_level; for( set .@a,0; .@a < getarraysize(.@name$); set .@a,.@a + 1) dispbottom .@name$[.@a] + " [base/Job: " + .@b_level[.@a] + "/" + .@j_level[.@a] + "] (Class: " + jobname(.@class[.@a]) + ")"; end; } //=================== Quit Message ================== CP_Quit: mes .@n$; mes "Farewell, " + strcharinfo(0); close; //============== End of Script =================== } - Request: Some Add-On / Feature Like: - Last IP - Same IP - and more.. Just post here if you want to add some feature so that scripters will help improve this script..
  12. - i would like to thank malufet for dedicating his time to this community.. - as i can see, the most commit done in the svn development was made by malufet / rud0lp20 and all of his commit is regarding skills of 3rd job which is the most or the priority that should be fix.. and also i will not forget to thanks rAthena team for the development or hard work in this svn.. - hope there will be some dev manager that will fix those skills issue..
  13. Yes well explained thanks for supporting this
  14. Any status or update?.. thanks
  15. As stolao said in example +1 for this topic.. the problem in item_trade if you list an item there all item will be account bound same as mob drops.. by use of this item bound sytem we can bound an item and the item drop in monster will not be change.. hope this will be implemented..
  16. hope you can finish this as soon as possible.. also just post your needs in script so we can gather information also to help you..
  17. gonryun,167,102,3 script LMS Manager 106,{ mes "[LMS Manager]"; mes "Hello What can I do for you?"; next; menu "Register",-,"What is LMS?",what,"Leave",leave; next; mes "[LMS Manager]"; mes "Thank you for registering Mr. " + strcharinfo(0) + ", Have fun!"; close2; npctalk ""+strcharinfo(0)+" has registered for the Last Man Standing."; warp "guild_vs5",0,0; end; what: mes "[LMS Manager]"; mes "LMS is also known as Last Man Standing Event"; next; mes "[LMS Manager]"; mes "LMS is also like a PvP."; mes "The only difference is at LMS you will get 50 Cash Point if you are the Last Man Standing at the arena."; next; mes "[LMS Manager]"; mes "That's all"; close; leave: mes "[LMS Manager]"; mes "I hope you will register next time"; close; OnTue0800: OnTue1100: OnTue1400: OnTue1700: OnThu0800: OnThu1100: OnThu1400: OnThu1700: enablenpc "LMS Manager"; delwaitingroom; waitingroom "L.M.S. Registration",0; pvpoff "guild_vs5"; announce "LMS Manager: The Last Man Standing event will be starting shortly.",0; sleep2 1000; announce "LMS Manager: Those who want to play, please proceed to Prontera and Register.",0; sleep2 1000; announce "LMS Manager: After 1 Minute the Registration will close.",0; sleep2 60000; announce "LMS Manager: Please go to Gonryun and Register now if you want to join.",0; disablenpc "Mr. Banker"; sleep2 1500; announce "LMS Manager: Last 30 seconds.",0; sleep2 30000; announce "LMS Manager: If you want to join please Register in Prontera.",0; sleep2 5000; for( set .@s,10; .@s > 0 ; set .@s,.@s - 1 ){ announce "LMS Manager: "+.@s+" Seconds to go ~ Hurry Up !!",0; sleep2 1000; } announce "LMS Manager: Time's up.",0; delwaitingroom; disablenpc "LMS Manager"; stopnpctimer; pvpoff "guild_vs5"; mapannounce "guild_vs5","LMS Manager: The Last Man Standing Event will start shortly",0; sleep2 1000; if(getmapusers("guild_vs5") == 1){ mapannounce "guild_vs5","LMS Manager: Event Ended 1 Participant Only..",0; pvpoff "guild_vs5"; mapwarp "guild_vs5","prontera",0,0; stopnpctimer; } mapannounce "guild_vs5","LMS Manager:But before we start this is just a few reminders..",0; sleep2 1000; mapannounce "guild_vs5","LMS Manager:Using Cloaking , Hiding is strictly not allowed..",0; sleep2 1000; mapannounce "guild_vs5","LMS Manager: Only the Last Man Standing will win this event!!",0; sleep2 1000; mapannounce "guild_vs5","LMS Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0; sleep2 1000; mapannounce "guild_vs5","LMS Manager: Get ready at the count of 5 we will start!....",0; sleep2 1000; for( set .@s,5; .@s > 0; set .@s,.@s - 1 ){ mapannounce "guild_vs5","LMS Manager: "+.@s+" Seconds to go ~ !!",0; sleep2 1000; } pvpon "guild_vs5"; enablenpc "Mr. Banker"; initnpctimer; end; OnTimer5000: if(getmapusers("guild_vs5") == 0){ Announce "Event Cancelled due to lack of participants.",0; stopnpctimer; }else if(getmapusers("guild_vs5") == 1){ mapannounce "guild_vs5","Mr. Banker: Please talk to me to get your prize..",0; pvpoff "guild_vs5"; stopnpctimer; }else if(getmapusers("guild_vs5") == 2){ mapannounce "guild_vs5","Mr. Banker: Last 2 Brave warriors are still alive!",0; initnpctimer; } end; OnInit: disablenpc "Mr. Banker"; disablenpc "LMS Manager"; end; } //-------------------------- guild_vs5,49,49,6 script Mr. Banker 56,{ if(getmapusers("guild_vs5") > 1){ npctalk "Only the last Survivor can talk with me."; end; } mes "[banker]"; mes "Congrats. You've won."; next; announce "Mr. Banker: We have a winner! well done "+strcharinfo(0)+".",0; getitem 7711, 1; set #kill_point,0; dispbottom "+1 Event Ticket"; mes "You will return now"; close2; warp "prontera",155,182; disablenpc "Mr. Banker"; end; OnInit: while(1){ delwaitingroom; waitingroom "["+getmapusers("guild_vs5")+"] Participants ",0; sleep 1000; } end; OnPCDieEvent: if( strcharinfo(3) != "guild_vs5")end; set #kill_point, 0; announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all; sleep2 100; warp "prontera",155,181; end; OnPCKillEvent: if( strcharinfo(3) != "guild_vs5")end; set #kill_point,#kill_point+1; if ( #kill_point % 4 == 0) { announce ""+strcharinfo(0)+" have made 4 Consecutive Kills!!He will be granted an item",bc_all; getitem 7711, 1; } end; } // == Mapflags guild_vs5 mapflag pvp guild_vs5 mapflag nowarp guild_vs5 mapflag nowarpto guild_vs5 mapflag noteleport guild_vs5 mapflag nosave guild_vs5 mapflag nomemo guild_vs5 mapflag nobranch guild_vs5 mapflag pvp_noparty guild_vs5 mapflag nocommand 80 guild_vs5 mapflag restricted 1 - try this
  18. Thanks for the hard work guys..
×
×
  • Create New...