Jump to content
  • 0

Automated Dice Event & LMS


Bringer

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

            1. Dice Event
the npc will annouce Dice Event Warp @ Prontera 155 178

Warp portal Set quiz_01 333 234
there will Dice NPC @ quiz_01 334 240 this npc apper only when only 1 player left on the map
and winner need type is name too get the 100 PvP Points

and other players get 20 PvP Point if they lose on the dice event

the npc run Every 2 hours

2.Last Man Standing
Npc Open @ Payon 153 219

Last Man Standing Map : poring_c01

Winner will get 100 PvP Points
Loser will get 20 PvP Points

on the map of poring_c01 there an NPC LMS Hiding it will apper when only 1 Player Left on the map the Winner click the npc get is 100 PvP Points

NPC will be Announce if Only 2 Players left on the map

once the player get is 100 PvP LMS auto hide

Sorry for Bad English     

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

On 3/25/2014 at 1:01 PM, sandbox said:

Try this script of mine for dice event.

 

just edit the 'getitem' part to 'set'

 

http://rathena.org/board/topic/92898-quests-games-dice-event/

sor how to fix this errors?

Untitled.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Try this script of mine for dice event.

 

just edit the 'getitem' part to 'set'

 

http://rathena.org/board/topic/92898-quests-games-dice-event/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

Try this script of mine for dice event.

 

just edit the 'getitem' part to 'set'

 

http://rathena.org/board/topic/92898-quests-games-dice-event/

and winner need type is name too get the 100 PvP Points

and other players get 20 PvP Point if they lose on the dice event

 

can you make me this script sir sandbox

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

 

Try this script of mine for dice event.

 

just edit the 'getitem' part to 'set'

 

http://rathena.org/board/topic/92898-quests-games-dice-event/

and winner need type is name too get the 100 PvP Points

and other players get 20 PvP Point if they lose on the dice event

 

can you make me this script sir sandbox

 

//======Name========================================
// Dice Event
//======Version=====================================
// 1.0
//======Author(s)===================================
// Sandbox
//======Comments====================================
// In loving memory of AstralRO
//==================================================



//Edit to where would you place the warper
mellina,109,153,3	script	Dice Event Warper#dice	723,{

mes "Do you want to join the Dice Event?";
menu "Yes",-;
warp "quiz_02",55,87;
close;

}

-	script	DiceTrigger	-1,{

OnInit:
disablenpc "Dice Event Warper#dice";
disablenpc "Claim Your Prize!#dice";
end;


OnDiceETrigger:
if(agitcheck() == 1) end;
enablenpc "Dice Event Warper#dice";
announce "Dice Event: We are going to have a Dice Event",bc_all,0x8A2BE2;
sleep2 1000;
announce "Dice Event: For those who want to join, please warp @ mellina 115 150!",bc_all,0x8A2BE2;
sleep2 1000;
announce "Dice Event: The Warper would be open for 1 minute",bc_all,0x8A2BE2;
sleep2 30000;
announce "Dice Event: Last 30 Seconds.",bc_all,0x8A2BE2;
sleep2 30000;
announce "Dice Event: Warper Closed.",bc_all,0x8A2BE2;
disablenpc "Dice Event Warper#dice";
areawarp "ra_temsky",86,149,113,134,"ra_temsky",99,114;
donpcevent "DiceEvent::OnDiceStart";
end;

}

quiz_02,55,90,3	script	Got Stuck?#dice	779,{

mes "[ Got Stuck? ]";
mes "Do you wish to go back?";
menu "Yes",-;
warp "mellina",115,150;
close;

}


quiz_02,37,80,3	script	Box 1	111,{

warp "quiz_02",37,70;
close;

}

quiz_02,49,80,3	script	Box 2	111,{

warp "quiz_02",49,70;
close;

}

quiz_02,61,80,3	script	Box 3	111,{

warp "quiz_02",61,70;
close;

}


quiz_02,73,80,3	script	Box 4	111,{

warp "quiz_02",73,70;
close;

}

quiz_02,37,64,3	script	Go Back#1	858,{

warp "quiz_02",55,76;
close;

}


quiz_02,49,64,3	script	Go Back#2	858,{

warp "quiz_02",55,76;
close;

}

quiz_02,61,64,3	script	Go Back#3	858,{

warp "quiz_02",55,76;
close;

}

quiz_02,73,64,3	script	Go Back#4	858,{

warp "quiz_02",55,76;
close;

}


-	script	DiceEvent	-1,{

OnDiceStart:
mapannounce "quiz_02","We are about to start the Dice event.",bc_blue;
sleep2 1000;
mapannounce "quiz_02","Rules are simple:",bc_blue;
sleep2 1000;
mapannounce "quiz_02","I'm going to pick a number, 1 to 4. Then I'll do a countdown from 5 to 0",bc_blue;
sleep2 1000;
mapannounce "quiz_02","All you have to do is go to box of the number you want",bc_blue;
sleep2 1000;
mapannounce "quiz_02","Example, If I get the number 4, All players standing on number 1 to 3 loses.",bc_blue;
sleep2 1000;
mapannounce "quiz_02","We'll do it again and again until we have 1 player left on this map.",bc_blue;
sleep2 2000;
mapannounce "quiz_02","Before I forget, you must GO INSIDE THE BOX! because if you're caught standing outside the box you'll be automatically disqualified!",bc_blue;
sleep2 2000;
mapannounce "quiz_02","That's it.. Now let's get it on!",bc_blue;
sleep2 3000;
goto L_start;
end;


L_start:
enablenpc "Go Back#1";
enablenpc "Go Back#2";
enablenpc "Go Back#3";
enablenpc "Go Back#4";
if(getmapusers("quiz_02") == 1) goto L_winner;
enablenpc "Box 1";
enablenpc "Box 2";
enablenpc "Box 3";
enablenpc "Box 4";
if(getmapusers("quiz_02") == 0) goto L_noone;
if(getmapusers("quiz_02") > 1) {
set $@number,rand(1,4);
sleep2 1000;
mapannounce "quiz_02","I'm ready to pick a number. Please go to the box of the number you want! Go go go!",bc_blue;
sleep2 20000;
mapannounce "quiz_02","5",bc_blue;
sleep2 1500;
mapannounce "quiz_02","4",bc_blue;
sleep2 1500;
mapannounce "quiz_02","3",bc_blue;
sleep2 1500;
mapannounce "quiz_02","2",bc_blue;
sleep2 1500;
mapannounce "quiz_02","1",bc_blue;
disablenpc "Box 1";
disablenpc "Box 2";
disablenpc "Box 3";
disablenpc "Box 4";
disablenpc "Go Back#1";
disablenpc "Go Back#2";
disablenpc "Go Back#3";
disablenpc "Go Back#4";
areawarp "quiz_02",32,95,79,76,"mellina",115,150;
areawarp "quiz_02",80,85,80,76,"mellina",115,150;
areawarp "quiz_02",31,85,31,76,"mellina",115,150;
if(getmapusers("quiz_02") == 0) goto L_noone;
sleep2 1000;
mapannounce "quiz_02","Time's Up. Winning number is "+$@number+"!",bc_blue;
	if($@number == 4) goto L_Lose1;
	if($@number == 3) goto L_Lose2;
	if($@number == 2) goto L_Lose3;
	if($@number == 1) goto L_Lose4;
end;

}

L_Lose1:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"mellina",115,150;
areawarp "quiz_02",45,73,53,52,"mellina",115,150;
areawarp "quiz_02",57,73,65,52,"mellina",115,150;
set #PVPPoint, #PVPPoint+20;  // SETTING PVP POINT
goto L_start;
end;

L_Lose2:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"mellina",115,150;
areawarp "quiz_02",45,73,53,52,"mellina",115,150;
areawarp "quiz_02",69,73,77,52,"mellina",115,150;
set #PVPPoint, #PVPPoint+20; // SETTING PVP POINT
goto L_start;
end;

L_Lose3:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"mellina",115,150;
areawarp "quiz_02",57,73,65,52,"mellina",115,150;
areawarp "quiz_02",69,73,77,52,"mellina",115,150;
set #PVPPoint, #PVPPoint+20; // SETTING PVP POINT
goto L_start;
end;

L_Lose4:
//Edit to where will you warp players that lost
areawarp "quiz_02",45,73,53,52,"mellina",115,150;
areawarp "quiz_02",57,73,65,52,"mellina",115,150;
areawarp "quiz_02",69,73,77,52,"mellina",115,150;
set #PVPPoint, #PVPPoint+20; // SETTING PVP POINT
goto L_start;
end;

L_noone:
announce "No one won the Dice Event!",bc_all,0x8A2BE2;
disablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
end;

L_winner:
enablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
end;

}

quiz_02,55,84,3	script	Claim Your Prize!#dice	904,{
	mes "Please tell me your name";
	next;
	input .@name$;
	if(.@name$ != strcharinfo(0)) {
		mes "Are you sure thats your character name?";
		close;
	}
	mes "Congrats. You've won.";
	close2;
	announce strcharinfo(0)+" won the Dice Event!",bc_all,0x8A2BE2;
	set #PVPPoint, #PVPPoint+100; // SETTING PVP POINT
	warp "prontera",155,182;
	disablenpc "Claim Your Prize!#dice";
	disablenpc "Dice Event Warper#dice";
	close;
	end;

}

quiz_02	mapflag	nowarp
quiz_02	mapflag	nowarpto
quiz_02	mapflag	noskill
quiz_02	mapflag	noteleport
quiz_02	mapflag	nomemo
quiz_02	mapflag	nosave	SavePoint
quiz_02	mapflag	noicewall
quiz_02	mapflag	noloot

please correction again @drewxd , this original script from @sandbox and has get prize +20 PVPPoint if lose , and winner must input the name before get reward +100 PVPPoint :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

@nostafu

can you help to edit when the player lost on the dice event warp poring_w02 99 70

 

bcuz i dont have this map mellina our main town is poring_w02

Edited by DrewxD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

//======Name========================================
// Dice Event
//======Version=====================================
// 1.0
//======Author(s)===================================
// Sandbox
//======Comments====================================
// In loving memory of AstralRO
//==================================================



//Edit to where would you place the warper
mellina,109,153,3	script	Dice Event Warper#dice	723,{

mes "Do you want to join the Dice Event?";
menu "Yes",-;
warp "quiz_02",55,87;
close;

}

-	script	DiceTrigger	-1,{

OnInit:
disablenpc "Dice Event Warper#dice";
disablenpc "Claim Your Prize!#dice";
end;


OnDiceETrigger:
if(agitcheck() == 1) end;
enablenpc "Dice Event Warper#dice";
announce "Dice Event: We are going to have a Dice Event",bc_all,0x8A2BE2;
sleep2 1000;
announce "Dice Event: For those who want to join, please warp @ mellina 115 150!",bc_all,0x8A2BE2;
sleep2 1000;
announce "Dice Event: The Warper would be open for 1 minute",bc_all,0x8A2BE2;
sleep2 30000;
announce "Dice Event: Last 30 Seconds.",bc_all,0x8A2BE2;
sleep2 30000;
announce "Dice Event: Warper Closed.",bc_all,0x8A2BE2;
disablenpc "Dice Event Warper#dice";
areawarp "ra_temsky",86,149,113,134,"ra_temsky",99,114;
donpcevent "DiceEvent::OnDiceStart";
end;

}

quiz_02,55,90,3	script	Got Stuck?#dice	779,{

mes "[ Got Stuck? ]";
mes "Do you wish to go back?";
menu "Yes",-;
warp "mellina",115,150;
close;

}


quiz_02,37,80,3	script	Box 1	111,{

warp "quiz_02",37,70;
close;

}

quiz_02,49,80,3	script	Box 2	111,{

warp "quiz_02",49,70;
close;

}

quiz_02,61,80,3	script	Box 3	111,{

warp "quiz_02",61,70;
close;

}


quiz_02,73,80,3	script	Box 4	111,{

warp "quiz_02",73,70;
close;

}

quiz_02,37,64,3	script	Go Back#1	858,{

warp "quiz_02",55,76;
close;

}


quiz_02,49,64,3	script	Go Back#2	858,{

warp "quiz_02",55,76;
close;

}

quiz_02,61,64,3	script	Go Back#3	858,{

warp "quiz_02",55,76;
close;

}

quiz_02,73,64,3	script	Go Back#4	858,{

warp "quiz_02",55,76;
close;

}


-	script	DiceEvent	-1,{

OnDiceStart:
mapannounce "quiz_02","We are about to start the Dice event.",bc_blue;
sleep2 1000;
mapannounce "quiz_02","Rules are simple:",bc_blue;
sleep2 1000;
mapannounce "quiz_02","I'm going to pick a number, 1 to 4. Then I'll do a countdown from 5 to 0",bc_blue;
sleep2 1000;
mapannounce "quiz_02","All you have to do is go to box of the number you want",bc_blue;
sleep2 1000;
mapannounce "quiz_02","Example, If I get the number 4, All players standing on number 1 to 3 loses.",bc_blue;
sleep2 1000;
mapannounce "quiz_02","We'll do it again and again until we have 1 player left on this map.",bc_blue;
sleep2 2000;
mapannounce "quiz_02","Before I forget, you must GO INSIDE THE BOX! because if you're caught standing outside the box you'll be automatically disqualified!",bc_blue;
sleep2 2000;
mapannounce "quiz_02","That's it.. Now let's get it on!",bc_blue;
sleep2 3000;
goto L_start;
end;


L_start:
enablenpc "Go Back#1";
enablenpc "Go Back#2";
enablenpc "Go Back#3";
enablenpc "Go Back#4";
if(getmapusers("quiz_02") == 1) goto L_winner;
enablenpc "Box 1";
enablenpc "Box 2";
enablenpc "Box 3";
enablenpc "Box 4";
if(getmapusers("quiz_02") == 0) goto L_noone;
if(getmapusers("quiz_02") > 1) {
set $@number,rand(1,4);
sleep2 1000;
mapannounce "quiz_02","I'm ready to pick a number. Please go to the box of the number you want! Go go go!",bc_blue;
sleep2 20000;
mapannounce "quiz_02","5",bc_blue;
sleep2 1500;
mapannounce "quiz_02","4",bc_blue;
sleep2 1500;
mapannounce "quiz_02","3",bc_blue;
sleep2 1500;
mapannounce "quiz_02","2",bc_blue;
sleep2 1500;
mapannounce "quiz_02","1",bc_blue;
disablenpc "Box 1";
disablenpc "Box 2";
disablenpc "Box 3";
disablenpc "Box 4";
disablenpc "Go Back#1";
disablenpc "Go Back#2";
disablenpc "Go Back#3";
disablenpc "Go Back#4";
areawarp "quiz_02",32,95,79,76,"poring_w02",99,70;
areawarp "quiz_02",80,85,80,76,"poring_w02",99,70;
areawarp "quiz_02",31,85,31,76,"poring_w02",99,70;
if(getmapusers("quiz_02") == 0) goto L_noone;
sleep2 1000;
mapannounce "quiz_02","Time's Up. Winning number is "+$@number+"!",bc_blue;
	if($@number == 4) goto L_Lose1;
	if($@number == 3) goto L_Lose2;
	if($@number == 2) goto L_Lose3;
	if($@number == 1) goto L_Lose4;
end;

}

L_Lose1:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"poring_w02",99,70;
areawarp "quiz_02",45,73,53,52,"poring_w02",99,70;
areawarp "quiz_02",57,73,65,52,"poring_w02",99,70;
set #PVPPoint, #PVPPoint+20;  // SETTING PVP POINT
goto L_start;
end;

L_Lose2:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"poring_w02",99,70;
areawarp "quiz_02",45,73,53,52,"poring_w02",99,70;
areawarp "quiz_02",57,73,65,52,"poring_w02",99,70;
set #PVPPoint, #PVPPoint+20; // SETTING PVP POINT
goto L_start;
end;

L_Lose3:
//Edit to where will you warp players that lost
areawarp "quiz_02",33,73,41,52,"poring_w02",99,70;
areawarp "quiz_02",57,73,65,52,"poring_w02",99,70;
areawarp "quiz_02",69,73,77,52,"poring_w02",99,70;
set #PVPPoint, #PVPPoint+20; // SETTING PVP POINT
goto L_start;
end;

L_Lose4:
//Edit to where will you warp players that lost
areawarp "quiz_02",45,73,53,52,"poring_w02",99,70;
areawarp "quiz_02",57,73,65,52,"poring_w02",99,70;
areawarp "quiz_02",69,73,77,52,"poring_w02",99,70;
set #PVPPoint, #PVPPoint+20; // SETTING PVP POINT
goto L_start;
end;

L_noone:
announce "No one won the Dice Event!",bc_all,0x8A2BE2;
disablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
end;

L_winner:
enablenpc "Claim Your Prize!#dice";
disablenpc "Dice Event Warper#dice";
end;

}

quiz_02,55,84,3	script	Claim Your Prize!#dice	904,{
	mes "Please tell me your name";
	next;
	input .@name$;
	if(.@name$ != strcharinfo(0)) {
		mes "Are you sure thats your character name?";
		close;
	}
	mes "Congrats. You've won.";
	close2;
	announce strcharinfo(0)+" won the Dice Event!",bc_all,0x8A2BE2;
	set #PVPPoint, #PVPPoint+100; // SETTING PVP POINT
	warp "poring_w02",99,70;
	disablenpc "Claim Your Prize!#dice";
	disablenpc "Dice Event Warper#dice";
	close;
	end;

}

quiz_02	mapflag	nowarp
quiz_02	mapflag	nowarpto
quiz_02	mapflag	noskill
quiz_02	mapflag	noteleport
quiz_02	mapflag	nomemo
quiz_02	mapflag	nosave	SavePoint
quiz_02	mapflag	noicewall
quiz_02	mapflag	noloot

;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

How to run this automated

every 2 hours what part the script i need put the 
 

OnClock

Edited by DrewxD
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...