Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×

donkeyg

Members
  • Posts

    1060
  • Joined

  • Last visited

Everything posted by donkeyg

  1. try check is guild_vs1 having a pvp mapflag or not though, it should display on the map-server.exe console if conflicted the prize gives to all guild member survive in the room http://hercules.ws/board/topic/4495-king-of-emperium-hill/?p=29343 seriously ... you just have to scroll down a little bit of that topic and you'll find your answer ... if ( getcharid(2) == $koegid && getguildmasterid( getcharid(2) ) == getcharid(0) ) getitem 671, 10; getitem 675, 10; Zeny += 10000000; // configure prize here is this correct if i wan to reward to guild master only... and also 1 questions.. what if the guild leader is not inside the room after the KoE ended? will the guild master able to go in and get the reward from npc?? or maybe u can make it auto transfer the item to the guild leader inventory..
  2. I thought I have already *gvgon the "guild_vs1" ?in a gvg mapflag, the players are immediately warp out after they die thanks.. but now problem is guildmate able to hit self's guildmate=.= .. same guild can hit each other also may i ask the prizes is belong to winner or who survival in the emp room?
  3. THANK YOU SO MUCH! btw i have 1 more suggestion.., can u warp the players out after they died?
  4. how about to guild master only?
  5. tq .. hwo do i change the prize to zeny instead of item? and also reward to GUILD MASTER only
  6. CC script.c CC storage.c CC skill.c CC atcommand.c CC battle.c battle.c: In function ‘battle_check_target’: battle.c:6602: error: ‘TBL_MOB’ has no member named ‘class_’ battle.c:6603: error: ‘mapreg’ undeclared (first use in this function) battle.c:6603: error: (Each undeclared identifier is reported only once battle.c:6603: error: for each function it appears in.) battle.c:6603: error: ‘script’ undeclared (first use in this function) make[1]: *** [obj_sql/battle.o] Error 1 make[1]: Leaving directory `/home/sg04/trunk/src/map' make: *** [map] Error 2 Recompile failed. Please check again. http://rathena.org/board/topic/91479-how-to-change-the-time-of-koe-event-every-saturday/?p=240761 i follow the guide 100% no wrong... i get error when i compile the server.. please help. my Battle.c m = target->m; //t_bl/s_bl hold the 'master' of the attack, while src/target are the actual //objects involved. if( (t_bl = battle_get_master(target)) == NULL ) t_bl = target; if( (s_bl = battle_get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) { TBL_PC *sd = BL_CAST( BL_PC, s_bl ); if ( ( ( (TBL_MOB*)target )->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && ( sd->status.guild_id == mapreg->readreg( script->add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) ) return 0; } my battle.h #ifndef _BATTLE_H_ #define _BATTLE_H_ #include "../common/mmo.h" #include "../config/core.h" #include "map.h" //ELE_MAX #include "mapreg.h"
  7. hi bro how do i reduce the damage by 50% and hide the display damage.. make it same like WoE style.
  8. If you set this to for example "13" then monsters should no longer be doing non-elemental damage but rather neutral damage and the normal rules for neutral damage reduction applies. But that's -30% for renewal and -75% for pre-renewal by default, so you'll have to change the elemental table to 80% as explained above. hmm i couldnt find "70" this number in my txt.. this is my file // Elemental Attribute Damage Adjustment Tables // // Structure of Database: // Columns - attacker's weapon element // Rows - target's defense element 1,10 // lv1 Attribute table //Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und 100, 100, 100, 100, 100, 100, 100, 100, 25, 100, // Neutral 100, 25, 100, 150, 50, 100, 75, 100, 100, 100, // Water 100, 100, 100, 50, 150, 100, 75, 100, 100, 100, // Earth 100, 50, 150, 25, 100, 100, 75, 100, 100, 125, // Fire 100, 175, 50, 100, 25, 100, 75, 100, 100, 100, // Wind 100, 100, 125, 125, 125, 0, 75, 50, 100, -25, // Poison 100, 100, 100, 100, 100, 100, 0, 125, 100, 150, // Holy 100, 100, 100, 100, 100, 50, 125, 0, 100, -25, // Shadow 25, 100, 100, 100, 100, 100, 75, 75, 125, 100, // Ghost 100, 100, 100, 100, 100, 50, 100, 0, 100, 0, // Undead 2,10 // lv2 Attribute table //Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und 100, 100, 100, 100, 100, 100, 100, 100, 25, 100, // Neutral 100, 0, 100, 175, 25, 100, 50, 75, 100, 100, // Water 100, 100, 50, 25, 175, 100, 50, 75, 100, 100, // Earth 100, 25, 175, 0, 100, 100, 50, 75, 100, 150, // Fire 100, 175, 25, 100, 0, 100, 50, 75, 100, 100, // Wind 100, 75, 125, 125, 125, 0, 50, 25, 75, -50, // Poison 100, 100, 100, 100, 100, 100, -25, 150, 100, 175, // Holy 100, 100, 100, 100, 100, 25, 150, -25, 100, -50, // Shadow 0, 75, 75, 75, 75, 75, 50, 50, 150, 125, // Ghost 100, 75, 75, 75, 75, 25, 125, 0, 100, 0, // Undead 3,10 // lv3 Attribute table //Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, // Neutral 100, -25, 100, 200, 0, 100, 25, 50, 100, 125, // Water 100, 100, 0, 0, 200, 100, 25, 50, 100, 75, // Earth 100, 0, 200, -25, 100, 100, 25, 50, 100, 175, // Fire 100, 200, 0, 100, -25, 100, 25, 50, 100, 100, // Wind 100, 50, 100, 100, 100, 0, 25, 0, 50, -75, // Poison 100, 100, 100, 100, 100, 125, -50, 175, 100, 200, // Holy 100, 100, 100, 100, 100, 0, 175, -50, 100, -75, // Shadow 0, 50, 50, 50, 50, 50, 25, 25, 175, 150, // Ghost 100, 50, 50, 50, 50, 0, 150, 0, 100, 0, // Undead 4,10 // lv4 Attribute table //Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, // Neutral 100, -50, 100, 200, 0, 75, 0, 25, 100, 150, // Water 100, 100, -25, 0, 200, 75, 0, 25, 100, 50, // Earth 100, 0, 200, -50, 100, 75, 0, 25, 100, 200, // Fire 100, 200, 0, 100, -50, 75, 0, 25, 100, 100, // Wind 100, 25, 75, 75, 75, 0, 0, -25, 25,-100, // Poison 100, 75, 75, 75, 75, 125,-100, 200, 100, 200, // Holy 100, 75, 75, 75, 75, -25, 200,-100, 100,-100, // Shadow 0, 25, 25, 25, 25, 25, 0, 0, 200, 175, // Ghost 100, 25, 25, 25, 25, -25, 175, 0, 100, 0, // Undead
  9. Thanks for the explanation!! btw how do i make non-elemental damage deals 80% damage to ghost element armor?
  10. bonus bDefEle,Ele_Ghost; and bonus2 bSubEle,Ele_Ghost,100; are the same? are the same?
  11. Put like this? L1: if (getmapusers("guild_vs3.gat") > 99) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5; if( rand(2) ){ warp "guild_vs3",69,30; }else{ warp "guild_vs3",140,40; } close; If i wan 3random location. L1: if (getmapusers("guild_vs3.gat") > 99) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5; if( rand(3) ){ warp "guild_vs3",69,30; }else{ warp "guild_vs3",140,40; }else{ warp "guild_vs3",30,30; } close; Like this? is it correct?
  12. prontera,161,183,4 script PvP Warper::pvp#1 808,{ mes "[PvP Warper]"; L_Yes: mes "[PvP Warper]"; mes "Which PvP Arena do you want to enter?"; menu "Free For All PvP Arena [" + getmapusers("guild_vs3.gat") + "]",L1, end; L1: if (getmapusers("guild_vs3.gat") > 99) goto Lsorry; announce "[ "+strcharinfo(0)+" ] has entered to the PvP Arena Room",0,0x81DAF5; warp "guild_vs3",0,0; close; how to make it warp to 2 random place ONLY EITHER "Guild_vs3 69,30" or "guild_vs3 140,40" ONLY? bump bumppppppp pls help anyone.
  13. can u modify my script that can change to money as well? because i got alot item wan to add it too..
  14. //===== eAthena Script ======================================= //= eAthena PVP-Ladder //===== By: ================================================== //= Terces //===== Current Version: ===================================== //= 1.7.2 //===== Compatible With: ===================================== //= Any Athena Version that has "for" implemented //===== Credits: ============================================= //= The whole eAthena Board and the eAthena Chat //===== Notes: =============================================== //= Note 1: //= Experience gain works like this formula: //= ($@LadderLength-(<new position>-1))*$@LadderExp //= so if someone gets the first place he'll get //= $@LadderLength*$@LadderExp experience points. //============================================================ //= Fixxed by Dante //= V1.7.2 //= Hosted by Dant3 aka Dante // HAFE FUN! READ THE TOPIC! IT DONT WORKS MAYBE ON OLDER REV // // // LAST UPDATE: 12th,February.2008 // // Main Script - Terces (Main Thanks to Terces ) // V1.7.0 - Dant3 // v1.7.1 - AnnieRuRu // v1.7.2 - Dant3 // THIS SCRIPT WORKS ONLY ON THE NEW EATHENA REVISIONS! ENJOY! - script PVPLADDEROPTIONS -1,{ end; OnInit: // 0 = Disabled (NO) // 1 = Enable (YES) set $@languageselect, 0; //Enable/Disable language selection [English/German] (Default: 1) set $@LadderAnnounce, 0; //Enable/Disable the announcement when a char reaches a new position in the ladder (Default: 1) set $@LadderLength, 15; //Set the length of the Ladder [!Not higher than 128!] (Default: 30) set $@LadderSteps, 10; //Set the views per page (Default: 10) set $@LadderExpGain, 100; //Enable/Disable experience gain when reaching a new position in the ladder (*Note1) set $@LadderExp, 150; //Set Experience gain value (*Note1) // Update v1.7.0 set $@LadderZenyGain, 1; //Enable/Disable zeny gain when reaching a new position in the ladder set $@LadderZeny, 100; //Set Zeny gain value set $@LadderChatRoom, 1; //Enable/Disable an Chat Room over the NPC with the message "PvP Ladder" (Users can not enter the Chat room) // Update v1.7.1 (Thanks to AnnieRuRu) // Added GM PvP Ladder Reset Function // Update v1.7.2 // Thanks to for the Feedback set $@LadderAskLogin, 1; //Enable/Disable that the NPC asks about the Broadcast when a Player logins / or with the Npc Chat (0 = Login Ask , 1 = Npc Chat) Related: 0 } - script PVPLADDERS -1,{ OnPCKillEvent: if (terces_PVP_resets != $terces_PVP_resets) { dispbottom "Please relog your character, in order to get the correct kills for you in the PVP ladder."; dispbottom "Because a GM just reset the ladder."; end; } if ( killedrid == getcharid(3) ) { set PVPDeaths, PVPDeaths +1; set #PVPDeathsAccount, #PVPDeathsAccount +1; set @PVPDeathstoday, @PVPDeathstoday +1; end; } set $@PVPcounter,$@PVPcounter+1; set getd("$@PVPKill"+$@PVPcounter),getcharid(3); //getd to avoid errors when more than 1 people kill someone attachrid(killedrid); set PVPDeaths,PVPDeaths+1; set @PVPDeathstoday,@PVPDeathstoday+1; set #PVPDeathsAccount,#PVPDeathsAccount+1; set getd("$@PVPkilledplayer"+$@PVPcounter+"$"), strcharinfo(0); //again, getd to avoid possible glitches detachrid; attachrid(getd("$@PVPKill"+$@PVPcounter)); CountKills: set PVPKills,PVPKills+1; set @PVPKillstoday,@PVPKillstoday+1; set #PVPKillsAccount,#PVPKillsAccount+1; setarray @playerstats[0],@PVPKillstoday,@PVPDeathstoday,PVPKills,PVPDeaths,#PVPKillsAccount,#PVPDeathsAccount; l_ladder: set @considerdeath,0; for (set @PosinLadder, 0; @PosinLadder < $@LadderLength; set @PosinLadder, @PosinLadder + 1){ if (PVPKills >= $terces_PVP_kills[@PosinLadder]){ //Player deserves to be in the ladder //Check if Death plays a role on the position if ((PVPKills == $terces_PVP_kills[@PosinLadder]) && (PVPDeaths > $terces_PVP_deaths[@PosinLadder])) set @considerdeath,1; //Consider Deaths //Check if the player only topped his own scores if ($terces_PVP_names$[@PosinLadder] == strcharinfo(0)){ set $terces_PVP_kills[@PosinLadder],PVPKills; set $terces_PVP_deaths[@PosinLadder],PVPDeaths; end; } //Moves all characters in the Ladder for (set @beginmoving, $@LadderLength; @beginmoving >= (@PosinLadder+@considerdeath); set @beginmoving, @beginmoving - 1){ if ($terces_PVP_names$[@beginmoving] == strcharinfo(0)){ //If the player already is in the Ladder it only has to move players between characters new position and characters old position callsub L_LadderMove,0; end; } else if (@beginmoving == (@PosinLadder+@considerdeath)){ //Player is not in the Ladder and therefor it has to move all players from characters new position downwards callsub L_LadderMove,1; end; } } end; } } L_LadderMove: if (getarg(0) == 0) set @length,@beginmoving; if (getarg(0) == 1) set @length,$@LadderLength; for (set @movecycle, @length; @movecycle > (@PosinLadder+@considerdeath); set @movecycle, @movecycle - 1){ set $terces_PVP_names$[@movecycle],$terces_PVP_names$[(@movecycle-1)]; set $terces_PVP_kills[@movecycle],$terces_PVP_kills[(@movecycle-1)]; set $terces_PVP_deaths[@movecycle],$terces_PVP_deaths[(@movecycle-1)]; set $terces_PVP_times[@movecycle],$terces_PVP_times[(@movecycle-1)]; } //sets the character's stats in the new position set $terces_PVP_names$[(@PosinLadder+@considerdeath)],strcharinfo(0); set $terces_PVP_kills[(@PosinLadder+@considerdeath)],PVPKills; set $terces_PVP_deaths[(@PosinLadder+@considerdeath)],PVPDeaths; set $terces_PVP_times[(@PosinLadder+@considerdeath)],gettimetick(2); //Experience Gain if ($@LadderExpGain == 1){ set BaseExp,BaseExp+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderExp); dispbottom "You have just been rewarded with "+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderExp)+" base experience points"; } //Zeny Gain if ($@LadderZenyGain == 1){ set Zeny,Zeny+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderZeny); dispbottom "You have just been rewarded with "+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderZeny)+" Zeny"; } //Announcement (Setting for Char) if (pvpbroadcast == 2){ announce strcharinfo(0)+" just claimed the "+((@PosinLadder+@considerdeath)+1)+". Position in the Top "+$@LadderLength+" after killing "+getd("$@PVPkilledplayer"+$@PVPcounter+"$")+".",16; } //Announcement (Setting for Account) if (#pvpbroadcast == 2){ announce strcharinfo(0)+" just claimed the "+((@PosinLadder+@considerdeath)+1)+". Position in the Top "+$@LadderLength+" after killing "+getd("$@PVPkilledplayer"+$@PVPcounter+"$")+".",16; } end; OnPCLoginEvent: if (terces_PVP_resets != $terces_PVP_resets){ set PVPDeaths,0; set @PVPDeathstoday,0; set #PVPDeathsAccount,0; set PVPKills,0; set @PVPKillstoday,0; set #PVPKillsAccount,0; set terces_PVP_resets,$terces_PVP_resets; } if ($@LadderAskLogin == 0){ if (#pvpbroadcast == 2) goto L_ignore; if (pvpbroadcast == 2) goto L_ignore; if (#pvpbroadcast == 1) goto L_ignore; if (pvpbroadcast == 1) goto L_ignore; if (pvpbroadcast == 0) mes "Hi, "+strcharinfo(0)+""; mes "Me is the PvP Top Management!"; mes "Let me ask you one Question and i will let you play!"; menu "Later please",L_close,"Okay, fine",L_fine; L_fine: next; mes "Well, do you want read Broadcast Messages when a Player reach a new position on the PvP Ranglist?"; menu "Yeah, why not",L_accept,"No, thanks",L_accept_2,"Wtf is Broadcast?",L_broadcast; L_accept: next; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account,"Only this char",L_char; L_account: set #pvpbroadcast,2; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char: set pvpbroadcast,2; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_accept_2: next; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account_2,"Only this char",L_char_2; L_close: close; L_account_2: set #pvpbroadcast,1; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char_2: set pvpbroadcast,1; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_broadcast: mes "Broadcasts are this yellow messages from the GMs"; goto L_fine; } } prontera,163,189,3 script PvP Ladder 467,{ if ($@LadderChatRoom == 1) { waitingroom "Top "+$@LadderLength+" Players!",0; // Look on the configuration! } set @name$,"[PvP-Ladder]"; //Colour of: Position Name Kills Deaths Time setarray @colour$[0], "^996600", "^006699", "^00AA00", "^FF0000", "^EE8800"; if ($@LadderAskLogin == 1){ if (#pvpbroadcast == 2) goto access_eng; if (pvpbroadcast == 2) goto access_eng; if (#pvpbroadcast == 1) goto access_eng; if (pvpbroadcast == 1) goto access_eng; if (pvpbroadcast == 0) mes "Hi, "+strcharinfo(0)+""; mes "Me is the PvP Top Management!"; mes "Let me ask you one Question and i will let you play!"; menu "Later please",L_close,"Okay, fine",L_fine; L_fine: next; mes "Well, do you want read Broadcast Messages when a Player reach a new position on the PvP Ranglist?"; menu "Yeah, why not",L_accept,"No, thanks",L_accept_2,"Wtf is Broadcast?",L_broadcast; L_accept: next; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account,"Only this char",L_char; L_account: set #pvpbroadcast,2; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char: set pvpbroadcast,2; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_accept_2: next; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account_2,"Only this char",L_char_2; L_close: close; L_account_2: set #pvpbroadcast,1; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char_2: set pvpbroadcast,1; next; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_broadcast: mes "Broadcasts are this yellow messages from the GMs"; goto L_fine; } access_eng: mes @name$; mes "Hello "+strcharinfo(0)+""; mes "If you want to I can show you your PVP stats."; next; M_selection_eng: if ( getgmlevel () < 99 ) menu "Show me the PVP Ladder",M_Ladder_eng,"PvP stats since my login",M_seitLogin_eng,"PvP stats of this Char",M_dieserChar_eng,"Stats of the whole account",M_vomAccount_eng,"Cancel",M_abbrechen_eng; else menu "Show me the PVP Ladder",M_Ladder_eng,"PvP stats since my login",M_seitLogin_eng,"PvP stats of this Char",M_dieserChar_eng,"Stats of the whole account",M_vomAccount_eng,"Reset Ladder",L_reset,"Cancel",M_abbrechen_eng; M_Ladder_eng: mes "Alright...I'll show you the Top "+ $@LadderLength +" with "+$@LadderSteps+" entries per page."; mes "It'll be viewed like this:"; mes @colour$[0]+"Place^000000: "+@colour$[1]+"<name>^000000 :"+@colour$[2]+"<kills>^000000:"+@colour$[3]+"<deaths>^000000 "+@colour$[4]+"<time>"; next; callsub L_Ladder; goto M_selection_eng; M_seitLogin_eng: mes @name$; mes "Your stats since your login:"; mes @PVPKillstoday+"/"+@PVPDeathstoday+"(Kills/Deaths)"; next; goto M_selection_eng; M_dieserChar_eng: mes @name$; mes "Your stats of this Char:"; mes PVPKills+"/"+PVPDeaths+"(Kills/Deaths)"; next; goto M_selection_eng; M_vomAccount_eng: mes @name$; mes "Your stats of the whole account:"; mes #PVPKillsAccount+"/"+#PVPDeathsAccount+"(Kills/Deaths)"; next; goto M_selection_eng; M_abbrechen_eng: mes @name$; mes "OK. You can come back to me and see your stats whenever you want."; close; L_reset: if (getgmlevel() < 99) end; mes "Do you want to reset the ladder?"; if (select ("Yes","No") == 2) goto L_end; mes "Are you really really sure you want to reset it?"; menu "Yes, ffs!!",-,"No",L_end; deletearray $terces_PVP_kills,128; deletearray $terces_PVP_deaths,128; deletearray $terces_PVP_names$,128; deletearray $terces_PVP_times,128; set $terces_PVP_resets,$terces_PVP_resets +1; L_end: mes "Okay...cya"; close; L_Ladder: } function script Gettime { if (getarg(0)==0) return; set @difftimedays,(gettimetick(2) - getarg(0)); set @difftimehours,@difftimedays%86400; set @difftimeminutes,@difftimehours%3600; set @difftimeseconds,@difftimeminutes%60; set @days,@difftimedays/86400; set @hours,@difftimehours/3600; set @minutes,@difftimeminutes/60; set @seconds,@difftimeseconds; set @result$,""; if(@days != 0) set @result$,@result$+@days+"d "; if(@hours != 0) set @result$,@result$+@hours+"h "; if(@minutes != 0) set @result$,@result$+@minutes+"m "; if(@seconds != 0) set @result$,@result$+@seconds+"s"; return (@result$); }
  15. how to don make it dont count as death in PVP ladder when u play clucker? //===== Athena Script ===================================== //= Cluck! Cluck! Boom! //===== By Keale of VoidRO ================================ //= http://voidro.com //===== Description ======================================= //= Click the chicken and try retrieve the item at a low //= chance. If you fail he will nuke, freeze, stone, //= stun, or make you fall asleep. //= The prize is configurable and triggered by the NPC. //===== Credits =========================================== //= LuTze for his 'Chicken of Punishment' script. //= BrianL for suggesting the 'switch' command. //===== Version =========================================== //= v1.1 //========================================================= //= v1.0 - First release. //= v1.1 - Using 'switch rand' instead. //========================================================= prontera,156,183,3 script Cluckers 800,{ if ($@startcluck == 1) goto L_playcluck; cluckcluck: if (getgmlevel() >= 60) goto cluckadmin; mes "[Cluckers]"; mes "Cluck cluck! Cluuuuuck?"; mes "Cluck...."; close; cluckadmin: mes "[Cluckers]"; mes "Cluck cluck! Cluuuuuck? ^FF0000~Hi GM " + strcharinfo(0) + ", Wanna play today?~^000000"; mes "Cluck cluck... CLUCK! ^FF0000~Just tell me what to do!~^000000"; switch(select("Start Event:Check Prize:Set Prize:Not today Cluckers")) { case 1: next; mes "[Cluckers]"; mes "CLUCK! ^FF0000~Sure thing!~^000000"; emotion 33; close2; goto L_cluckannounce; case 2: next; mes "[Cluckers]"; mes "Cluck, cluck cluck... Cluck! ^FF0000~The current prize is^000000 ^008000"+ $cluck_item_amount +" "+ getitemname($cluck_item_id) +".^000000"; next; goto cluckadmin; case 3: next; mes "[Cluckers]"; mes "Cluck cluck? Cluck??? ^FF0000~What should the prize for winning be? Please input the ID.~^000000"; input $cluck_item_id; next; mes "[Cluckers]"; mes "Cluck? cluuuck? ^FF0000~How many if this item should I give away?~^000000"; input $cluck_item_amount; next; mes "[Cluckers]"; mes "Cluck cluck..? Cluck. ^FF0000~So, the prize is^000000 ^008000"+ $cluck_item_amount +" "+ getitemname($cluck_item_id) +"^000000? ^FF0000Great.~^000000"; emotion 33; next; goto cluckadmin; case 4: next; mes "[Cluckers]"; mes "Cluck cluck cluck..."; close; } L_cluckannounce: announce "[Cluck! Cluck! Boom!] is about to start in Event Area!",bc_blue; initnpctimer; end; OnTimer10000: announce "Please proceed to the Event Area if you want to play with the crazy chicken!",bc_blue; end; OnTimer20000: announce "Cluckers has eaten one of my items! I'm too scared to retrieve it!",bc_blue; end; OnTimer30000: announce "Click the insane chicken and try squeeze out the item, if you're lucky you'll win! Are you ready?",bc_blue; end; OnTimer40000: announce "GO! Click the chicken to get the prize!",bc_blue; set $@startcluck,1; end; L_playcluck: specialeffect2 2; switch( rand(15) ) { case 0: npctalk "CLUUUUUUCK!!!"; emotion 23; atcommand "@nuke "+strcharinfo(0); break; case 1: npctalk "Cluuuuuck!~"; break; case 2: atcommand "@nuke "+strcharinfo(0); break; case 3: sc_start SC_Freeze,10000,0; break; case 4: npctalk "CLUUUUUUUUUCK!!!"; emotion 23; atcommand "@nuke "+strcharinfo(0); break; case 5: sc_start SC_Sleep,10000,0; break; case 6: emotion 29; sc_start SC_Stone,10000,0; break; case 7: npctalk "CLUUUUUUCK!!!"; emotion 23; atcommand "@nuke "+strcharinfo(0); break; case 8: npctalk "Cluck! CLUUUCK!!"; emotion 23; atcommand "@nuke "+strcharinfo(0); break; case 9: sc_start SC_Stun,10000,0; break; case 10: emotion 29; sc_start SC_Sleep,10000,0; break; case 11: npctalk "Cluck! Cluck!"; break; case 12: sc_start SC_Stun,10000,0; break; case 13: atcommand "@nuke "+strcharinfo(0); break; default: if( rand(50) < 3 ) { npctalk "WOOF!..........."; specialeffect2 72; announce "[Cluck! Cluck! Boom!] " + strcharinfo(0) + " Squeezed out the prize! Well done!",0; getitem $cluck_item_id,$cluck_item_amount; set $@startcluck,0; } else { npctalk "Cluck! CLUUUCK!!"; atcommand "@nuke "+strcharinfo(0); } break; } }
  16. prontera,143,171,6 script Gold Coin Exchanger 1582,{ Main: MES "sing poring coinc Coin."; next; switch(select("^C0C0C0Information^000000", "5 Poring Coins = 100,000 Zeny", "Cancel")) { Case 1: mes "This is a Dynamic Shop that buy items using Gold Coins instead of Zeny."; close; // callsub DynamicShop,<ItemNeed>,<Amount>,<GetItem>,<Amount>,<Refine>; Case 2: callsub DynamicShop,0,0,0,0,0; Case 18: close; } DynamicShop: if ( countitem(getarg(0)) < getarg(1) ){ mes "You didnt have enough items to buy this."; mes "You need "+getarg(1)+" "+getitemname(getarg(0))+" to buy this items."; next; goto Main; } delitem getarg(0),getarg(1); getitem2 getarg(2),getarg(3),1,getarg(4),0,0,0,0,0; mes "You have Brought a +"+getarg(4)+" "+getitemname(getarg(2))+" with "+getarg(1)+" of "+getitemname(getarg(0))+"."; close; } how do i add 5 poring coins = 100K zeny instead of giving out items?
  17. i wonder why the NPC didnt mention the WoE place... can someone helped? i added the session is on payg_cas02.. even after i broke the emperium. i will still auto warped out from the castle... and the flag is not belongs to me=.="" its none..
  18. i wonder after i destroyed the emperium during WoE, i will auto warp out to maintown, and i still able to hit the emperium.. whats the problem? the flag didnt show my guild logo eventhough i had destroyed the Emperium.. pls help.. heres the screenshot this is my script_guild.conf // ----------------------- War of Emperium ---------------------- // - Guild WoE time settings //npc: npc/guild/agit_controller.txt // - Guild NPC Template file npc: npc/guild/agit_main.txt // - Al De Baran //npc: npc/guild/aldeg_cas01.txt //npc: npc/guild/aldeg_cas02.txt //npc: npc/guild/aldeg_cas03.txt //npc: npc/guild/aldeg_cas04.txt //npc: npc/guild/aldeg_cas05.txt // - Geffen //npc: npc/guild/gefg_cas01.txt //npc: npc/guild/gefg_cas02.txt //npc: npc/guild/gefg_cas03.txt //npc: npc/guild/gefg_cas04.txt //npc: npc/guild/gefg_cas05.txt // - Payon //npc: npc/guild/payg_cas01.txt npc: npc/guild/payg_cas02.txt //npc: npc/guild/payg_cas03.txt npc: npc/guild/payg_cas04.txt //npc: npc/guild/payg_cas05.txt // - Prontera npc: npc/guild/prtg_cas01.txt //npc: npc/guild/prtg_cas02.txt //npc: npc/guild/prtg_cas03.txt //npc: npc/guild/prtg_cas04.txt //npc: npc/guild/prtg_cas05.txt // - Treasure Room Protection npc: npc/guild/trs_rp.txt and this is my castle_db.txt // Guild Castles Database ////// // Structure of Database: // CastleID,MapName,CastleName,OnGuildBreakEventName,Flag // // 01. CastleID Unique ID of the castle. Must remain unique across all map-servers. // 02. MapName Map name to be considered as the castle map. // 03. CastleName Name of the castle (used by scripts and guardian name tags). // 04. OnGuildBreakEventName NPC unique name to invoke ::OnGuildBreak on, when a occupied // castle is abandoned during guild break. // 05. Flag Switch flag (reserved as of athena-dev mod0796~0801, not used by server). //0,aldeg_cas01,Neuschwanstein,Agit#aldeg_cas01,1 // kRO : Noisyubantian //1,aldeg_cas02,Hohenschwangau,Agit#aldeg_cas02,1 // kRO : Hohensyubangawoo //2,aldeg_cas03,Nuernberg,Agit#aldeg_cas03,1 // kRO : Nyirenverk //3,aldeg_cas04,Wuerzburg,Agit#aldeg_cas04,1 // kRO : Byirtsburi //4,aldeg_cas05,Rothenburg,Agit#aldeg_cas05,1 // kRO : Rotenburk //5,gefg_cas01,Repherion,Agit#gefg_cas01,1 // kRO : Reprion //6,gefg_cas02,Eeyolbriggar,Agit#gefg_cas02,1 // kRO : Yolbriger //7,gefg_cas03,Yesnelph,Agit#gefg_cas03,1 // kRO : Isinlife //8,gefg_cas04,Bergel,Agit#gefg_cas04,1 // kRO : Berigel //9,gefg_cas05,Mersetzdeitz,Agit#gefg_cas05,1 // kRO : Melsedetsu //10,payg_cas01,Bright Arbor,Agit#payg_cas01,1 // kRO : Mingting 11,payg_cas02,Scarlet Palace,Agit#payg_cas02,1 // kRO : Tiantan //12,payg_cas03,Holy Shadow,Agit#payg_cas03,1 // kRO : Fuying 13,payg_cas04,Sacred Altar,Agit#payg_cas04,1 // kRO : Honglou //14,payg_cas05,Bamboo Grove Hill,Agit#payg_cas05,1 // kRO : Zhulinxian 15,prtg_cas01,Kriemhild,Agit#prtg_cas01,1 // kRO : Creamhilt //16,prtg_cas02,Swanhild,Agit#prtg_cas02,1 // kRO : Sbanhealt //17,prtg_cas03,Fadhgridh,Agit#prtg_cas03,1 // kRO : Lazrigees //18,prtg_cas04,Skoegul,Agit#prtg_cas04,1 // kRO : Squagul //19,prtg_cas05,Gondul,Agit#prtg_cas05,1 // kRO : Guindull //20,nguild_alde,Earth,Agit_N01,2 //21,nguild_gef,Air,Agit_N02,2 //22,nguild_pay,Water,Agit_N03,2 //23,nguild_prt,Fire,Agit_N04,2 //24,schg_cas01,Himinn,Manager#schg_cas01,1 // kRO : Himinn //25,schg_cas02,Andlangr,Manager#schg_cas02,1 // kRO : Andlangr //26,schg_cas03,Viblainn,Manager#schg_cas03,1 // kRO : Viblainn //27,schg_cas04,Hljod,Manager#schg_cas04,1 // kRO : Hljod //28,schg_cas05,Skidbladnir,Manager#schg_cas05,1 // kRO : Skidbladnir //29,arug_cas01,Mardol,Manager#arug_cas01,1 // kRO : Mardol //30,arug_cas02,Cyr,Manager#arug_cas02,1 // kRO : Cyr //31,arug_cas03,Horn,Manager#arug_cas03,1 // kRO : Horn //32,arug_cas04,Gefn,Manager#arug_cas04,1 // kRO : Gefn //33,arug_cas05,Bandis,Manager#arug_cas05,1 // kRO : Bandis can anyone help me solve the problem? need it urgent~ thanks! bump.. need it urgent pls could anyone help me pls?
  19. //======Name======================================== // Daily Monster Hunt //======Version===================================== // 1.2 //======Author(s)=================================== // Sandbox //======Comments==================================== // This NPC allows your player to hunt a random amount // of a random monster, within a random time // *randomception!* // If the player successfully hunts the monster // within the time limit, he'll receive a reward! //======Credits===================================== // KeyWorld, nanakiwurtz, NeoMind, Kido // Thanks for helping me out guize! //================================================== prontera,143,174,5 script Questboard 857,{ mes .Npc_Name$; if(Hunter) { mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt +"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!"; close; } if(gettimetick(2) < HuntDelay) { mes "You can only do this quest once a day!"; close; } mes "Hello, do you want to take on the Monster Hunting Challenge?","I will give you a random time limit to kill a random amount of a monster, If you manage to kill them within the given time, you'll receive a reward!"; if(select("Bring it on!:How about no?")==2) { mes .Npc_Name$; mes "Fine!"; close; } next; mes .Npc_Name$; Hunt = .Mob_List[rand(getarraysize(.Mob_List))]; Time = rand(100,180); //Timer Amt = rand (50,100); //Amount of mob to hunt Hunter++; mes "You have to hunt ^0000FF"+Amt+" "+getmonsterinfo(Hunt,0)+"^000000 in ^AA0000"+Time+"^000000 seconds!"; next; mes .Npc_Name$; mes "Go go go!"; close2; showdigit Time,3; HuntDelay = gettimetick(2)+86400; //Once a day only. HuntStart = gettimetick(2)+Time; sleep2 1000*Time; if(Hunter) dispbottom strnpcinfo(1)+": I'm sorry, you didn't make it!"; HuntStart = 0; //Reset all variables Hunt = 0; Hunter = 0; HuntCount = 0; Time = 0; Amt = 0; end; //----------Config---------- OnInit: .Npc_Name$ = "[^0000FF NPC ^000000]"; setarray .Mob_List[0],1002,1007,1063; //Mobs to hunt. Default: Poring, Fabre, Lunatic .Reward = 7179; //Reward ID .RewAmt = 1; //Reward Amount end; OnNPCKillEvent: if(Hunter > 0) { if(gettimetick(2) < HuntStart) { if(killedrid == Hunt) { HuntCount++; dispbottom "You have killed "+HuntCount+"/"+Amt+" "+getmonsterinfo(Hunt,0)+"s, keep it up!"; if(HuntCount >= Amt) { dispbottom strnpcinfo(1)+": Congratulations! You did it!"; getitem .Reward,.RewAmt; HuntStart = 0; Hunt = 0; Hunter = 0; HuntCount = 0; Time = 0; Amt = 0; showdigit 1,3; } } } } close; } OnInit: waitingroom "Daily Hunting Quest",0; end; } but it shows this error always [Warning]: Incorrect use of 'close' command! (source:Questboard / path:npc/basicnpc/questboard.txt) [Warning]: Incorrect use of 'close' command! (source:Questboard / path:npc/basicnpc/questboard.txt) [Warning]: Incorrect use of 'close' command! (source:Questboard / path:npc/basicnpc/questboard.txt) [Warning]: Incorrect use of 'close' command! (source:Questboard / path:npc/basicnpc/questboard.txt) [Warning]: Incorrect use of 'close' command! (source:Questboard / path:npc/basicnpc/questboard.txt)
  20. can i know the ingredients? too long didnt touch RO.. nto sure where to find lol.
  21. thansk! can i have the ingredient of element converter NPC as well too? bump
×
×
  • Create New...