Jump to content
  • 0

how to disable and enable npc


Question

Posted

thanks for read the thread /shy

i want to ask,

how to make npc enable and disable the following day at

Friday 13:00 to 16:00

This script would I use to safe refine npc

thanks for advance :)

3 answers to this question

Recommended Posts

Posted (edited)
map,x,y,z script NPC_Name Sprite,{

//Your Script Here
end;

OnClock1300:
enablenpc strnpcinfo(0);
end;

OnClock1600:
disablenpc strnpcinfo(0);
end;

OnInit:
if (gettime(3) >= 13 && gettime(3) < 16) enablenpc strnpcinfo(0);
disablenpc strnpcinfo(0);
end;
}

Edited by Joseph
Posted

these line

if (gettime(3) >= 13 && gettime(3) < 16) enablenpc strnpcinfo(0);
disablenpc strnpcinfo(0);

should be like this

disablenpc strnpcinfo(0);
if (gettime(3) >= 13 && gettime(3) < 16) enablenpc strnpcinfo(0);

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