Jump to content
  • 0

Token Loot


iSkiddo

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

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 .

Link to comment
Share on other sites

18 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:  

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]

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:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

no errors already .

but seems like the NPC cannot click .. @.@

any ideas ?

Edited by iSkiddo
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:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

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

bump ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   4
  • Joined:  01/25/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

@zac , its not working . NPC still cannot be use and events failed to start . hmm .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   4
  • Joined:  01/25/12
  • Last Seen:  

Oh damn, wish that one of the pro scripters will look into this e_e

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

well i would also add an check if the event hasn't ended yet

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

@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
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:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

@emistry , but well yours , when whisper , its didnt start ...

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:  

@emistry , but well yours , when whisper , its didnt start ...

if( getgmlevel() < 80 ) end;

only a GM Level 80 or above can start this..........

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

btw , can anyone added its autostrip when warping to the arena ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

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

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:  

OnMinute only can use range of 00 ~ 59 ....there is no 110th minutes in every hours...max only 60minutes....so it is 00 ~ 59 ...

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