Jump to content
  • 0

Special room


maynard

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

Can someone make me a script. the npc wil be hidden and only appear on a specific time and last for 1 minute only. Lets say 4pm. if you click you will go to a small room .After 1 minute it will be close and all people that inside will be warp back to prontera.

Maybe a Portal will do. It will re-spawn in the middle of prontera and there's a Broadcast that the portal have appear and it will give some info that it will only last for 1 minute only.If possible can it give warning like 30 seconds remaining and then last 10 seconds then countdown.987654321. Thank you!

Link to comment
Share on other sites

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

try this

prontera,155,181,5 script Sample 45,2,2,{
OnTouch:
if( .Started ) warp "guild_vs5",0,0;
end;
OnInit:
setarray .Message$,
  "A Portal to a Small room is opened for 30 seconds..",
  "The NPC has occured at middle of Prontera.",
  "Hurry up..and get to the Portal if you want join.",
  "In the Room you have 1 minutes to play only...";
end;
OnClock1600:
for( set .@i,0; .@i < getarraysize( .Mesage$ ); set .@i,.@i + 1 ){
announce .Message$[.@i],0;
sleep 1000;
}
set .Started,1;
hideoffnpc strnpcinfo(0);
sleep ( 20 * 1000 );
for( set .@i,10; .@i > 0; set .@i,.@i - 1 ){
announce "Countdown "+.@i+" Seconds",0;
sleep 1000;
}
hideonnpc strnpcinfo(0);
set .Started,0;
announce "Portal Closed.",0;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

The message doesn't show, the portal appear but there is none broadcast of message. The only message that show are the countdown.

for( set .@i,0; .@i < getarraysize( .Mesage$ ); set .@i,.@i + 1 ){ <<<<<<<<<<typo error

Its working now

Sir add also time limit of 1 minute inside the map then after 1 minute it will clean the map and all people inside will be warp back in prontera.

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


...
...
...
announce "Portal Closed.",0;
sleep ( 60 * 1000 );
mapwarp "guild_vs5","prontera",155,181;
end;

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