Jump to content
  • 0

[request] Gold Room with timer


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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

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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

is this clickable? bcoz when i click npc nothings happen.

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:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

sir how to edit monster hp?

You'll have to edit that directly from mob_db.txt or mob_db2.txt according to where the monster is located.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

ok, thanks for that info.

Please let us know if you've got it figured out.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i need to restart my server or its ok if @loadnpc? but when i @loadnpc there's no time display in head of npc.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

The script that was provided did not include an overhead timer therefore it won't show up.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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

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:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i try this one sir emistry but no overhead timer on npc.

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:  

LOL...there is !! :( i have tried before i post it.... =='' :(

6Z5SB.png

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:  

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

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