Jump to content
  • 0

how to disable and enable npc


Akbare

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

thanks joseph....i want to try thanks :)

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:  

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);

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