Jump to content
  • 0

Make NPC Hide


jigsgfx

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

hi, i have this script, can anyone make it auto hide @ 14:00 time? and will show @ 16:00??

here's the script


//==================================
// Priest Support Outside izlude
//==================================

turbo_room,84,90,5 script Support Priest 60,{

mes "[Father Meb]";
mes "You want to hire Priest ? if you do it only Zeny 1,000 Point for 1 minute, 5,000 Zeny for 5 minute and 1,000,000 Zeny for 9 Hours";
mes "For Novice it will be free, for 3 Hours";
menu "Ok",-,"i think about it..",L_bye;

mes "[Father Meb]";
mes "Let see if you already Hire 1 of my priest...";
next;

if ( mobcount( strcharinfo(3), strnpcinfo(0) +"::On"+ getcharid(0) ) ) {
	mes "you cannot Hire another Support Priest";
	close;
 }

if (class == 0) goto LNovice;

mes "[Father Meb]";
mes "Ok there's are Time for My Priest to work... Choose which time you want?";
menu "1 minute",-,"5 minute",fivemin,"9 Hours",ninehours,"Change my mind...",L_bye;

if (Zeny < 1000) goto nocash;

summon "Support Priest",2501,100, strnpcinfo(0) +"::On"+ getcharid(0);
set Zeny, Zeny -1000;
close;

LNovice :

mes "[Father Meb]";
mes "Ah, Novice, will support you for free in 3 Hours";
mes "Good luck Leveling be be strong soon...";
next;
summon "Support Priest",2501,3000, strnpcinfo(0) +"::On"+ getcharid(0);
close;

fivemin:

if (Zeny < 5000) goto nocash;

summon "Support Priest",2501,500, strnpcinfo(0) +"::On"+ getcharid(0);
set Zeny, Zeny -5000;
close;


ninehours:

if (Zeny < 1000000) goto nocash;

summon "Support Priest",2501,9999, strnpcinfo(0) +"::On"+ getcharid(0);
set Zeny, Zeny -1000000;
close;


L_bye:

mes "[Father Meb]";
mes "ok see ya...";
close;

nocash:

mes "[Father Meb]";
mes "You dont have Point to hire my priest";
close;

}



thanks in advance :)

Edited by jigsgfx
Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

try this jigs

OnInit:
disablenpc "Support Priest";
end;

OnClock1400:
enablenpc "Support Priest";
end;
OnClock1600:
disablenpc "Support Priest";
}}

Off Topic :

Jigs remember me?, im with aloha in adik gaming network..

Edited by GM Takumirai
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   9
  • Joined:  09/22/12
  • Last Seen:  

If it hasnt changed since ive learned the athena script commands 3 years ago, a disabled npc wouldnt be able to reenable himself. So unles it has been changed, i guess he will have to control it with a seperate script.

Please correct me if im wrong about this.

- script Suppriest_Timer -1,{
end;
OnClock1400:
disablenpc "Support Priest";
end;
OnClock1600:
enablenpc "Support Priest";
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

try this jigs

OnInit:
disablenpc "Support Priest";
end;

OnClock1400:
enablenpc "Support Priest";
end;
OnClock1600:
disablenpc "Support Priest";
}}

Off Topic :

Jigs remember me?, im with aloha in adik gaming network..

thanks dude, yes & say hi to aloha for me :)

is this for your simplicity ro jigs?

yes correct :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

@Reynard - I'm thinking the same thing, but I can't recall for sure (too lazy to test), but in the instance it does require a 2nd NPC, you can just use hideonnpc an hideoffnpc

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

I just tested -- enablenpc works from a disabled npc!

poring_w01,100,105,0	script	test	910,{
OnInit:
debugmes "(1) I am enabled";
sleep 1000;

disablenpc strnpcinfo(3);
debugmes "(1) I am DISabled";
sleep 1000;

enablenpc strnpcinfo(3);
debugmes "(2) I am enabled again!";
end;
}

All 3 debmessages printed.

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   9
  • Joined:  09/22/12
  • Last Seen:  

Nice to know that changed =)

Thanks for testing it. +1r

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

prontera,156,184,5    script    djfksdhfsk    100,{
   if ( .start ) end;
   .start = 1;
   while (1) {
       disablenpc strnpcinfo(0);
       sleep 1000;
       enablenpc strnpcinfo(0);
       sleep 1000;
   }
}

lol it works

I think it was fixed in 2010 or something ... so yeah disablenpc doesn't work like this 3 years ago, but now can

EDIT: WTF I didn't refresh this page since yesterday x.x

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

hi, sorry for testing it late but it seems not working please correct if im wrong or i put it on the wrong part, i tried to put it above the mes "[Father Meb]"; also not working..

see script below thanks



//==================================
// Priest Support Outside izlude
//==================================

turbo_room,84,90,5 script Support Priest 60,{

mes "[Father Meb]";
mes "You want to hire Priest ? if you do it only Zeny 1,000 Point for 1 minute, 5,000 Zeny for 5 minute and 1,000,000 Zeny for 9 Hours";
mes "For Novice it will be free, for 3 Hours";
menu "Ok",-,"i think about it..",L_bye;

mes "[Father Meb]";
mes "Let see if you already Hire 1 of my priest...";
next;

if ( mobcount( strcharinfo(3), strnpcinfo(0) +"::On"+ getcharid(0) ) ) {
       mes "you cannot Hire another Support Priest";
       close;
    }

if (class == 0) goto LNovice;

mes "[Father Meb]";
mes "Ok there's are Time for My Priest to work... Choose which time you want?";
menu "1 minute",-,"5 minute",fivemin,"9 Hours",ninehours,"Change my mind...",L_bye;

if (Zeny < 1000) goto nocash;

summon "Support Priest",2501,100, strnpcinfo(0) +"::On"+ getcharid(0);
set Zeny, Zeny -1000; 
close;

LNovice :

mes "[Father Meb]";
mes "Ah, Novice, will support you for free in 3 Hours";
mes "Good luck Leveling be be strong soon...";
next;
summon "Support Priest",2501,3000, strnpcinfo(0) +"::On"+ getcharid(0);
close;

fivemin:

if (Zeny < 5000) goto nocash;

summon "Support Priest",2501,500, strnpcinfo(0) +"::On"+ getcharid(0);
set Zeny, Zeny -5000; 
close;


ninehours:

if (Zeny < 1000000) goto nocash;

summon "Support Priest",2501,9999, strnpcinfo(0) +"::On"+ getcharid(0);
set Zeny, Zeny -1000000; 
close;


L_bye:

mes "[Father Meb]";
mes "ok see ya...";
close;

nocash:

mes "[Father Meb]";
mes "You dont have Point to hire my priest";
close;

}


OnInit:
disablenpc "Support Priest";
end;

OnClock1400:
enablenpc "Support Priest";
end;
OnClock1600:
disablenpc "Support Priest";
}}

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:  

@jigsfx

you didnt put your curley bracket correctly..

http://pastebin.com/raw.php?i=8HCxNK9N

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

I just tested -- enablenpc works from a disabled npc!

lol it works

I think it was fixed in 2010 or something ... so yeah disablenpc doesn't work like this 3 years ago, but now can

Disablenpc just let users not to be able to run it, but you can still call his script with Event Labels or other NPC functions. So of course you can enable itself if he's disabled ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

@jigsfx

you didnt put your curley bracket correctly..

http://pastebin.com/raw.php?i=8HCxNK9N

thanks dude ill try this out.. /no1

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