Jump to content

dhaisuke

Members
  • Content Count

    99
  • Joined

  • Last visited

Posts posted by dhaisuke


  1. Hi Legend,

     

    1) This variable ".@etower_timer", ".@" variables is of no use if the NPCs were separated from the original endless tower script.

         - i just added the purification npc script with a require item to reset inside to the original endless towerscript this

    2) You need to do "instance_create" before warping to endless tower.

         - i'm sorry not sure if i can do this but  do i still need to create another instance inside the endless towerscript?

    3) You also need to do "erasequest" to the ongoing "setquest".

         - i'm sorry not sure if i can do this but  do i still need to create another instance inside the endless towerscript?


  2. Hello Legend,

     

    Thanks for your response..

     

    regarding to the instance, i've already adjust it just for testing.can you check my script if I've adjusted correctly?

     

    
    EndlessTower.txt
    
    instance_set_timeout 120,300,.@instance;
    				instance_init(.@instance);
    
    .@dun_lim_time = etower_timer+300; //5 minutes
    .@dun_lim_time2 = etower_timer+120; /2minutes
    
    
    quest_db.conf
    
    {
    	Id: 60200
    	Name: "Endless Tower Effect"
    	TimeLimit: 300
    },
    {
    	Id: 60201
    	Name: "Endless Tower Time Limit"
    	TimeLimit: 120
    },
    

  3. Hi Guys,

     

     can anyone help me with my Endless tower script. i've found npc script for purification stone to bypass the ET.

    but when i'm tried to reload script and try to click the NPC purification stone and generate again the entrance in ET.

    i'm not able to generate again to go the ET. please see the image and my script

     

    //PURISTONE
    	e_tower,78,112,4	script	Endless Reset	406,{
    	mes "Purification Tower";
    	mes "Do you want to Reset your Endless Tower Quest?";
    	menu "Yes",R_Tower,"No",Dis;
    	close;
    	
    	R_Tower:
    	if(countitem(6127) < 1)
    	{
    		mes "You dont have a Purification Stone to Reset your Endless Tower Quest";
    		close;
    	}
    	else 
    	{
    		set .@etower_timer,0;
    		delitem 6127,1;
    		mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
    		set etower_timer,0;
    		mes "^0000ffThe records and aftereffects related to the Endless Tower have been removed. You can generate and enter the Endless Tower again.^000000";
    		close;
    		warp "e_tower",75,108;
    		end;
    	}
    	
    	Dis:
    	mes "Purification Tower";
    	mes "Come Back Again.";
    	close;
    
    }
    

     

    Thanks in advance.

    post-1574-0-65837500-1483256542_thumb.png


  4. Hi Im using Custom BG made by annieruru, just want to help how to add an NPC to join the event

     

    Player can use @joinbg or NPC with shuffle to join the Battleground

     

    here is my script

     

    -	script	custom_bg	-1,{OnInit:	.eventlasting = 30 * 60; // how long would the event last or it auto-reset. 30 *60 = 30 mins	.min2start = 2; // minimum player to start	.startingscore = 50; // score at start	setarray .rewardwin, 7773,30; // premiar a equipe vencedora	setarray .rewardlose, 7773,15; // premiar a equipe vencedora 	.rewardwinsize = getarraysize( .rewardwin );	.rewardlosesize = getarraysize( .rewardlose );	bindatcmd "bg", strnpcinfo(0)+"::OnJoin";	bindatcmd "leavebg", strnpcinfo(0)+"::OnLeave";	end;		OnLeave:	while ( .signup_aid[.@i] != getcharid(3) && .@i < .signup_count )		.@i++;	if ( .@i == .signup_count ) {		dispbottom "Você ainda não se inscreveu na BG.";		end;	}	deletearray .signup_aid[.@i], 1;	.signup_count--;	dispbottom "Você deixou de participar da BG.";	end;OnJoin:	if ( getmapflag( strcharinfo(3), mf_nowarp ) || getmapflag( strcharinfo(3), mf_nowarpto ) ) {		dispbottom "Você não pode se inscrever para BG neste mapa";		end;	}	while ( .signup_aid[.@i] != getcharid(3) && .@i < .signup_count )		.@i++;	if ( .@i < .signup_count ) {		dispbottom "Você já se inscreveu na BG.";		end;	}	.signup_aid[ .signup_count ] = getcharid(3);	.signup_count++;	dispbottom "Você se registrou na BG.";//	.@i = 1; // DEBUG//	.@signup_name$ = rid2name( .signup_aid[0] );//	while ( .signup_aid[.@i] ) {//		.@signup_name$ = .@signup_name$ +","+ rid2name( .signup_aid[.@i] );//		.@i++;//	}//	dispbottom "[Debug] Atualmente tem "+ .signup_count +" e eles são "+ .@signup_name$;L_Start:	for ( .@i = 0; .@i < .signup_count; .@i++ ) {		if ( attachrid( .signup_aid[.@i] ) ) {			if ( getmapflag( strcharinfo(3), mf_nowarp ) ) { // player has went into another event				deletearray .signup_aid[.@i], 1;			}		}		else {			deletearray .signup_aid[.@i], 1;			.signup_count--;			.@i--;		}		}	if ( .start || .signup_count < .min2start ) {		announce "Batalha Campal -- [Field of Death] -- +"+ .signup_count +" jogadores para começar -- Digite @bg para participar!", bc_all, 0xFFA500;		end;	}	announce "Batalha Campal -- [Field of Death] -- Começou!", bc_all, 0xFFA500;	.start = 1;	.map = rand(1,3);	.red = createbgid( "guild_vs"+ .map, 20,50, strnpcinfo(0)+"::OnRedQuit", strnpcinfo(0)+"::OnRedDead" );	.blue = createbgid( "guild_vs"+ .map, 80,50, strnpcinfo(0)+"::OnBlueQuit", strnpcinfo(0)+"::OnBlueDead" );	callfunc "shuffle__", 0, .min2start -1, .@r;	.@modulus = rand(2);	for ( .@i = 0; .@i < .signup_count; .@i++ )		setbgid ( .@i %2 == .@modulus )? .red : .blue, .signup_aid[ .@r[.@i] ];	deletearray .signup_aid, .min2start;	.signup_count -= .min2start;	bg_warp .red, "guild_vs"+ .map, 20,50;	bg_warp .blue, "guild_vs"+ .map, 80,50;	.score[1] = .score[2] = .startingscore;	bg_updatescore "guild_vs"+ .map, .score[1], .score[2];	sleep .eventlasting * 1000;	if ( .start == 1 ) {		if ( .score[1] > .score[2] ) {			mapannounce "guild_vs"+ .map, " Time Vermelho ganhou!", bc_all;			callsub L_reward, .red, .rewardwin, .rewardwinsize;			callsub L_reward, .blue, .rewardlose, .rewardlosesize;		}		else if ( .score[1] < .score[2] ) {			mapannounce "guild_vs"+ .map, " Time Azul ganhou!", bc_all;			callsub L_reward, .blue, .rewardwin, .rewardwinsize;			callsub L_reward, .red, .rewardlose, .rewardlosesize;		}		else {			mapannounce "guild_vs"+ .map, "Empate !", bc_all;			callsub L_reward, .red, .rewardlose, .rewardlosesize;			callsub L_reward, .blue, .rewardlose, .rewardlosesize;		}	}	bg_warp .red, "prontera", 155,182;	bg_warp .blue, "prontera", 158,182;	bg_destroy .red;	bg_destroy .blue;	.start = .map = 0;	deletearray .score;	goto L_Start;L_reward:	getbgusers getarg(0);	for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )		for ( .@j = 0; .@j < getarg(2); .@j += 2 )			getitem getelementofarray( getarg(1), .@j ), getelementofarray( getarg(1), .@j +1 ), $@arenamembers[.@i];	return;OnRedDead: callsub L_dead, 1;OnBlueDead: callsub L_dead, 2;L_dead:	.score[ getarg(0) ]--;	bg_updatescore "guild_vs"+ .map, .score[1], .score[2];	if ( !.score[ getarg(0) ] )		awake strnpcinfo(0);	while ( checkcell( strcharinfo(3), .@x = rand(200), .@y = rand(200), cell_chknopass ) );	bg_team_setxy getcharid(4), .@x, .@y;	sleep2 1250;	percentheal 100,100;	if ( getmapflag( strcharinfo(3), mf_battleground ) )		warp strcharinfo(3), 0,0;	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;	mapannounce "guild_vs"+ .map, "Todos "+ .teamname$[ getarg(0) ] +" membros da equipe saiu. !", bc_all, 0xFF3333;	.score[ getarg(0) ] = 0;	awake strnpcinfo(0);	end;}guild_vs3	mapflag	battleground	2guild_vs3	mapflag	nosave	SavePointguild_vs3	mapflag	nowarpguild_vs3	mapflag	nowarptoguild_vs3	mapflag	noreturnguild_vs3	mapflag	noteleportguild_vs3	mapflag	nomemoguild_vs3	mapflag	nopenaltyguild_vs3	mapflag	nobranchguild_vs3	mapflag	noicewallguild_vs1	mapflag	battleground	2guild_vs1	mapflag	nosave	SavePointguild_vs1	mapflag	nowarpguild_vs1	mapflag	nowarptoguild_vs1	mapflag	noreturnguild_vs1	mapflag	noteleportguild_vs1	mapflag	nomemoguild_vs1	mapflag	nopenaltyguild_vs1	mapflag	nobranchguild_vs1	mapflag	noicewall//------------------------------ FUNÇÃO --------------------------------------------------//	callfunc "shuffle", <min num>, <max num>, <output array> {, <count> };function	script	shuffle__	{	.@static = getarg(0);	.@range = getarg(1) +1 - .@static;	.@count = getarg(3, 0);	if ( .@range <= 0 )		return 0;	if ( !.@count || .@count > .@range )		.@count = .@range;	while ( .@i < .@count ) {		.@r = .@save = rand( .@i, .@range -1 ) ;		if ( !.@tmp1[.@i] ) {			.@r = .@tmp1[.@r] ? .@tmp2[.@r] : .@r;			.@tmp2[.@i] = .@r;			.@tmp2[.@save] = .@i;			.@tmp1[.@save] = 1;			set getelementofarray( getarg(2), .@i ), .@r + .@static;			if ( .@save < .@count )				set getelementofarray( getarg(2), .@save ), .@i + .@static;		}		.@i++;	}	return .@count;}/*prontera,156,184,5	script	kjdshfksfjh	100,{//	input .@min, -1000000000, 1000000000;//	input .@[member=Max], -1000000000, 1000000000;	.@min = 1;	.@[member=Max] = 5;	callfunc "shuffle__", .@min, .@[member=Max], .@output$, 100;	dispbottom implode( .@output$, "," );}*/ 

     

     

     


  5. Can anyone have an NPC like this? War of Emperium Supplies  

    • 20,000,000z Registration Fee every War of Emperium.
    • Supplies cannot be consumed in any maps except War of Emperium maps.
    • Supplies cannot be placed in cart, mailbox, storage and character bounded items.
    • All registration will be reset after War of Emperium

    @guildremoval

    • You can remove the WoE Supplies every non-WoE time.

    @guildrefill

    • Available to those guild who will apply for it.
    • A command where you can get an amount of supplies by typing the command anywhere.
    • Can only use on War of Emperium time.
    • Cool-down is 5 minutes.
    • All the supplies you get from the very start will restore to default amount.

    Supplies List Potions (Default) Priest/High Priest Hunter/Sniper Assassin Cross Professor Alchemist/Creator Green Potion x 10

    Light Blue Potion x 50

    Light White Potion x 100 Holy Water x 3

    Red Gemstone x 25

    Blue Gemstone x 25

    Yellow Gemstone x 25 Trap x 30 Poison Bottle x 2 CobWeb x 25

    Red Gemstone x 25

    Blue Gemstone x 25

    Yellow Gemstone x 25 Fire Bottle x 10

    Acid Bottle x 10

    Plant Bottle x 10

    Condensed White Potion x 25

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.