this is the script i found i just added the enablenpc command
no errors all is fine
but everytime i reload the serve NPC stays
its not being hidden
i tried putting On Init:
still same
- script SupplyTrigger-1,{OnSat1930:OnSun1930:
enablenpc "Guild Supply#1";
enablenpc "Guild Supply#2";
enablenpc "Guild Supply#3";// enablenpc "Guild Supply#4";
end;OnAgitEnd:OnAgitEnd2:
disablenpc "Guild Supply#1";
disablenpc "Guild Supply#2";
disablenpc "Guild Supply#3";
end;}
louyang,226,106,4 script GuildSupply#1998,{
setarray .@item_id,12529,20,14003,20;// <Item_ID>,<Item_Amount>,{...};.@n$="["+strnpcinfo(0)+"]";.@GID= getcharid(2);.@GM=(getguildmaster(.@GID)== strcharinfo(0))?1:0;
mes .@n$;
mes "Welcome!";
mes (.@GM)?"Have you claimed your supplies today?":"You have no business with me.";
next;if(select(((.@GM)?"Claim Supplies":"")+":Leave")==2) close;
query_sql("SELECT COUNT(*) FROM `guild_member` WHERE `guild_id`="+.@GID,.@count);if(.@count<10){
mes .@n$;
mes "You have not enough guild members to claim the supplies.";
close;}.@d$= gettimestr("%Y%m%d",9);.@p=.@GID/128;.@g=.@GID%128;if(getd("$GS_"+.@p+"$["+.@g+"]")!=.@d$){
mes .@n$;
mes "Here you go!";
close2;
setd "$GS_"+.@p+"$["+.@g+"]",.@d$;for(.@i=0;.@i< getarraysize(.@item_id);.@i+=2)
getitem .@item_id[.@i],.@item_id[.@i+1];
end;}
mes .@n$;
mes "You have taken your supplies today.";
close;//OnInit://waitingroom "[Guild Supply]",0;//end;}
alberta,31,229,0 duplicate(GuildSupply#1)GuildSupply#2653
prontera,165,318,1 duplicate(GuildSupply#1)GuildSupply#3653//louyang,207,97,0 duplicate(Guild Supply#1) Guild Supply#4 653
i also tried it will appear on a certain time of the day
this is the script i found i just added the enablenpc command
no errors all is fine
but everytime i reload the serve NPC stays
its not being hidden
i tried putting On Init:
still same
i also tried it will appear on a certain time of the day
and disappear certain time of the same day
like 1930 will show the NPC and by 2000 NPC hides
thnx in advance
Link to comment
Share on other sites