Jump to content
  • 0

Help with Event


Hyoru

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   11
  • Joined:  01/30/12
  • Last Seen:  

Hi, I found this event here in rathena "Cluck! Cluck! Boom", but its too hard to win, i want raise the chances to win.

Here is the script:

//===== 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.gat,147,173,4 script Cluckers 800,{
if ($@startcluck == 1) goto L_playcluck;
cluckcluck:
if (getgmlevel() >= 80) 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!] Akan Di mulai Di Kota Prontera!!",bc_blue;
initnpctimer;
end;
OnTimer10000:
announce "Tolong Cepat Permainan Ayam Gila Akan Segera Di mulai Di Prontera!",bc_blue;
end;
OnTimer20000:
announce "Bagi Pemenang Akan Mendapatkan Aloe 500 Buah Lho!",bc_blue;
end;
OnTimer30000:
announce "Cara Bermain nya sangat mudah Lho, Kalian Tinggal Klik Npc Ayam nya Setelah itu Jika Kalian Hoki Maka Kalian akan menjadi Pemenang, Berminat??",bc_blue;
end;
OnTimer40000:
announce "Ayooo Teman - Teman Semua Hadiah nya Aloe 500 buah Lumayan Lho!",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;
}
}

Thanks Adv.

Edited by Brian
use [codebox] for script/code longer than 10 lines
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  12/12/11
  • Last Seen:  

if( rand(50) < 3) 

change this

example:

if( rand(50) < 10 )

Edited by kadze
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.01
  • Content Count:  186
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

How can we make this as an automated?

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:  

find this

L_cluckannounce:

add above or below

OnMinute30:
OnClock0100:
OnClock0500:
//etc..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  12/10/11
  • Last Seen:  

i've use this script for test and nothing happens.

OnMinute1:

or i can use this one instead.

OnClock0000:

Edited by isaw4sal3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  09/27/12
  • Last Seen:  

how to make the chicken moves? ive seen some of the server i played the chicken is moving lol.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

how to make the chicken moves? ive seen some of the server i played the chicken is moving lol.

There is a script command for it: npcwalkto

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...