Jump to content
  • 0

Question

Posted

can i request a Token loot events ?

actually its an automatic events on every 1 hours .

when events started , player need to enter portal and warped at the events area .

which inside , player need to kill mobs .

this loot events will only stand for 1 mins only

and everyone will automatic warped back to town when the events ended .

Mobs details : every mobs have 30 HP which player can only deal 1 damage to mobs .

.

Thanks in advance .

18 answers to this question

Recommended Posts

Posted

is there any way that GM can also activate those events ??

bump ?

prontera,155,181,5 script Sample 757,{
OnTouch:
if( .Event ) warp "guild_vs5",0,0;
end;

OnWhisperGlobal:
if( getgmlevel() < 80 ) end;
OnMinute00:
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal.",0;
sleep ( 30 * 1000 );  // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "guild_vs5",0,0,"Name",1002,30,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "guild_vs5","All";
mapwarp "guild_vs5","prontera",155,181;
end;

OnMobKilled:
monster "guild_vs5",0,0,"Name",1002,1,strnpcinfo(0)+"::OnMobKilled";
end;
}

to start the Game

pm this with any message

[npc:Sample]

Posted

try this

prontera,155,181,4 script Portal 45,2,2,{
OnTouch:
if( .Event ) warp "guild_vs5",0,0;
end;
OnMinute00:
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal.",0;
sleep ( 30 * 1000 );  // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "guild_vs5",0,0,"Name",1002,30,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "guild_vs5","All";
mapwarp "guild_vs5","prontera",155,181;
end;
OnMobKilled:
monster "guild_vs5",0,0,"Name",1002,1,strnpcinfo(0)+"::OnMobKilled";
end;
}

  • Upvote 1
Posted

erm..i think because of the Sprite Problem...sprite 45 is a Portal Sprite..it is unclickable..

beside,...the script ( portal ) will only work to warp ppl everytime when the event is started...

Posted

Try this, haven't tested it yet.

prontera,155,185,4[TAB]script[TAB]Event Manager[TAB]81,{
if (getgmlevel(60)) // Edit to your desired GM Level

{
mes "[ Event Manager ]";
mes "Do you want to start the event?";
menu
"Yes",start,
"No",-;
close;

start:
donpcevent "Portal::OnEnable"; //Enable Event
end;
}
end; // The NPC cannot be clicked by normal players.
}


155,181,4[TAB]script[TAB]Portal[TAB]45,2,2,{

OnInit:
donpcevent "Portal::OnDisable"; //So the event wont start without GM's access
end;
OnDisable: // The NPC do Nothing without GM's Access
end;
OnEnable:
OnTouch:
if( .Event ) warp "guild_vs5",0,0;
end;
OnMinute00:
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal.",0;
sleep ( 30 * 1000 ); // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "guild_vs5",0,0,"Name",1002,30,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "guild_vs5","All";
mapwarp "guild_vs5","prontera",155,181;
end;
OnMobKilled:
monster "guild_vs5",0,0,"Name",1002,1,strnpcinfo(0)+"::OnMobKilled";
end;
}

Posted (edited)

Hmm @Zac:

It seems like your "Portal" lacks the map where it should be o.o.

155,181,4[TAB]script[TAB]Portal[TAB]45,2,2,{ 

And the purpose of this:

OnInit:
donpcevent "Portal::OnDisable"; //So the event wont start without GM's access
end;
OnDisable: // The NPC do Nothing without GM's Access
end; 

is useless, since "OnMinute00" will execute netherless.

Here is my script - your script modified yet untested:

prontera,155,185,4	script	Event Manager	81,{

if (getgmlevel() >= 60) { // Edit to your desired GM Level
mes "[ Event Manager ]";
mes "What do you want to do?";
menu "Start the Event",start,"Stop the Event",stop,"Nothing",-;
close;

start:
next;
mes "[ Event Manager ]";
mes "Do you want to start it now or let the timer do the job?";
if(select("- Now:- Timer") - 1)
	donpcevent "Portal::OnStart";
else
	donpcevent "Portal::OnEnable";
close;

stop:
donpcevent "Portal::OnDisable"; // Disable Event
close;
}
end; // The NPC cannot be clicked by normal players.
}


prontera,155,181,4	script	Portal	45,2,2,{

OnInit:
donpcevent "Portal::OnDisable"; //So the event wont start without GM's access
end;

OnTouch:
if( .Event ) warp "guild_vs5",0,0;
end;

OnDisable: // The NPC do Nothing without GM's Access
set .DoEvent,0;
set .Event,0;
end;

OnEnable: // Just allow the event to be started automatic
set .DoEvent,1;
end;

OnStart: // Activate the event and start it immediatly.
set .DoEvent,1;

OnMinute00:
if(!.DoEvent) end;
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal.",0;
sleep ( 30 * 1000 ); // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "guild_vs5",0,0,"Name",1002,30,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "guild_vs5","All";
mapwarp "guild_vs5","prontera",155,181;
end;

OnMobKilled:
monster "guild_vs5",0,0,"Name",1002,1,strnpcinfo(0)+"::OnMobKilled";
end;
}

Like I saied, it's untested.

Regards,

Chris

Edited by llchrisll
Posted (edited)

@christ , your script quite good .

but the mobs automatically respawn when all mobs died . ( which i need it only limit 40 mobs only and its wont respawn another mobs . )

also your NPC , the events manager didnt really working great .

when i choose "Start now" , the npc wont start however when i choose timer , its started as soon as i choose the " Timer "

@emistry , yours quite good . but the NPC shouldnt need to click . player need to enter portal to join events .

and guys , how to make each player can only deal 1 damage to mobs and mobs only have 40 HP .

Thanks for you two btw . you really a great helper . : )

p/s :

sorry for my bad english . ( learning )

Edited by iSkiddo
Posted
@emistry , yours quite good . but the NPC shouldnt need to click . player need to enter portal to join events .

/ok ? shouldnt need to click ?? :D

my script above....

the GM just need to Whisper the NPC to Start it...

and..other Player just need to Click to ENTER

and for monster only receive 1 HP...edit your mob_db.txt

if you dunno how edit the mob_db..

then go find a mob editor...

Posted (edited)

schg_dun01 mapflag nowarpto
schg_dun01 mapflag noskill
schg_dun01 mapflag nowarp
schg_dun01 mapflag noteleport
schg_dun01 mapflag nomemo
schg_dun01 mapflag nosave
schg_dun01 mapflag nobranch
schg_dun01 mapflag noicewall
schg_dun01 mapflag nopenalty
schg_dun01 mapflag nobranch
schg_dun01 mapflag noexp
schg_dun01 mapflag noreturn
schg_dun01 mapflag pvp_noparty
schg_dun01 mapflag restricted 4

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ra_temple,59,145,4 script Token Loot 81,{
if (getgmlevel() >= 80) { // Edit to your desired GM Level
mes "[ Event Manager ]";
mes "What do you want to do?";
menu "Start the Event",start,"Stop the Event",stop,"Nothing",-;
close;
start:
next;
mes "[ Event Manager ]";
mes "Do you want to start it now or let the timer do the job?";
if(select("- Now:- Timer") - 1)
 donpcevent "Portal::onstart";
else
 donpcevent "Portal::OnEnable";
close;

stop:
donpcevent "Portal::OnDisable"; // Disable Event
close;
}
end; // The NPC cannot be clicked by normal players.
}

ra_temple,73,132,4 script Portal 45,2,2,{
OnInit:
donpcevent "Portal::OnDisable"; //So the event wont start without GM's access
end;
OnTouch:
if( .Event ) sc_start SC_DECREASEAGI,1200000,10;
percentheal 100,100;
sc_start SC_STRIPSHIELD,1200000,5;  //if they wearing a shield then will get this negative buffs
sc_start SC_STRIPWEAPON,1200000,5;  //if they wearing a shield then will get this negative buffs
sc_start SC_STRIPARMOR,1200000,5;  //if they wearing a shield then will get this negative buffs
sc_start SC_STRIPHELM,1200000,5;  //if they wearing a shield then will get this negative buffs
warp "schg_dun01",136,142;
end;
OnDisable: // The NPC do Nothing without GM's Access
disablenpc "Portal";
set .DoEvent,0;
set .Event,0;
end;
OnEnable: // Just allow the event to be started automatic
enablenpc "Portal";
set .DoEvent,1;
end;
onstart: // Activate the event and start it immediatly.
enablenpc "Portal";
set .DoEvent,1;
OnMinute00:
if(!.DoEvent) end;
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal.",0;
sleep ( 30 * 1000 ); // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "schg_dun01",136,142,"Special Poring",1973,100,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "schg_dun01","All";
mapwarp "schg_dun01","ra_temple",119,149;
end;
OnMobKilled:
monster "schg_dun01",0,0,"Special Poring",1973,100,strnpcinfo(0)+"::OnMobKilled";
end;
}

How do i set timer for this events ? which i wanted this events started once everyday . ?

and btw , can anyone help me how do i remove this part from this script ? cause when i remove it , the NPC cannot use .. -__- !

mes "[ Event Manager ]";
mes "Do you want to start it now or let the timer do the job?";
if(select("- Now:- Timer") - 1)

And also i still got problem with the Mobs .

maybe anyone can give me ideas for the mobs ? cause i got problem edit mobs ( player can only deal " 1 " damage to the mobs ? )

1973,E_PORING,Poring,Poring,28,100,0,461,284,1,120,320,100,99,1,28,28,0,33,50,10,12,0,0,20,0x11AB,300,1672,672,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20290,1,20290,1,20290,1

Thanks guys .

and also can someone help me how do i make all events stop when woe begun and its only will resume when woe ended ?

bump for everyone ?

anyone can help me with this please ?

Edited by Arcenciel
Posted

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ra_temple,75,145,4 script Token Loot 444,{
if (getgmlevel() >= 99) { // Edit to your desired GM Level
mes "[ Event Manager ]";
mes "What do you want to do?";
menu "Start the Event",start,"Stop the Event",stop,"Nothing",-;
close;
start:
donpcevent "Portal::onstart";
close;

stop:
donpcevent "Portal::OnDisable"; // Disable Event
close;
}
end; // The NPC cannot be clicked by normal players.
}

ra_temple,73,137,4 script Portal 45,2,2,{
OnInit:
donpcevent "Portal::OnDisable"; //So the event wont start without GM's access
end;
OnTouch:
if( .Event ) sc_start SC_DECREASEAGI,1200000,10;
percentheal 100,100;
warp "schg_dun01",136,142;
end;
OnDisable: // The NPC do Nothing without GM's Access
disablenpc "Portal";
set .DoEvent,0;
set .Event,0;
end;
OnEnable: // Just allow the event to be started automatic
enablenpc "Portal";
set .DoEvent,1;
end;
onstart: // Activate the event and start it immediatly.
enablenpc "Portal";
set .DoEvent,1;
if(!.DoEvent) end;
OnMinute110:
set .Event,1;
hideoffnpc strnpcinfo(0);
announce "Loot event has started. Rush to the Portal at Events Area.",0;
enablenpc "Portal";
sleep ( 40 * 1000 ); // How long Portal Open ?
announce "Portal will be close by now..",0;
hideonnpc strnpcinfo(0);
set .Event,0;
monster "schg_dun01",0,0,"Special Poring",2502,150,strnpcinfo(0)+"::OnMobKilled";
sleep ( 60 * 1000 ); // Last how long the Event ?
killmonster "schg_dun01","All";
mapwarp "schg_dun01","ra_temple",119,149;
disablenpc "Portal";
end;
OnMobKilled:
monster "schg_dun01",0,0,"Special Poring",2502,50,strnpcinfo(0)+"::OnMobKilled";
end;
}

schg_dun01 mapflag nowarpto
schg_dun01 mapflag noskill
schg_dun01 mapflag nowarp
schg_dun01 mapflag noteleport
schg_dun01 mapflag nomemo
schg_dun01 mapflag nosave
schg_dun01 mapflag nobranch
schg_dun01 mapflag noicewall
schg_dun01 mapflag nopenalty
schg_dun01 mapflag nobranch
schg_dun01 mapflag noexp
schg_dun01 mapflag noreturn
schg_dun01 mapflag pvp_noparty

Guys . Someone please help me check on this script . seems like its wont auto start . i place

OnMinute110:

even i tried OnClock but i dun know whether i place those code on the right place .

Helps would be appreciated .

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.

  • Recently Browsing   0 members

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