Jump to content
  • 0

request auto repair item and magnifie item.


Cisqua

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

hello,

anyone can make me a script with..

if players click to npc all item has broken will be repair and all item not idintify will be idintify thanks

it is ok to use this in script?

and check if no item need to repair or identifie command will not trigger

atcommand "@repairall "+@player$;

atcommand "@identifyall "+@player$;

Edited by Cisqua
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

how to insert this code to this script?

rontera,151,193,4	script	Healer & Buffer#h1-1::Healer	935,{
set .@t, 2; // Delay Seconds.
if ( ! @h ) {
	set @h, 1;
	set .@hp, MaxHP - HP;
	while ( .@t ) {
	dispbottom "Wait for "+ .@t +" second"+ ( ( .@t > 1 ) ? "s" : "" ) +".";
	sleep2 1000 ;
	set .@t, .@t - 1;
}
skilleffect 28, .@hp ;
specialeffect2 417;
percentheal 100,100;
skilleffect 34,0;
sc_start SC_BLESSING,360000,10;
sc_start SC_INCREASEAGI,360000,10;
dispbottom "You're now fully healed "+ strcharinfo ( 0 ) +".";
set @h, 0;
}
end ;
}

figure it out hehehe i dont know if this is right but script is working.. but if their is clean way of adding this script share please ^^ thanks

rontera,151,193,4	script	Healer & Buffer#h1-1::Healer	935,{
if( getbrokenid(1) ) repairall;
getinventorylist;
while( .@i < @inventorylist_count ){
if ( !@inventorylist_identify[.@i] ){
	delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
	getitem @inventorylist_id[.@i],1;
}
.@i++;
}

set .@t, 2; // Delay Seconds.
if ( ! @h ) {
	set @h, 1;
	set .@hp, MaxHP - HP;
	while ( .@t ) {
	dispbottom "Wait for "+ .@t +" second"+ ( ( .@t > 1 ) ? "s" : "" ) +".";
	sleep2 1000 ;
	set .@t, .@t - 1;
}
skilleffect 28, .@hp ;
specialeffect2 417;
percentheal 100,100;
skilleffect 34,0;
sc_start SC_BLESSING,360000,10;
sc_start SC_INCREASEAGI,360000,10;
dispbottom "You're now fully healed "+ strcharinfo ( 0 ) +".";
set @h, 0;
}
end ;
}

Edited by Cisqua
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  126
  • Reputation:   4
  • Joined:  10/31/12
  • Last Seen:  


prontera,151,193,4 script Healer & Buffer#h1-1::Healer 935,{

set .@t, 2; // Delay Seconds.

if ( ! @h ) {

set @h, 1;

set .@hp, MaxHP - HP;

while ( .@t ) {

dispbottom "Wait for "+ .@t +" second"+ ( ( .@t > 1 ) ? "s" : "" ) +".";

sleep2 1000 ;

set .@t, .@t - 1;

}

skilleffect 28, .@hp ;

specialeffect2 417;

percentheal 100,100;

skilleffect 34,0;

sc_start SC_BLESSING,360000,10;

sc_start SC_INCREASEAGI,360000,10;

atcommand "@identifyall "+@player$;

dispbottom "You're now fully healed "+ strcharinfo ( 0 ) +".";

set @h, 0;

while (getbrokenid(1)) {

repair(1);

set .@i, .@i +1;

}

if (.@i) dispbottom .@i + " items repaired.";

end;

}

}

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