Jump to content
  • 0

HyperBuffer Require Item to Buff


JoshXp

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  124
  • Reputation:   0
  • Joined:  01/21/13
  • Last Seen:  

Hello Guys,

I Want to ask,

i have script like this :
 

prontera,151,185,5	script	Healer	909,{
percentheal 100,100;

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++;
}

skilleffect 384,0; sc_start SC_MELTDOWN,360000,5;
skilleffect 383,0; sc_start SC_WINDWALK,360000,5;
skilleffect 465,0; sc_start SC_KAITE,360000,7;
skilleffect 464,0; sc_start SC_KAUPE,360000,3;
skilleffect 463,0; sc_start SC_KAAHI,360000,7;
skilleffect 462,0; sc_start SC_KAIZEL,360000,7;
skilleffect 8,0; sc_start SC_ENDURE,360000,10;
skilleffect 33,0; sc_start SC_ANGELUS,360000,10;
skilleffect 45,0; sc_start SC_CONCENTRATE,360000,10;
skilleffect 74,0; sc_start SC_MAGNIFICAT,360000,5;
skilleffect 75,0; sc_start SC_GLORIA,360000,5;
skilleffect 459,0; sc_start SC_ADRENALINE2,360000,1;
skilleffect 66,0; sc_start SC_IMPOSITIO,360000,5;
skilleffect 67,0; sc_start SC_SUFFRAGIUM,360000,3;
skilleffect 34,0; sc_start SC_BLESSING,360000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
skilleffect 112,0; sc_start SC_WEAPONPERFECTION,360000,10;
skilleffect 113,0; sc_start SC_OVERTHRUST,360000,5;
skilleffect 114,0; sc_start SC_MAXIMIZEPOWER,360000,5;
skilleffect 357,0; sc_start SC_CONCENTRATION,360000,5;
skilleffect 355,0; sc_start SC_AURABLADE,360000,5;
skilleffect 155,0; sc_start SC_LOUD,360000,1;

sc_start SC_ASPDPOTION2,360000,0;
sc_start SC_STRFood,360000,10;
sc_start SC_AGIFood,360000,10;
sc_start SC_VITFood,360000,10;
sc_start SC_INTFood,360000,10;
sc_start SC_DEXFood,360000,10;
sc_start SC_LUKFood,360000,10;
sc_start SC_HitFood,1200000,30;
sc_start SC_FleeFood,1200000,30;
sc_start SC_BATKFood,1200000,10;
sc_start SC_MATKFood,120000,10;
skilleffect 380,0; sc_start SC_TRUESIGHT,360000,5;
skilleffect 234,0; sc_start SC_CP_WEAPON,360000,5;
skilleffect 235,0; sc_start SC_CP_SHIELD,360000,5;
skilleffect 236,0; sc_start SC_CP_ARMOR,360000,5;
skilleffect 237,0; sc_start SC_CP_HELM,360000,5;
skilleffect 361,0; sc_start SC_ASSUMPTIO,360000,5;

		switch ( basejob ) {
			case Job_Alchemist:	set .@spirit, 445; break;
			case Job_Monk:	 set .@spirit, 447; break;
			case Job_Star_Gladiator:  set .@spirit, 448; break;
			case Job_Sage:	 set .@spirit, 449; break;
			case Job_Crusader:	set .@spirit, 450; break;
			case Job_SuperNovice:   set .@spirit, 451; break;
			case Job_Knight:	set .@spirit, 452; break;
			case Job_Wizard:	set .@spirit, 453; break;
			case Job_Priest:	set .@spirit, 454; break;
			case Job_Bard: case Job_Dancer: set .@spirit, 455; break;
			case Job_Rogue:	 set .@spirit, 456; break;
			case Job_Assassin:	set .@spirit, 457; break;
			case Job_Blacksmith:   set .@spirit, 458; break;
			case Job_Hunter:	set .@spirit, 460; break;
			case Job_Soul_Linker:   set .@spirit, 461; break;
			default:
				if ( upper == 1 && baselevel < 70 )
					set .@spirit, 494;
		}
		if ( .@spirit ) {
			sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;
			skilleffect .@spirit, 5;
		}

end;
}

but, i want to if Player A Have Require Item The Buff out is like that,

but if Player A didnt require item for The Buff, The buff only Bless, Agi, and something like that.

 

and how to repair and identify all item on Inventory without

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++;
}

it is possibly ? :D

 

and once again is

while champion on the town duel into other player, the SP won't heal after clicking the Healer.

why ?

how ? please help me...

Thank's :D

Edited by JoshXp
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

if(countitem(501) > 0) { // Apple 1 ea
    delitem 501,1;
    //dosomething
} else {
    //if player doesn't have required item do this instead.
}

For SP issue, if your server has renewal enabled. The Champion/Sura won't be able to gain any SP for like 5 seconds after using Asura. Please check if that's the case.

However, atcommand @heal bypasses that restriction. So, you can use this code below instead of percentheal.

atcommand "@heal";
Edited by secretdataz
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  124
  • Reputation:   0
  • Joined:  01/21/13
  • Last Seen:  

anyone ???

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  124
  • Reputation:   0
  • Joined:  01/21/13
  • Last Seen:  

if(countitem(501) < 1) { // Apple 1 ea
    delitem 501,1;
    //dosomething
} else {
    //if player doesn't have required item do this instead.
}

For SP issue, if your server has renewal enabled. The Champion/Sura won't be able to gain any SP for like 5 seconds after using Asura. Please check if that's the case.

However, atcommand @heal bypasses that restriction. So, you can use this code below instead of percentheal.

atcommand "@heal";

 

ah yes, thank's you its working lol

 

and yeah i already try it on pre-re server and woow its work LOL

thank's solved

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

 

if(countitem(501) < 1) { // Apple 1 ea
    delitem 501,1;
    //dosomething
} else {
    //if player doesn't have required item do this instead.
}

For SP issue, if your server has renewal enabled. The Champion/Sura won't be able to gain any SP for like 5 seconds after using Asura. Please check if that's the case.

However, atcommand @heal bypasses that restriction. So, you can use this code below instead of percentheal.

atcommand "@heal";

 

ah yes, thank's you its working lol

 

and yeah i already try it on pre-re server and woow its work LOL

thank's solved

 

Actually I just noticed I made a typo in the first line.

It must be like below instead.

if(countitem(501) >= 1) { // Apple 1 ea

or

if(countitem(501) > 0) { // Apple 1 ea
Link to comment
Share on other sites

  • 0

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

about the Asura's SP recovery blocking issue, you can try use the sc_end to end the status and then heal the SP. :D

if ( getstatus(SC_EXTREMITYFIST) ) {
    sc_end SC_EXTREMITYFIST;
}

usage of @command in script, should be avoid if possible.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  124
  • Reputation:   0
  • Joined:  01/21/13
  • Last Seen:  

about the Asura's SP recovery blocking issue, you can try use the sc_end to end the status and then heal the SP. :D

if ( getstatus(SC_EXTREMITYFIST) ) {
    sc_end SC_EXTREMITYFIST;
}

usage of @command in script, should be avoid if possible.

 

ah yes, i'm already fix it, because on renewal mode sp recovery is disabled. lol

now i'm playing on pre and no problem :D

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