Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. I think it's possible - why don't you test ? --, but the effect will be display only once when you equip the item with just this command.
  2. Capuche

    Map Reward

    dispbottom requires an RID and player is not attached on OnInit Label The same for do... while... there are no triggers, no player attached so this do while loop will never start
  3. Yes but you forgot the Brackets .@variables will be delete at the end of the script Use .variables
  4. Trick dead can be dispell with dispell skill - haha logic - but use it is a fun idea
  5. Not really because this way, the player get the items directly on his inventory btw replace all your permanent variable by npc variable, no need the permanent here
  6. Capuche

    Map Reward

    Replace all Prefix $ to . You don't need permanent variables here - and it's not a php file
  7. It's not the script. Check your mapflag nightmare conf/mapflag/nightmare.txt pvp_n_1-3 mapflag pvp_nightmaredrop random,equip,300
  8. Try this one prontera,155,177,5 script yuio 88,{ function Getcostume; if( countitem( .rare_ticket ) ) { mes "A Rare ticket !"; set .@r, .rate_chance_rare; // chance set .@ticket, .rare_ticket ; } else if( countitem( .normal_ticket ) ) { mes "A Normal ticket !"; set .@r, .rate_chance_normal; // chance set .@ticket, .normal_ticket; } else { mes "Hmmm.. what?"; close; } if( select( "Use it", "Cancel" ) -1 ) close; delitem .@ticket, 1; if( .@r > rand( 1, 1000 ) ) { // chance 50% for rare ticket mes "You got a rare costum."; getitem Getcostume( "rare" ), 1; close; } else { mes "You got a normal costum."; getitem Getcostume( "normal" ), 1; close; } OnInit: set .normal_ticket, 501; set .rare_ticket, 502; set .rate_chance_rare, 500; // chance to get a rare costume with rare ticket set .rate_chance_normal, 100; // chance to get a rare costume with normal ticket // rare costume ID // size array must be < 128 // use the synthaxe .rare_IDX for adding news array // ------------------------------------------------ setarray .rare_ID0,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID1,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID2,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID3,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID4,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID5,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID6,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID7,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID8,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID9,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .rare_ID10,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; // normal costume ID // size array must be < 128 // use the synthaxe .normal_IDX for adding news array // ------------------------------------------------ setarray .normal_ID0,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID1,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID2,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID3,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID4,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID5,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID6,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; setarray .normal_ID7,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600; // Don't touch // ----------- while( getd( ".rare_ID"+ .@i +"[0]" ) ) { setd ".size_rare"+ .@i, getarraysize( getd( ".rare_ID"+ .@i ) ); set .size_tot_rare, .size_tot_rare + getarraysize( getd( ".rare_ID"+ .@i ) ); set .@i, .@i +1; } set .@i, 0; while( getd( ".normal_ID"+ .@i +"[0]" ) ) { setd ".size_normal"+ .@i, getarraysize( getd( ".normal_ID"+ .@i ) ); set .size_tot_normal, .size_tot_normal + getarraysize( getd( ".normal_ID"+ .@i ) ); set .@i, .@i +1; } end; function Getcostume { if( getarg(0) == "normal" ) { set .@r, rand( 1, .size_tot_normal ); while( .@r > .@tmp ) { set .@tmp, .@tmp + getd( ".size_normal"+ .@i ); set .@i, .@i +1; } set .@in, .@r - ( .@tmp - getd( ".size_normal"+ .@i ) ) -1; return getd( ".normal_ID"+ .@i +"[ "+ .@in +" ]" ); } else { set .@r, rand( 1,.size_tot_rare ); while( .@r > .@tmp ) { set .@tmp, .@tmp + getd( ".size_rare" + .@i ); set .@i, .@i +1; } set .@in, .@r - ( .@tmp - getd( ".size_rare" + .@i ) ) -1; return getd( ".rare_ID"+ .@i +"[ "+ .@in +" ]" ); } } }
  9. O_o gettimestr is a better solution Thanks for reminds me
  10. I think your mapcache.dat have a wrong map in cache. Re-up your mapcache.dat (delete the map and re-upload it)
  11. Capuche

    Auto Killer

    prontera,150,150,4 script mmmh 58,{ .@s = select( implode( .map_mvp$, ":" ) ) -1; warp .map_mvp$[.@s], 0, 0; while( .timer_clean ) { sleep 5000; if( getmapusers( .map_mvp$[.@s] ) ) .@count = 0; else { .@count++; if( .@count == .timer_clean * 12 ) goto L_clean; } } L_clean: killmonsterall .map_mvp$[.@s]; end; OnInit: setarray .map_mvp$, "prontera","geffen","payon"; .timer_clean = 5; // in minutes end; }
  12. prontera,149,194,5 script Server Time(+8GMT) 837,{ end; OnInit: while(1) { set .@h, gettime(3); set .@m, gettime(2); set .@s, gettime(1); delwaitingroom; waitingroom "Clock: "+ ( .@h > 12 ? .@h -12 : .@h ) +":"+ ( .@m >= 10 ? .@m : "0"+ .@m ) +" "+ ( .@s >= 10 ? .@s : "0"+ .@s ) +" "+ ( .@h > 12 ? "PM" : "AM" ),0; sleep 998; } }
  13. prontera,155,155,5 script Guild manager 56,{ .@npc$ = "[ "+ strnpcinfo(1) +" ]"; .@count = query_sql( "SELECT `guild_id`, `name`, `master`, `guild_lv` FROM `guild` ORDER BY `guild_id` ASC limit 128", .@guild_id, .@name$, .@master$, .@guild_lv ); mes .@npc$; mes " "; mes "Total: ^FF0000"+ .@count +"^000000 guild"+ ( .@count -1 ? "s." : "." ); mes "Select a guild for more informations."; next; .@s = select( implode( .@name$, ":" ) ) -1; .@size = query_sql( "SELECT `name` FROM `guild_member` WHERE `guild_id`= '"+ .@guild_id[ .@s ] +"'", .@name_m$ ); for( .@i = 0; .@i < .@size; .@i++ ) if( getcharid( 0,.@name_m$[ .@i ] ) ) .@m++; .@size_alli = query_sql( "SELECT `opposition`, `name` FROM `guild_alliance` WHERE `guild_id`= '"+ .@guild_id[ .@s ] +"'", .@opposition, .@name_alli$ ); for( .@i = 0; .@i < .@size_alli; .@i++ ) { if( .@opposition[.@i] ) .@good$ = .@good$ + ( getstrlen( .@good$ ) ? ", " : "" ) + .@name_alli$[.@i]; else .@evil$ = .@evil$ + ( getstrlen( .@evil$ ) ? ", " : "" ) + .@name_alli$[.@i]; } mes .@npc$; mes "Guild name: ^FF0000"+ .@name$[ .@s ] +"^000000", "Master name: ^FFCC00"+ .@master$[ .@s ] +"^000000", "Guild lvl: ^FF00CC"+ .@guild_lv[ .@s ] +"^000000", "Members Online: ^0000FF"+ .@m +"^000000", "Ally: ^CC00CC"+ ( getstrlen( .@evil$ ) ? .@evil$ : "None" ) +"^000000", "Antagonist: ^CC00CC"+ ( getstrlen( .@good$ ) ? .@good$ : "None" ) +"^000000"; close; } EDIT fix some mistakes thanks to caspa
  14. announce ":: "+.i+" ::",bc_blue|bc_area; Player must be attached for bc_area announce Use bc_npc instead of bc_area (for example)
  15. A kill B A kill B A kill B A kill C A kill B A kill B A kill B A kill C A kill B A kill B -------- or --------- kills x3 the same player 1/ In following 2/ Not following Don't get a points Don't get a point if he kills him x3 in 5min if he kills the same in following Which option ? 1 or 2 You mean Mapflag#nodrop ? Mapflag#pvp_nightmaredrop ?
  16. // ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script } 1750,Arrow,Arrow,10,1,,1,25,,,,0x000A1848,7,2,32768,,1,,1,{},{},{} Ammo : type 10
  17. I don't have this kind of error What is your emulator (eA, rA, 3ceam, cronus...) ? Did you made some modifications ? You make a @reloadscript ? Are you always stuck without close button ?
  18. 2 same broadcasts = 2 NPC running (maybe a duplicate ?) Use sleep2, sleep doesn't keep the rid. close button can't appear if the player is not attached announce "The Disguise Event will begin in 3 minutes.",bc_all | bc_blue; close2; sleep 2500; announce "The Event is being held in Prontera,198,162.",bc_all | bc_blue; end; or use close2
  19. - script Summonizer -1,{ OnInit: monster "pvp_n_1-1",0,0,"--ja--",-3,25,strnpcinfo(0) +"::OnMobKill"; end; OnMobKill: monster "pvp_n_1-1",0,0,"--ja--",-3,1,strnpcinfo(0) +"::OnMobKill"; end; } pvp_n_1-1 mapflag pvp off mapflag nopvp doesn't exist
  20. - script oneideaforthename? -1,{ OnPCLoginEvent: OnPCBaseLvUpEvent: if( getgmlevel() > 2 ) end; if( getstrlen( $highest_level$ ) ) explode( .@h$, $highest_level$, "|" ); if( BaseLevel > atoi( .@h$ ) ) { .@h$ = BaseLevel; .@h$[1] = strcharinfo(0); announce "[ "+ strcharinfo(0) +" ] ("+ BaseLevel +") has the highest level in the serveur !", 0; } else if( .@h$[1] == strcharinfo(0) && BaseLevel < atoi(.@h$) ) { .@h$ = 0; .@h$[1] = ""; } $highest_level$ = implode( .@h$, "|" ); end; } Each time a player level up or login, this script check if he has the highest level. If he has, it makes an announce
  21. /* create table auction_item ( auction_id int(11) primary key auto_increment, seller_id int(11), seller_name varchar(23), time datetime, nameid smallint(6), amount smallint(6), identify tinyint(1), refine tinyint(3), attribute tinyint(1), card0 smallint(6), card1 smallint(6), card2 smallint(6), card3 smallint(6) ) engine = innodb; drop table auction_item; create table auction_bidder ( id int(11) primary key auto_increment, auction_id int(11), buyer_id int(11), buyer_name varchar(23), time datetime, nameid smallint(6), amount smallint(6), identify tinyint(1), refine tinyint(3), attribute tinyint(1), card0 smallint(6), card1 smallint(6), card2 smallint(6), card3 smallint(6) ) engine = innodb; drop table auction_bidder; */ prontera,155,186,5 script kjsdhfksh 100,{ mes "aaa"; next; if ( select( "list", "sell" ) == 1 ) { .@nb = query_sql( "select * from auction_item limit 128", .@id, .@cid, .@name$, .@time$, .@itemid, .@amount, .@identify, .@refine, .@attribute, .@card1, .@card2, .@card3, .@card4 ); for ( .@i = 0; .@i < .@nb; .@i++ ) mes .@time$[.@i] +" -> "+ .@amount[.@i] +"x "+ callfunc( "getitemname2", .@itemid[.@i], .@identify[.@i], .@refine[.@i], .@attribute[.@i], .@card1[.@i], .@card2[.@i], .@card3[.@i], .@card4[.@i] ); close; } close2; callshop "auction_item", 2; end; OnSellItem: for ( .@i = 0; .@i < getarraysize( @sold_nameid ); .@i++ ) { query_sql "insert into auction_item values ( null, "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', now(), "+ @sold_nameid[.@i] +", "+ @sold_quantity[.@i] +", "+ @sold_identify[.@i] +", "+ @sold_refine[.@i] +", "+ @sold_attribute[.@i] +", "+ @sold_card1[.@i] +", "+ @sold_card2[.@i] +", "+ @sold_card3[.@i] +", "+ @sold_card4[.@i] +" )"; if( getiteminfo( @sold_nameid[.@i],2 ) == 4 || getiteminfo( @sold_nameid[.@i],2 ) == 5 ) delitem2 @sold_nameid[.@i], @sold_quantity[.@i], @sold_identify[.@i], @sold_refine[.@i], @sold_attribute[.@i], @sold_card1[.@i], @sold_card2[.@i], @sold_card3[.@i], @sold_card4[.@i]; else delitem @sold_nameid[.@i], @sold_quantity[.@i]; } end; OnInit: npcshopattach "auction_item"; end; } - shop auction_item -1,501:-1
  22. Maybe this http://www.eathena.ws/board/index.php?showtopic=270783
  23. For our purpose, it allows to attach a player to a bg without waitingroom system. In the previous script, players are attached to a bg with the waitingroom system and we can get their account ID To randomize the teams, player must leave their bg and enter in a new random bg but there isn't script command npc to allow player to enter in a new bg without waitingroom system. This is the purpose of the patch, allows to attach a player to a bg without waitingroom system
  24. - script custom_bg#control -1,{ OnInit: set .minplayer2start, 2; // minimum player to start setarray .rewarditem, 30153, 10, // reward to the winning team 30153, 3; // reward to the losing team set .startingscore, 20; // score at start set .eventlasting, 100; // event last 100 seconds or the system abort itself end; onstart: if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) end; set .red, waitingroom2bg( "guild_vs2", 8,50, strnpcinfo(0)+"::OnredQuit", strnpcinfo(0)+"::OnredDead", .rednpcname$ ); copyarray .@tmp, $@arenamembers, $@arenamembersnum; set .blue, waitingroom2bg( "guild_vs2", 91,50, strnpcinfo(0)+"::OnblueQuit", strnpcinfo(0)+"::OnblueDead", .bluenpcname$ ); copyarray .@tmp[ .minplayer2start ], $@arenamembers, $@arenamembersnum; bg_kickall .red; bg_kickall .blue; for( set .@i, 0; .@i < .minplayer2start*2; set .@i, .@i + 1 ) { if( rand(100)%2 && getarraysize( .team1aid ) < .minplayer2start || getarraysize( .team2aid ) == .minplayer2start ) { setbgid( .red, rid2name( .@tmp[.@i] ) ); set .team1aid[ getarraysize( .team1aid ) ], .@tmp[.@i]; } else { setbgid( .blue, rid2name( .@tmp[.@i] ) ); set .team2aid[ getarraysize( .team2aid ) ], .@tmp[.@i]; } } delwaitingroom .rednpcname$; delwaitingroom .bluenpcname$; bg_warp .red, "guild_vs2", 8,50; bg_warp .blue, "guild_vs2", 91,50; set .score[1], .startingscore; set .score[2], .startingscore; bg_updatescore "guild_vs2", .score[1], .score[2]; sleep .eventlasting * 1000; if ( .score[1] == .score[2] ) announce "Deathmatch Ground : Draw !", 0; else if ( .score[1] > .score[2] ) { announce "Deathmatch Ground : Red Team Wins !", 0; callsub L_reward, 1, 0; callsub L_reward, 2, 2; } else if ( .score[1] < .score[2] ) { announce "Deathmatch Ground : Blue Team Wins !", 0; callsub L_reward, 2, 0; callsub L_reward, 1, 2; } OnTimer50000: announce "Deathmatch Ground is now open for another match @ prontera 156 170 !",0; bg_warp .red, "prontera", 156,191; bg_warp .blue, "prontera", 156,191; bg_destroy .red; bg_destroy .blue; donpcevent .rednpcname$ +"::OnInit"; donpcevent .bluenpcname$ +"::OnInit"; end; L_reward: set .@size, getarraysize( getd(".team"+ getarg(0) +"aid") ); for ( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) if ( isloggedin( getd(".team"+ getarg(0) +"aid["+ .@i +"]" ) ) ) getitem .rewarditem[ getarg(1) ], .rewarditem[ getarg(1) +1 ], getd(".team"+ getarg(0) +"aid["+ .@i +"]" ); return; OnredDead: callsub L_dead, 1; OnblueDead: callsub L_dead, 2; L_dead: set .score[ getarg(0) ], .score[ getarg(0) ] -1; bg_updatescore "guild_vs2", .score[1], .score[2]; if ( .score[ getarg(0) ] == 0 ) awake strnpcinfo(0); sleep2 1500; percentheal 100,100; end; OnredQuit: callsub L_quit, 1, .red; OnblueQuit: callsub L_quit, 2, .blue; L_quit: percentheal 100, 100; if ( bg_get_data( getarg(1), 0) ) end; set .score[ getarg(0) ], 0; awake strnpcinfo(0); end; } prontera,151,165,5 script Red Team 733,{ end; OnInit: waitingroom "Red Team", getvariableofnpc( .minplayer2start, "custom_bg#control" ) +1, "custom_bg#control::onstart", getvariableofnpc( .minplayer2start, "custom_bg#control" ); set getvariableofnpc( .rednpcname$, "custom_bg#control" ), strnpcinfo(0); end; } prontera,160,165,5 script Blue Team 734,{ end; OnInit: waitingroom "Blue Team", getvariableofnpc( .minplayer2start, "custom_bg#control" ) +1, "custom_bg#control::onstart", getvariableofnpc( .minplayer2start, "custom_bg#control" ); set getvariableofnpc( .bluenpcname$, "custom_bg#control" ), strnpcinfo(0); end; } guild_vs2 mapflag battleground 2 guild_vs2 mapflag nosave SavePoint guild_vs2 mapflag nowarp guild_vs2 mapflag nowarpto guild_vs2 mapflag noteleport guild_vs2 mapflag nomemo guild_vs2 mapflag nopenalty guild_vs2 mapflag nobranch guild_vs2 mapflag noicewall You must apply this patch made by AnnieRuru and recompile
×
×
  • Create New...