Jump to content
  • 0

Adding Time on my NPC


Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted (edited)
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
Posted (edited)

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
Posted · Hidden by Euphy, January 13, 2013 - Irrelevant.
Hidden by Euphy, January 13, 2013 - Irrelevant.

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

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