Jump to content
  • 0

Adding Time on my NPC


johnbond2

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/15/12
  • Last Seen:  

Kindly anyone please show me how to make my particular NPC to only enable warping during weekends (wholeday) and disable warping during weekdays.

pvp_y_room,53,85,5 script Izlude PvP 973,{
mes "[PvP Warper]";
mes "PvP Effects.";
next;
sc_end SL_ASSASIN;
skill 420,0,0; //break fall
sc_end TK_DODGE;
undisguise;
if (getgmlevel() <= 3) npctalk ""+strcharinfo(0)+" has entered.";
warp "pvp_y_8-3",0,0;
close;
end;

Thank you in advance!

Edited by gunman
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

pvp_y_room,53,85,5 script Izlude PvP 973,{
mes "[PvP Warper]";
if ((gettime(4) != 0) || (gettime(4) != 6)) {mes "I'm sorry, the room opens only on weekends."; close;}
mes "PvP Effects.";
next;
sc_end SL_ASSASIN;
skill 420,0,0; //break fall
sc_end TK_DODGE;
undisguise;
if (getgmlevel() <= 3) npctalk ""+strcharinfo(0)+" has entered.";
warp "pvp_y_8-3",0,0;
close;
end;

Edited by nanakiwurtz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/15/12
  • Last Seen:  

pvp_y_room,53,85,5 script Izlude PvP 973,{
mes "[PvP Warper]";
if ((gettime(4) != 0) || (gettime(4) != 6)) {mes "I'm sorry, the room opens only on weekends."; close;}
mes "PvP Effects.";
next;
sc_end SL_ASSASIN;
skill 420,0,0; //break fall
sc_end TK_DODGE;
undisguise;
if (getgmlevel() <= 3) npctalk ""+strcharinfo(0)+" has entered.";
warp "pvp_y_8-3",0,0;
close;
end;

Thank you!

Though I have a waitingroom enabled in the NPC:

OnInit:
while( 1 ){
delwaitingroom;
waitingroom "["+getmapusers("pvp_y_8-3")+"] PvP",0;
sleep 3000;
}
end;
}

How can I make it that on weekdays it will show a different waitingroom message?

Thanks again my friend!

Edited by gunman
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   12
  • Joined:  03/07/12
  • Last Seen:  

Posted · Hidden by Euphy, January 13, 2013 - Irrelevant.
Hidden by Euphy, January 13, 2013 - Irrelevant.

Hi Gunman! :) I'm your biggest fan "Adestria" here :)

Link to comment

  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

OnInit:
while( 1 ){
delwaitingroom;
if ((gettime(4) != 0) || (gettime(4) != 6)) waitingroom "Weekdays",0;
else
waitingroom "["+getmapusers("pvp_y_8-3")+"] PvP",0;
sleep 3000;
}
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...