Jump to content

caspa

Members
  • Posts

    499
  • Joined

  • Last visited

Everything posted by caspa

  1. hello? can somebody make a script that if i killed the guild leader i get 20 tcg card and if i killed member 10tcg card?
  2. ohhh...... yes capuche!! mine was already done from the moment you've posted here.............. THANK YOU SO MUCH!!!! [PROBLEM SOLVED]
  3. I would like to request a by day server peak.... like.......... monday's user peak is 47 then at 11:59 of monday the script would reset... and then start from 0 again and record the peak for tuesday.... and so on.....
  4. wrong packetver...... go to src/common/mm.h and find this one -->> #define PACKETVER 20110410 ( <--- make sure you put your client date ) if that did not fix it.... then i don't know what is the problem anymore........ LOL!!
  5. Error corrected. I don't know if it's better to put .@npc$ in OnInit label but it's just a little set so it doesn't need much ressource in both case. Sir capuche thank you so much for the script..... now i i was just wondering how to add a single letter that would define the list of name this is the idea of what i'm trying to do : [b]mes ""+(.@i + 1)+". "+( ( getcharid( 0,.@name_m$[ .@i ] ) ? "^00FF00" : "^FF0000" )+ .@name_m$[ .@i ]+" "+(.@name_m$[ .@i ](.@master$[ .@s ]) ? "( L )" : "( M )" )+""; i want to put letter ( M ) for member and ( L ) for leader at the end of the name..........
  6. How to check if you are the guild master of the guild so that no members of the guild can get rent the item?
  7. how do you check a party's name using compare? like if the leader's name is superman and 1 of his party member's name is shitty man... the npc would reject the party to go in the room because his member has a shit on his name...... I tried the if ( compare ( getcharid(1),"Shit" ) ){ but its not working..........
  8. Thank you [ Problem Solved ]
  9. please follow script request rules and open a new topic for itas this topic has already done its discussion so you can do something like -> .. in a new topic I like to request add modification of this script ... I want to add this blah blah blah feature ... I'm using rathena 16xxx Annie can i request for what should i put so that whenever 1 person from red team kill a member of the blue team all the members will receive an yggrasil seed? and vice versa......
  10. BUMP.....................
  11. Hello can anyone help me on how to create a script whereas it would display some guild information like.... Guild Leader and the Guild Members of that Guild... Also the castle they own..... and i want it auto update whenever there is a change of guild members....
  12. i've uploaded the correct files....... and i have a very good feeling that the error comes from here....... //----------If 5 Minutes passed after the challenger registred and no one accepts it. OnTimer300000: announce "The duel has been canceled, because there was no challenger...",bc_map|bc_blue; if((.char$ != "") && (attachrid (getcharid(3,.char$)))) { set Zeny,Zeny+(.zeny); set dueling,0; } if((.char2$ != "") && (attachrid (getcharid(3,.char2$)))) { set Zeny,Zeny+(.zeny); set dueling,0; } // detachrid; set .char$,""; set .char2$,""; set .gambling,0; set .waiting,0; set .zeny,0; stopnpctimer; end; BUMP BUMP BUMP...............
  13. how can you make this script automatic?no need for the GM to activate or whatever........
  14. Is there a chance that this topic will be solved?............. every hour i check the forum hoping it would get answered but i'm not getting any luck....... all i need is a simple checking of the script.... hence im noob on scripting.............
  15. prontera,205,156,5 script Duel Gambling 953,{ set @npcname$,"[Duel Manager]"; L_mm: mes @npcname$; //If already a duel is going on if(.gambling) { mes "A duel is starting, please wait until the duel is over"; close; } mes callfunc("F_Hi") + " " + strcharinfo(0); //If the challenger and the one accepting the duel have registred and the duel is ready to start if(.char$ == strcharinfo(0) && .char2$ != "") { mes "^0000FF" +.char2$+ "^000000 is waiting for you to start the duel!"; if(.zeny) mes "Dueling for total ^FF0000" +.zeny+ "^000000 zeny."; if(.item) mes "The player duel for a ^FF0000" + callfunc("F_getitemname2",.item2[0],.item2[1],.item2[2],.item2[3],.item2[4],.item2[5]) + "^000000"; mes "What would you like to have?"; next; menu "Start Duel",L_sduel,"Cancel Duel",L_cduel; } //If the one accept the duel is going to talk to the npc if(.waiting) { mes "The duel gonna start soon!"; close; } //If the challenger has registred, speaks again to the npc and no one accepted it if(.char$ == strcharinfo(0)) { mes "Please wait for your challenger."; next; menu "Cancel Duel",L_cduel,"I will wait",-; close; } //If a challenger has registred, another person speaks to the npc and no one has accepted before if(.char$ != "") { mes "There is a player is waiting for gambling"; mes "What would you like to have?"; next; menu "Player and Gamble Information",-,"Send Duel invitation to the player",L_iduel,"Duel Gambling?",L_info; mes @npcname$; mes "The player that challange is named ^0000FF"+.char$+"^000000"; if(.zeny) mes "The player duel for ^FF0000" +.zeny+ "^000000 zeny."; if(.item) mes "The player duel for a ^FF0000" + callfunc("F_getitemname2",.item[0],.item[1],.item[2],.item[3],.item[4],.item[5]) + "^000000"; next; goto L_mm; } //If no challenger is registred. else { mes "No player waiting for gambling currently"; mes "What would you like to do?"; next; menu "Start a duel",-,"Duel Gambling?",L_info; set .zeny,callfunc("F_PDZeny",0); Initnpctimer; set .char$,strcharinfo(0); mes @npcname$; mes "Please wait for your oppenent."; announce .char$+ " is waiting for a duel!",bc_map|bc_blue; close; } //This party will run after someone accepted the challenge of a challenger L_iduel: set .zeny,callfunc("F_PDZeny",.zeny); set .char2$,strcharinfo(0); set .waiting,1; mes @npcname$; mes "Please wait while i inform your oppenent."; announce .char$+ ", you have a challenger!",bc_map|bc_blue; close; //After both players registred and the challenger starts the duel. L_sduel: mes @npcname$; mes "We will start the duel immediately."; close2; attachrid getcharid(3,.char2$); warp "pvp_n_1-1",90,50; attachrid getcharid(3,.char$); set dueling,1; warp "pvp_n_1-1",110,50; atcommand "@duel " + .char2$; attachrid getcharid(3,.char2$); atcommand "@accept"; set dueling,1; // detachrid; set .gambling,1; announce .char$+ " has start a duel with " +.char2$+ "!",bc_map|bc_blue; end; //If only the challenger is registred and cancels or if both registred and the challenger cancels the duel. L_cduel: announce "The duel was canceld by " +.char$,bc_map|bc_blue; mes @npcname$; mes "Very well, " + callfunc("F_Bye"); set dueling,0; set Zeny,Zeny+(.zeny/2); close2; if((.char2$ != "") && (attachrid (getcharid(3,.char2$)))) { attachrid getcharid(3,.char2$); set Zeny,Zeny+(.zeny/2); set dueling,0; // detachrid; } set .char$,""; set .char2$,""; set .gambling,0; set .waiting,0; set .zeny,0; end; //If you click on information for the duel. L_info: mes @npcname$; mes "I will allow 2 player to duel each other,"; mes "players have to duel with gambling,"; next; mes @npcname$; mes "Gambling inlcude item and zeny"; mes "Only one type was able to gamble with."; mes "If gambling zeny, the gamble zeny amount must be same amount as oppenent gamble."; next; mes @npcname$; mes "Maximum time for waiting duel and dueling is 5 minute."; next; goto L_mm; //If 5 Minutes passed after the challenger registred and no one accepts it. OnTimer300000: announce "No challenger or the time is over, the duel was cancel.",bc_map|bc_blue; if((.char$ != "") && (attachrid (getcharid(3,.char$)))) { set Zeny,Zeny+(.zeny/2); set dueling,0; } if((.char2$ != "") && (attachrid (getcharid(3,.char2$)))) { set Zeny,Zeny+(.zeny/2); set dueling,0; } // detachrid; set .char$,""; set .char2$,""; set .gambling,0; set .waiting,0; set .zeny,0; stopnpctimer; end; //When a player kills his oppenent. OnPCKillEvent: if(!dueling) end; set Zeny,Zeny+.zeny; atcommand "@leave"; announce strcharinfo(0)+" has win the duel!",bc_map|bc_blue; set dueling,0; attachrid killedrid; set dueling,0; // detachrid; set .char$,""; set .char2$,""; set .gambling,0; set .waiting,0; set .zeny,0; set .waiting,0; end; //When a player dies.. (Just incase he doesnt get killed by his oppenent) OnPCDieEvent: if(!dueling) end; if (killerrid == 0) { announce "The duel has been canceld because "+strcharinfo(0)+" died", bc_map|bc_blue; if (strcharinfo(0) == .char$) { attachrid getcharid(3,.char2$); set Zeny,Zeny+.zeny/2; } if (strcharinfo(0) == .char2$) { attachrid getcharid(3,.char$); set Zeny,Zeny+.zeny/2; } atcommand "@leave"; set dueling,0; // detachrid; set .char$,""; set .char2$,""; set .gambling,0; set .waiting,0; set .zeny,0; set .waiting,0; end; } } //Function for gambling for Zeny Function script F_PDZeny { If(!getarg(0)) { mes @npcname$; mes "How many zeny you would like to duel with?"; next; input .@zeny; If(.@zeny > Zeny || !.@zeny) { mes "You don' have enough zeny to duel! I won't allow that!"; close; } set Zeny,Zeny-.@zeny; return .@zeny; } If(getarg(0) > Zeny) { mes "You don't have enough zeny to duel! I won't allow that!"; close; } else set Zeny,Zeny-getarg(0); set .@zeny,getarg(0)*2; return .@zeny; } Can somebody help me and check the script..... or give me a much less bug script please..............
  16. A flood ? oO I don't like this idea sorry. It's better to write news on NPC. i thinks its not a flood....... coz it's every hour......... anyway i tried making some code on it.......but i'm getting error..... can check if its correct - script FloatingAnn -1,{ OnMinute01: if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) { announce "Weekend Triple EXP Event is currently in affect, Enjoy and have a great day!",bc_all,0xFF6060; } end; }
  17. Thank you for the script sir emistry........... =========================================================================== I'm getting an error emistry........................ NVM, i already got it.......... it just need two ) ) at the end LOL!!! thank you Emistry...............................
  18. Thank you for the script....................
  19. and you put if(gettime(4)==0 || gettime(4)==1 || gettime(4)==2 || gettime(4)==3 || gettime(4)==4 ) { Then saturday to Monday // friday to monday Missing one curly too. I have updated your script if you don't mind - script triple_exp -1,{ OnInit: // original Base/Job Exp and Drop Rates set .bexp_rate, 1; //Put you rate... set .jexp_rate, 1; //put you rate... OnHour16: OnHour23: if( gettime(4) != 0 && gettime(4) != 6 || ( gettime(4) == 1 && gettime(3) >= 16 ) ) { // Monday to Friday if( gettime(3) >= 23 || gettime(3) < 16 ) { announce "Double Event is finished!",bc_all,0xFF6060; callsub L_ratio, 1; } else { announce "Double Event Starting!", bc_all; callsub L_ratio, 2; } } OnHour12: if( !gettime(4) || ( gettime(4) == 6 && gettime(3) >= 12 ) || ( gettime(4) == 1 && gettime(3) < 12 ) ) { announce "Triple Event is Starting!",bc_all,0xFF6060; callsub L_ratio, 3; } else if( gettime(4) == 1 && gettime(3) == 12 ) { announce "Triple Event is finished!",bc_all,0xFF6060; callsub L_ratio, 1; } else callsub L_ratio, 1; end; L_ratio: setbattleflag "base_exp_rate", .bexp_rate * 100 * getarg( 0 ); setbattleflag "job_exp_rate", .jexp_rate * 100 * getarg( 0 ); atcommand "@reloadmobdb"; end; } can you put an announce on the script about what is the current EXP rates every 01 Minute of every Hour so that player's know what's going on
  20. I want this Script too......
  21. @ BUMP @ BUMP
  22. Problem Solved.................... THANK YOU...............
  23. Problem Solved............ Thank you for all the help............
  24. Problem Solved..........
  25. did you see the thumbnail? there an error..... i dunno how to fix it im hoping somebody can check it.......
×
×
  • Create New...