Jump to content
  • 0

100 click


whoopetz

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/22/14
  • Last Seen:  

npc name'100 click'

when a user click 100 times of the NPC. the user will get a prize

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


prontera,155,181,5 script click_100_npc 757,{

@click++;

if( @click % 100 == 0 ){

getitem 512,1;

dispbottom "Get item per 100 click";

}

else{

dispbottom @click+" click.";

}

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/22/14
  • Last Seen:  

then

 

prontera,155,181,5	script	click_100_npc	757,{
@click++;
if( @click % 100 == 0 ){
	getitem 512,1;
	dispbottom "Get item per 100 click";
}
else{
	dispbottom @click+" click.";
}
end;
}

should i put @click = 0 ;(to reset)
after "dispbottom "Get item per 100 click";"

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

up to you....you can still put that if you afraid the counter is not cleared

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

Here's my version; it's very similar to Emistry's, with some notes and variables to make things simple to change around (such as click amount, prize ID, prize amount).

prontera,155,181,5	script	Click Me!::clickme	757,{

		// Increase click count
		@total_clicks++;
		
		// Receive prize if max clicks reached
		if (@total_clicks == .max_clicks) {
			message strcharinfo(0), "You have received "+ .amount +" "+ getitemname(.prize_id) +".";
			getitem .prize_id, .amount;
			@total_clicks = 0;
			
		// Display click count
		} else {
			message strcharinfo(0), "You have clicked me "+ @total_clicks +" times.";
		}
		
		end;
		
		
		OnInit:
			// Configuration
			.max_clicks = 100;
			.prize_id = 909;
			.amount = 1;
			end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

i use a similar script like the one you request o:

 

you can set up the prize and how many times you want them to click it

 

you can too set how many prizes of the specified item they can get (like 3 tcg carrd and so on)

 

gm setup

 

also info is included

 

pretty complete script o: 

 

credits to Leertaste (dunno who is, but thanks lol)

//===== rAthena Script =======================================
//= Domination Event
//===== By: ==================================================
//= Leertaste
//===== Current Version: =====================================
//= 1.0a
//===== Compatible With: =====================================
//= Every eAthena or rAthena Version
//===== Description: =========================================
//= Automated Event where every click from every char
//= increases the Number by 1 (+1)
//= The winner is who increases the Number to the max. (for example 1000)
//===== Comments: ============================================
//= This Event is automated but can be started from InGame too
//= Price/Amount and Amount-to-click is also settable from InGame
//= Change (if(getgmlevel() > 60)) // 60 to the wished GM-Level for Setups
//============================================================
//===== Changelog: ===========================================
//= -1.0a - Addet Current Variables when changing Price/Amount
//=	  - Addet Effects to Show Member which Npc is meant
//=	  - Addet Ingame Menupoint (For Admin) to edit required manage GM-Level
//=	  - Addet Auto protect from Input 0 (Amount/GM Level)
//=	  - Changed NPC ID cause of annoying noise
//=	  - Fixed Bug that comes through Npctalk (changed to Announce)
//=
//= -1.0  Finshed Scripting
//============================================================

turbo_room,107,94,4	script	[Domination]	403,{

if ($@domination_start == 1) {
			set .dom_click,.dom_click+1;
			//announce "Click numero: ["+.dom_click+"]",bc_map|bc_blue;
			specialeffect2 2;
			if (.dom_click == $@domination_amount) {
				announce "[Domination]: " + strcharinfo(0) + " ha ganado el juego!",bc_all;
				set .dom_click,0;
				set $@domination_start,0;
				getitem $prize_id_dom, $prize_amount_dom;
				end;
		}
			}else{

set .name$, "[Domination]";
set .menu$, "Times:Information:What's the Amount?:What's the Price?:Leave";
//if(getgmlevel() > $GM_Dom-1) set .menu$, .menu$ + ":^008000Set Amount ^ff0000[GM]:^008000Set Price ^ff0000[GM]:^008000Start Event ^ff0000[GM]^000000";
if(getgmlevel() > 1) set .menu$, .menu$ + ":^008000Set Amount ^ff0000[GM]:^008000Set Price ^ff0000[GM]:^008000Start Event ^ff0000[GM]^000000";
if(getgmlevel() > 99) set .menu$, .menu$ + ":^008000Set GM Level ^ff0000[ADMIN]^000000";

	mes .name$;
	mes "What do you want?";
	next;
h_menu:
switch(select(.menu$))	{
	case 1:
	mes .name$;
	mes "^ff0000Domination^000000 starts each day at:";
	mes "^00800014:30^000000, ^00800017:30^000000 and ^00800020:30^000000 o'clock.";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 2:
	mes .name$;
	mes "^ff0000Domination^000000";
	mes "Is a game where you need";
	mes "to click the Number up to:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "Every click (from everybody)";
	mes "will increase the Number by 1";
	next;
	mes .name$;
	mes "To win you will need to have";
	mes "the last click to increase the";
	mes "Number up to the set amount";
	mes "(-- ^ff0000"+$@domination_amount+"^000000 --)";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 3:
	mes .name$;
	mes "The amount to click is:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 4:
	mes .name$;
	mes "The Price is:";
	mes " -- ^ff0000"+$prize_amount_dom+" ^008000"+getitemname($prize_id_dom)+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 5:
	mes .name$;
	mes "Have a nice day.";
	close;

	case 6:							// Setting the Amount to click
	mes .name$;
	mes "Enter the Amount which";
	mes "is needed to reach:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	input $@domination_amount;
if ($@domination_amount == 0){
	next;
	mes .name$;
	mes "I think it's not a good idea put";
	mes "this to 0 because there will be no ending";
	mes " -- ^ff0000Automatically set to 500^000000 --";
	set $@domination_amount,500;
}
	next;
	mes .name$;
	mes "The amount to click is now:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 7:							// Setting the Price
	mes .name$;
	mes "Enter the Item ID of the Price:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$prize_id_dom+"^000000 --";
	mes "(^008000"+getitemname($prize_id_dom)+"^000000)";
	input $prize_id_dom;
	next;
	mes .name$;
	mes "Now enter the Amount of items the winner will recieve:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$prize_amount_dom+"^000000 -- ^008000"+getitemname($prize_id_dom)+"^000000 --";
	input $prize_amount_dom;
	next;
	mes .name$;
	mes "The Price ID is: ^ff0000"+$prize_id_dom+"^000000";
	mes "The Amount is: ^ff0000"+$prize_amount_dom+"^000000.";
	mes " ";
	mes " -- ^ff0000"+$prize_amount_dom+" ^008000"+getitemname($prize_id_dom)+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 8:
	sleep2 100;
	close2;
	goto l_start;
	end;

	case 9:
	mes .name$;
	mes "Enter the required GM Level";
	mes "to manage this Event.";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$GM_Dom+"^000000 --";
	input $GM_Dom;
if ($GM_Dom == 0){
	next;
	mes .name$;
	mes "I think it's not a good idea let";
	mes "GM Level 0 manage this event.";
	mes " -- ^ff0000Automatically set to 60^000000 --";
	set $GM_Dom,60;
}
	next;
	mes .name$;
	mes "GM Level = ^ff0000"+$GM_Dom+"^000000";
	mes "can now manage this event.";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

//OnClock1430:
//OnClock1730:
//OnClock2030:
l_start:
	announce "[Domination]: Carrera de click esta apunto de comenzar en Zona Evento!!",bc_all;
	specialeffect 12, SELF;
	sleep2 30000;
	announce "[Domination]: El evento de Carrera de click comenzara en 30 segundos!",bc_all;
	specialeffect 12, SELF;
	sleep2 25000;
	announce "[Domination]: Preparense, solo quedan 5 segundos!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 4!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 3!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 2!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 1!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "Listo! Denme click tantas veces puedan!",bc_all;
	set $@domination_start,1;
	end;

	}
		}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

 

i use a similar script like the one you request o:

 

you can set up the prize and how many times you want them to click it

 

you can too set how many prizes of the specified item they can get (like 3 tcg carrd and so on)

 

gm setup

 

also info is included

 

pretty complete script o: 

 

credits to Leertaste (dunno who is, but thanks lol)

//===== rAthena Script =======================================
//= Domination Event
//===== By: ==================================================
//= Leertaste
//===== Current Version: =====================================
//= 1.0a
//===== Compatible With: =====================================
//= Every eAthena or rAthena Version
//===== Description: =========================================
//= Automated Event where every click from every char
//= increases the Number by 1 (+1)
//= The winner is who increases the Number to the max. (for example 1000)
//===== Comments: ============================================
//= This Event is automated but can be started from InGame too
//= Price/Amount and Amount-to-click is also settable from InGame
//= Change (if(getgmlevel() > 60)) // 60 to the wished GM-Level for Setups
//============================================================
//===== Changelog: ===========================================
//= -1.0a - Addet Current Variables when changing Price/Amount
//=	  - Addet Effects to Show Member which Npc is meant
//=	  - Addet Ingame Menupoint (For Admin) to edit required manage GM-Level
//=	  - Addet Auto protect from Input 0 (Amount/GM Level)
//=	  - Changed NPC ID cause of annoying noise
//=	  - Fixed Bug that comes through Npctalk (changed to Announce)
//=
//= -1.0  Finshed Scripting
//============================================================

turbo_room,107,94,4	script	[Domination]	403,{

if ($@domination_start == 1) {
			set .dom_click,.dom_click+1;
			//announce "Click numero: ["+.dom_click+"]",bc_map|bc_blue;
			specialeffect2 2;
			if (.dom_click == $@domination_amount) {
				announce "[Domination]: " + strcharinfo(0) + " ha ganado el juego!",bc_all;
				set .dom_click,0;
				set $@domination_start,0;
				getitem $prize_id_dom, $prize_amount_dom;
				end;
		}
			}else{

set .name$, "[Domination]";
set .menu$, "Times:Information:What's the Amount?:What's the Price?:Leave";
//if(getgmlevel() > $GM_Dom-1) set .menu$, .menu$ + ":^008000Set Amount ^ff0000[GM]:^008000Set Price ^ff0000[GM]:^008000Start Event ^ff0000[GM]^000000";
if(getgmlevel() > 1) set .menu$, .menu$ + ":^008000Set Amount ^ff0000[GM]:^008000Set Price ^ff0000[GM]:^008000Start Event ^ff0000[GM]^000000";
if(getgmlevel() > 99) set .menu$, .menu$ + ":^008000Set GM Level ^ff0000[ADMIN]^000000";

	mes .name$;
	mes "What do you want?";
	next;
h_menu:
switch(select(.menu$))	{
	case 1:
	mes .name$;
	mes "^ff0000Domination^000000 starts each day at:";
	mes "^00800014:30^000000, ^00800017:30^000000 and ^00800020:30^000000 o'clock.";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 2:
	mes .name$;
	mes "^ff0000Domination^000000";
	mes "Is a game where you need";
	mes "to click the Number up to:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "Every click (from everybody)";
	mes "will increase the Number by 1";
	next;
	mes .name$;
	mes "To win you will need to have";
	mes "the last click to increase the";
	mes "Number up to the set amount";
	mes "(-- ^ff0000"+$@domination_amount+"^000000 --)";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 3:
	mes .name$;
	mes "The amount to click is:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 4:
	mes .name$;
	mes "The Price is:";
	mes " -- ^ff0000"+$prize_amount_dom+" ^008000"+getitemname($prize_id_dom)+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 5:
	mes .name$;
	mes "Have a nice day.";
	close;

	case 6:							// Setting the Amount to click
	mes .name$;
	mes "Enter the Amount which";
	mes "is needed to reach:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	input $@domination_amount;
if ($@domination_amount == 0){
	next;
	mes .name$;
	mes "I think it's not a good idea put";
	mes "this to 0 because there will be no ending";
	mes " -- ^ff0000Automatically set to 500^000000 --";
	set $@domination_amount,500;
}
	next;
	mes .name$;
	mes "The amount to click is now:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 7:							// Setting the Price
	mes .name$;
	mes "Enter the Item ID of the Price:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$prize_id_dom+"^000000 --";
	mes "(^008000"+getitemname($prize_id_dom)+"^000000)";
	input $prize_id_dom;
	next;
	mes .name$;
	mes "Now enter the Amount of items the winner will recieve:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$prize_amount_dom+"^000000 -- ^008000"+getitemname($prize_id_dom)+"^000000 --";
	input $prize_amount_dom;
	next;
	mes .name$;
	mes "The Price ID is: ^ff0000"+$prize_id_dom+"^000000";
	mes "The Amount is: ^ff0000"+$prize_amount_dom+"^000000.";
	mes " ";
	mes " -- ^ff0000"+$prize_amount_dom+" ^008000"+getitemname($prize_id_dom)+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 8:
	sleep2 100;
	close2;
	goto l_start;
	end;

	case 9:
	mes .name$;
	mes "Enter the required GM Level";
	mes "to manage this Event.";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$GM_Dom+"^000000 --";
	input $GM_Dom;
if ($GM_Dom == 0){
	next;
	mes .name$;
	mes "I think it's not a good idea let";
	mes "GM Level 0 manage this event.";
	mes " -- ^ff0000Automatically set to 60^000000 --";
	set $GM_Dom,60;
}
	next;
	mes .name$;
	mes "GM Level = ^ff0000"+$GM_Dom+"^000000";
	mes "can now manage this event.";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

//OnClock1430:
//OnClock1730:
//OnClock2030:
l_start:
	announce "[Domination]: Carrera de click esta apunto de comenzar en Zona Evento!!",bc_all;
	specialeffect 12, SELF;
	sleep2 30000;
	announce "[Domination]: El evento de Carrera de click comenzara en 30 segundos!",bc_all;
	specialeffect 12, SELF;
	sleep2 25000;
	announce "[Domination]: Preparense, solo quedan 5 segundos!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 4!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 3!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 2!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 1!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "Listo! Denme click tantas veces puedan!",bc_all;
	set $@domination_start,1;
	end;

	}
		}
}

 

 

In this case, he could change the variable @total_clicks in my script to .total_clicks and make it a (simple) game lol:

prontera,155,181,5	script	Click Me!::clickme	757,{
 
		// Increase click count
		.total_clicks++;
		
		// Receive prize if max clicks reached
		if (.total_clicks == .max_clicks) {
			message strcharinfo(0), "You have received "+ .amount +" "+ getitemname(.prize_id) +".";
			getitem .prize_id, .amount;
			.total_clicks = 0;
			
		// Display click count
		} else {
			message strcharinfo(0), "I have been clicked "+ .total_clicks +" times.";
		}
		
		end;
		
		
		OnInit:
			// Configuration
			.max_clicks = 100;
			.prize_id = 909;
			.amount = 1;
			end;
 
}
 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

 

 

i use a similar script like the one you request o:

 

you can set up the prize and how many times you want them to click it

 

you can too set how many prizes of the specified item they can get (like 3 tcg carrd and so on)

 

gm setup

 

also info is included

 

pretty complete script o: 

 

credits to Leertaste (dunno who is, but thanks lol)

//===== rAthena Script =======================================
//= Domination Event
//===== By: ==================================================
//= Leertaste
//===== Current Version: =====================================
//= 1.0a
//===== Compatible With: =====================================
//= Every eAthena or rAthena Version
//===== Description: =========================================
//= Automated Event where every click from every char
//= increases the Number by 1 (+1)
//= The winner is who increases the Number to the max. (for example 1000)
//===== Comments: ============================================
//= This Event is automated but can be started from InGame too
//= Price/Amount and Amount-to-click is also settable from InGame
//= Change (if(getgmlevel() > 60)) // 60 to the wished GM-Level for Setups
//============================================================
//===== Changelog: ===========================================
//= -1.0a - Addet Current Variables when changing Price/Amount
//=	  - Addet Effects to Show Member which Npc is meant
//=	  - Addet Ingame Menupoint (For Admin) to edit required manage GM-Level
//=	  - Addet Auto protect from Input 0 (Amount/GM Level)
//=	  - Changed NPC ID cause of annoying noise
//=	  - Fixed Bug that comes through Npctalk (changed to Announce)
//=
//= -1.0  Finshed Scripting
//============================================================

turbo_room,107,94,4	script	[Domination]	403,{

if ($@domination_start == 1) {
			set .dom_click,.dom_click+1;
			//announce "Click numero: ["+.dom_click+"]",bc_map|bc_blue;
			specialeffect2 2;
			if (.dom_click == $@domination_amount) {
				announce "[Domination]: " + strcharinfo(0) + " ha ganado el juego!",bc_all;
				set .dom_click,0;
				set $@domination_start,0;
				getitem $prize_id_dom, $prize_amount_dom;
				end;
		}
			}else{

set .name$, "[Domination]";
set .menu$, "Times:Information:What's the Amount?:What's the Price?:Leave";
//if(getgmlevel() > $GM_Dom-1) set .menu$, .menu$ + ":^008000Set Amount ^ff0000[GM]:^008000Set Price ^ff0000[GM]:^008000Start Event ^ff0000[GM]^000000";
if(getgmlevel() > 1) set .menu$, .menu$ + ":^008000Set Amount ^ff0000[GM]:^008000Set Price ^ff0000[GM]:^008000Start Event ^ff0000[GM]^000000";
if(getgmlevel() > 99) set .menu$, .menu$ + ":^008000Set GM Level ^ff0000[ADMIN]^000000";

	mes .name$;
	mes "What do you want?";
	next;
h_menu:
switch(select(.menu$))	{
	case 1:
	mes .name$;
	mes "^ff0000Domination^000000 starts each day at:";
	mes "^00800014:30^000000, ^00800017:30^000000 and ^00800020:30^000000 o'clock.";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 2:
	mes .name$;
	mes "^ff0000Domination^000000";
	mes "Is a game where you need";
	mes "to click the Number up to:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "Every click (from everybody)";
	mes "will increase the Number by 1";
	next;
	mes .name$;
	mes "To win you will need to have";
	mes "the last click to increase the";
	mes "Number up to the set amount";
	mes "(-- ^ff0000"+$@domination_amount+"^000000 --)";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 3:
	mes .name$;
	mes "The amount to click is:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 4:
	mes .name$;
	mes "The Price is:";
	mes " -- ^ff0000"+$prize_amount_dom+" ^008000"+getitemname($prize_id_dom)+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 5:
	mes .name$;
	mes "Have a nice day.";
	close;

	case 6:							// Setting the Amount to click
	mes .name$;
	mes "Enter the Amount which";
	mes "is needed to reach:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	input $@domination_amount;
if ($@domination_amount == 0){
	next;
	mes .name$;
	mes "I think it's not a good idea put";
	mes "this to 0 because there will be no ending";
	mes " -- ^ff0000Automatically set to 500^000000 --";
	set $@domination_amount,500;
}
	next;
	mes .name$;
	mes "The amount to click is now:";
	mes " -- ^ff0000"+$@domination_amount+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 7:							// Setting the Price
	mes .name$;
	mes "Enter the Item ID of the Price:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$prize_id_dom+"^000000 --";
	mes "(^008000"+getitemname($prize_id_dom)+"^000000)";
	input $prize_id_dom;
	next;
	mes .name$;
	mes "Now enter the Amount of items the winner will recieve:";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$prize_amount_dom+"^000000 -- ^008000"+getitemname($prize_id_dom)+"^000000 --";
	input $prize_amount_dom;
	next;
	mes .name$;
	mes "The Price ID is: ^ff0000"+$prize_id_dom+"^000000";
	mes "The Amount is: ^ff0000"+$prize_amount_dom+"^000000.";
	mes " ";
	mes " -- ^ff0000"+$prize_amount_dom+" ^008000"+getitemname($prize_id_dom)+"^000000 --";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

	case 8:
	sleep2 100;
	close2;
	goto l_start;
	end;

	case 9:
	mes .name$;
	mes "Enter the required GM Level";
	mes "to manage this Event.";
	mes " ";
	mes "Current is:";
	mes " -- ^ff0000"+$GM_Dom+"^000000 --";
	input $GM_Dom;
if ($GM_Dom == 0){
	next;
	mes .name$;
	mes "I think it's not a good idea let";
	mes "GM Level 0 manage this event.";
	mes " -- ^ff0000Automatically set to 60^000000 --";
	set $GM_Dom,60;
}
	next;
	mes .name$;
	mes "GM Level = ^ff0000"+$GM_Dom+"^000000";
	mes "can now manage this event.";
	next;
	mes .name$;
	mes "What else?";
	next;
	goto h_menu;

//OnClock1430:
//OnClock1730:
//OnClock2030:
l_start:
	announce "[Domination]: Carrera de click esta apunto de comenzar en Zona Evento!!",bc_all;
	specialeffect 12, SELF;
	sleep2 30000;
	announce "[Domination]: El evento de Carrera de click comenzara en 30 segundos!",bc_all;
	specialeffect 12, SELF;
	sleep2 25000;
	announce "[Domination]: Preparense, solo quedan 5 segundos!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 4!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 3!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 2!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "[Domination]: 1!",bc_all;
	specialeffect 12, SELF;
	sleep2 1000;
	announce "Listo! Denme click tantas veces puedan!",bc_all;
	set $@domination_start,1;
	end;

	}
		}
}

 

 

In this case, he could change the variable @total_clicks in my script to .total_clicks and make it a (simple) game lol:

prontera,155,181,5	script	Click Me!::clickme	757,{
 
		// Increase click count
		.total_clicks++;
		
		// Receive prize if max clicks reached
		if (.total_clicks == .max_clicks) {
			message strcharinfo(0), "You have received "+ .amount +" "+ getitemname(.prize_id) +".";
			getitem .prize_id, .amount;
			.total_clicks = 0;
			
		// Display click count
		} else {
			message strcharinfo(0), "I have been clicked "+ .total_clicks +" times.";
		}
		
		end;
		
		
		OnInit:
			// Configuration
			.max_clicks = 100;
			.prize_id = 909;
			.amount = 1;
			end;
 
}
 

 

yup pretty cool o:! but that one i gave him can be ingame configured o:! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/22/14
  • Last Seen:  

thanks thanks @emistry working with our server^^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...