Jump to content
  • 0

Put hidenpc on dupply


HelloKekette

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  09/09/13
  • Last Seen:  

Hello,
I would like to add a hidenpc but I do not know how. Because I'm the duplicate, I do not know if it will do all or just one that is ongoing.
 
If you could help me, the idea is to turn it off (just the one in which the player has spoken and not all dupply) after 3 attempts. I try a method, but it's not working :s
 
I use mining found on Rathena. Maybe someone can help me !!!

Edited by HelloKekette
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

prontera,157,180,5	script	test	100,{

progressbar "", rand(3,6);

if ( .used >= .used_limit ) end;

.used++;

.@rand = rand(.totalchance);

while ( ( .@rand -= .itemchance[.@i] ) >= 0 ) .@i++;

getitem .itemid[.@i], 1;

if ( .used < .used_limit ) end;

hideonnpc strnpcinfo(0);

sleep 10000; // 10 seconds to reappear

hideoffnpc strnpcinfo(0);

.used = 0;

end;

OnInit:

.used_limit = 3; // how many times used until npc is exhausted

setarray .itemid, 501,502,503,504,505,506,507,508,509;

setarray .itemchance, 10,10,10,10,3,10,10,10,10;

for ( .@i = 0; .itemid[.@i]; .@i++ )

.totalchance += .itemchance[.@i];

end;

}

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