Jump to content

Recommended Posts

Posted

File Name: Bombring

File Submitter: jezznar

File Submitted: 06 Oct 2015

File Category: Games, Events, Quests

Content Author: Jezznar




Features
1. 5-minute wait time
2. 5 rounds of 30 seconds each
3. Mechanics:
Win conditions:
only 1 player left
or all rounds finished
# of bombrings spawned:
if players <= 20: 3 * #of players
if players > 20: 60
Frequency of bombring spawn:
Round 1: every 4 seconds
Round 2: every 3 seconds
Round 3: every 2 seconds
Round 4: every 1.5 seconds
Round 5: every 1 second
4. rewards: (configurable, just search for "CASHPOINTS")
winner(s): 250 CASHPOINTS + configurable item
non-winners: 100 CASHPOINTS
5. GM commands:
@enablebombring to start
@disablebombring to interrupt

Click here to download this file

Posted

Hi..

Thanks for the script.

I need autostart event on minutes 14.

Where to add ?

Thanks you

Hi, just look for the "OnGmStart" block and add OnMinute14 at the end. It should look something like this:

OnMinute14:
OnEventStart:
	initnpctimer;
	hideoffnpc "The Baaam#prt";
	set .x, 5;
Please let me know if it solved your problem. :)
Posted

 

Hi..

Thanks for the script.

I need autostart event on minutes 14.

Where to add ?

Thanks you

Hi, just look for the "OnGmStart" block and add OnMinute14 at the end. It should look something like this:

OnMinute14:
OnEventStart:
	initnpctimer;
	hideoffnpc "The Baaam#prt";
	set .x, 5;
Please let me know if it solved your problem. :)

 

 

it didnt do the trick for me

 

set .eventstarted, 0;
OnEventStart:
initnpctimer;
hideoffnpc "The Baaam#prt";
set .x, 5;
OnMinute31
OnTimer0000:
if (.eventstarted == 1) 
end;
announce "The Baaam: The bombring event has started!",bc_all;
announce "The Baaam: Come to prontera and talk to me to join!",bc_all;
announce "The Baaam: "+.x+" minutes remaining before it starts!",bc_all;
set .x, .x - 1;
end;
OnTimer60000:
Posted


set .eventstarted, 0;

OnMinute31

OnEventStart:

initnpctimer;

hideoffnpc "The Baaam#prt";

set .x, 5;

OnTimer0000:

if (.eventstarted == 1)

end;

announce "The Baaam: The bombring event has started!",bc_all;

announce "The Baaam: Come to prontera and talk to me to join!",bc_all;

announce "The Baaam: "+.x+" minutes remaining before it starts!",bc_all;

set .x, .x - 1;

end;

OnTimer60000:

Posted (edited)

I forgot to add the set .eventstarted, 0;

here's the final code:

 

just search for OnEventStarted then add two lines before it

OnMinute14:
	set .eventstarted, 0;
OnEventStart:
	initnpctimer;
	hideoffnpc "The Baaam#prt";
	set .x, 5;
OnTimer0000:
	if (.eventstarted == 1) 
		end;
	announce "The Baaam: The bombring event has started!",bc_all;
	announce "The Baaam: Come to prontera and talk to me to join!",bc_all;
	announce "The Baaam: "+.x+" minutes remaining before it starts!",bc_all;
	set .x, .x - 1;
	end;
Edited by jezznar
Posted (edited)

So i tried writing the script like this


OnInit:
set .eventstarted, 0;
set $bombring_reward,12256;
bindatcmd "enablebombring","Bombring::OnGMStart";
bindatcmd "disablebombring","Bombring::OnGMStop";
hideonnpc "The Baaam#qz";
hideonnpc "The Baaam#prt";
end;

OnGMStart:
if (getgroupid() < 99){
dispbottom "You are not eligible for this command.", RED;
end;
}

OnMinute04
set .eventstarted, 0;
OnEventStart:
initnpctimer;
hideoffnpc "The Baaam#prt";
set .x, 5;
OnTimer0000:
if (.eventstarted == 1) 
end;
announce "The Baaam: The bombring event has started!",bc_all;
announce "The Baaam: Come to prontera and talk to me to join!",bc_all;
announce "The Baaam: "+.x+" minutes remaining before it starts!",bc_all;
set .x, .x - 1;
end;

& This

OnInit:
set .eventstarted, 0;
set $bombring_reward,12256;
bindatcmd "enablebombring","Bombring::OnGMStart";
bindatcmd "disablebombring","Bombring::OnGMStop";
hideonnpc "The Baaam#qz";
hideonnpc "The Baaam#prt";
end;

OnGMStart:
if (getgroupid() < 99){
dispbottom "You are not eligible for this command.", RED;
end;
}

set .eventstarted, 0;
OnMinute04
set .eventstarted, 0;
OnEventStart:
initnpctimer;
hideoffnpc "The Baaam#prt";
set .x, 5;
OnTimer0000:
if (.eventstarted == 1) 
end;
announce "The Baaam: The bombring event has started!",bc_all;
announce "The Baaam: Come to prontera and talk to me to join!",bc_all;
announce "The Baaam: "+.x+" minutes remaining before it starts!",bc_all;
set .x, .x - 1;
end;
OnTimer60000:
OnTimer120000:
OnTimer180000:
OnTimer240000:
And in both scenario the script wont start on a timer.

Nvm figure it out, i had a syntax error. Thanks for the aid ^^

Edited by Emistry
codebox
  • 2 weeks later...
  • 2 months later...
Posted

when i try to use @enablebombring .. is a unknown command

 

please help me bro

 

what emulator are you using? This currently works only on rathena and hercules.

Posted

 

when i try to use @enablebombring .. is a unknown command

 

please help me bro

 

what emulator are you using? This currently works only on rathena and hercules.

 

sorry .. solved ! 

LOL that's my fault ! haha 

forget to @reloadscript 

Posted

 

 

when i try to use @enablebombring .. is a unknown command

 

please help me bro

 

what emulator are you using? This currently works only on rathena and hercules.

 

sorry .. solved ! 

LOL that's my fault ! haha 

forget to @reloadscript 

 

Great! :) Have Fun.

  • 1 year later...
  • 1 year later...
Posted

tried the script but it seems after 1 round of game, it does not hide the NPC. the NPC that gives out the prize and it is bugged.

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...