Jump to content
  • 0

[request] Gold Room with timer


Question

Posted (edited)

Happy NEW YEAR to all.

all i want to request is a simple gold room only 1 gold drop and only gold drop. ok i will explain it further, in gold room with timer if a player enter here no one can enter only 1 player can go here but in only 1minute to farm golds, if your time has expired other player can come here but 1st come 1st serve i mean 1st click hahaha xD if your time expired you will automatically warp at prontera.

(note: please put announce when player enter. and timer displayed at the top over the head of npc.)

thanks in advanced.

Edited by hatake

18 answers to this question

Recommended Posts

Posted

hey what if no player limit?

hey help please?

try this

prontera,155,181,5	script	Sample   757,{
mes "You only have 10 minutes inside the Room.";
addtimer 600000, strnpcinfo(3)+"::On600secs";
close2;
warp.Map$,0,0;
end;

On600secs:
message strcharinfo(0),"10 Minutes have passed!";
   warp "prontera",155,181;
end;

OnInit:
set .Map$,"guild_vs5";
monster .Map$,0,0,"Gold",1002,100,strnpcinfo(0)+"::OnMobKill";
end;
OnMobKill:
getitem 969,1;
monster .Map$,0,0,"Gold",1002,1,strnpcinfo(0)+"::OnMobKill";
end;
}

Posted

try this

prontera,155,181,5 script Sample 757,{
if( getmapusers( .Map$ ) ){
npctalk "You cant go in right now. There is someone inside.";
}else{
announce "["+strcharinfo(0)+"] entered Gold Room.";
warp .Map$,0,0;
initnpctimer;
}
end;

OnInit:
set .Map$,"guild_vs5";
monster .Map$,0,0,"Gold",1002,100,strnpcinfo(0)+"::OnMobKill";
end;
OnMobKill:
getitem 969,1;
monster .Map$,0,0,"Gold",1002,1,strnpcinfo(0)+"::OnMobKill";
end;
OnTimer60000:
mapannounce .Map$,"Time's Up !! You will be warped out right now..";
mapwarp .Map$,"prontera",155,181;
end;
}

Posted

:D Sorry my mistake...

change both

announce "["+strcharinfo(0)+"] entered Gold Room.";

...

...

mapannounce .Map$,"Time's Up !! You will be warped out right now..";

to this one


announce "["+strcharinfo(0)+"] entered Gold Room.",0;
...
...
mapannounce .Map$,"Time's Up !! You will be warped out right now..",0;

Anyway...next time...please try to figure out why it didnt work / nothing happen....

Make sure you check Map Server for any possibility of Error or else....

Posted

What do you want to display in the overhead?

Edit:

Iam guessing you want the time displayed in the overhead. It will show the time



prontera,155,181,5 script Sample 757,{
if( getmapusers( .Map$ ) ){
npctalk "You cant go in right now. There is someone inside.";
}else{
set .charName$,strcharinfo(0);//Store the character name for message overhead
announce "["+strcharinfo(0)+"] entered Gold Room.";
warp .Map$,0,0;
initnpctimer;
}
end;

OnInit:
set .Map$,"guild_vs5";
set .timeOut,60000;
monster .Map$,0,0,"Gold",1002,100,strnpcinfo(0)+"::OnMobKill";
end;
OnMobKill:
getitem 969,1;
monster .Map$,0,0,"Gold",1002,1,strnpcinfo(0)+"::OnMobKill";
end;



OnTimer1000:
if(getnpctimer(0)>=.timeOut)
goto TimesUp;
else
{
message .charName$,"You have "+((.timeOut-getnpctimer(0))/1000)+" left.";
initnpctimer;
}
end;

TimesUp:
message .charName$,"Time's Up!! You will be warped out right now..";
mapannounce .Map$,"Time's Up !! You will be warped out right now..";
mapwarp .Map$,"prontera",155,181;
end;
}

Posted

Well...actually he is looking for a NPC with Countdown Chatroom title above the NPC when the users has entered the room...

prontera,155,181,5 script Sample 757,{
if( getmapusers( .Map$ ) ){
npctalk "You cant go in right now. There is someone inside.";
}else{
announce "["+strcharinfo(0)+"] entered Gold Room.",0;
warp .Map$,0,0;
initnpctimer;
}
end;


OnInit:
set .Map$,"guild_vs5";
monster .Map$,0,0,"Gold",1002,100,strnpcinfo(0)+"::OnMobKill";
while( 1 ){
delwaitingroom;
if( getmapusers( .Map$ ) ){
 waitingroom "Countdown "+( 60 - ( getnpctimer(0) / 1000 ) )+" Seconds",0;
}
sleep 1000;
}
end;


OnMobKill:
getitem 969,1;
monster .Map$,0,0,"Gold",1002,1,strnpcinfo(0)+"::OnMobKill";
end;

OnTimer60000:
mapannounce .Map$,"Time's Up !! You will be warped out right now..",0;
mapwarp .Map$,"prontera",155,181;
end;
}

Posted

You have to click the NPC go into the room...then only it will start Countdown...

and if you change the Map Setting..please make sure you change every single map name to your mapname

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