Jump to content
  • 0

repairall


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

hi, i want to add a repairall weapon and equips when they respawn. what will i add?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Respawn from what? Some more information please o.o

Regards,

Chris

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:  

try add this in your NPC that will be trigger upon respwan

while( getbrokenid(1) != 0 )
repair getbrokenid(1);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

bat_b02,10,294,3 script Battle Therapist#b02_a 95,{

skilleffect 28,32000;

percentheal 100,100;

mes "[battle Therapist]";

mes "Just close your eyes,";

mes "and take a deep breath.";

mes "You can be free from pain.";

close;

here..

how will i put

while( getbrokenid(1) != 0 )
repair getbrokenid(1);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

After this I would say:

skilleffect 28,32000;

percentheal 100,100;

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:  

how will i put

just put before your script end ( close; end; close2; etc.. ) or wherever inside the body of the script...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

ok thank you for your help. :)!

can i add to the script like this?

atcommand "@repairall"; ??

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:  

yes...up to you ~

the different is just ...if you server have atcommand log..

then your server will surely flooded with @repairall command

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

ok thank you again sir!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

prontera,151,186,5 script Healer#h1-1::Healer 436,{

percentheal 100,100;

sc_start SC_BLESSING,.duration,10; // Blessing lvl 10

sc_start SC_INCREASEAGI,.duration,10; // Increase agi lvl 10

}

can i add atcommand "@repairall"; in this?

Link to comment
Share on other sites


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

sharing this

prontera,160,187,5 script Nurse Mechanic 469,{

if (countitem(7037) > 1) goto go1; //change the item you want

if (countitem(7037) < 1) goto go2; //change the item you want

go1:

while(getbrokenid(1))

repair(1);

percentheal 100,100;

sc_start SC_BLESSING,400000,10;

sc_start SC_INCREASEAGI,400000,10;

end;

go2:

while(getbrokenid(1))

repair(1);

sc_start SC_BLESSING,400000,10;

sc_start SC_INCREASEAGI,400000,10;

end;

}

- purpose is if you have this item you have the ability to heal your player

- if no items you just have buffs..

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