johnbond2 Posted January 13, 2013 Posted January 13, 2013 (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 January 13, 2013 by gunman Quote
nanakiwurtz Posted January 13, 2013 Posted January 13, 2013 (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 January 13, 2013 by nanakiwurtz Quote
johnbond2 Posted January 13, 2013 Author Posted January 13, 2013 (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 January 13, 2013 by gunman Quote
Yummy Posted January 13, 2013 Posted January 13, 2013 · Hidden by Euphy, January 13, 2013 - Irrelevant. Hidden by Euphy, January 13, 2013 - Irrelevant. Hi Gunman! I'm your biggest fan "Adestria" here
nanakiwurtz Posted January 13, 2013 Posted January 13, 2013 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; } Quote
Question
johnbond2
Kindly anyone please show me how to make my particular NPC to only enable warping during weekends (wholeday) and disable warping during weekdays.
Thank you in advance!
Edited by gunman4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.