Re paidia exw 1 aporia...as paroume 1 poli mikro kai eukolo paradigma ->
public void CustomHeroSystem()
{
L2PcInstance activeChar = L2PcInstance.getClient().getActiveChar();
if (activeChar.getPvpKills() >= 5000)
{
activeChar.sendMessage("You are now a server hero for beign so great fighter!");
Announcements.getInstance().announceToAll(activeChar.getName() + "Is now a server's hero!");
activeChar.setHero(true);
}
}
lipon...tora auto omos dimiourgoume tin method CustomHeroSystem. egw omos kserw pws oi methods den ektelounte an den tis energopoiisoume emeis grafontas stin periptosi mas:
CustomHeroSystem();
sti sira pou 8eloume...ala ti..? pos ginete na litourgei afou mono dilonoume tin methodo ala den tin ekteloume? :S kapios na eksigisei:
Gia na katalavete ti ennow:
public class Main
{
public static void sum()
{
int value1=20;
int value2=50;
int sum=value1+value2;
System.out.println("sum is" +sum);
}
public static void main(String args[]){
sum();
}
}
to public static void sum() den ekteleite mono tou an den grapsoume emeis sto telos sum();....
Hello.
This code works well. It removes buff with double click, but If you preffer remove buff with ALT + mouse click, place this code in AbnormalStatusWnd.uc
function OnLButtonDown(WindowHandle a_WindowHandle, int X, int Y)
{
local Rect windowBounds;
local int targetRow;
local int targetCol;
local StatusIconInfo info;
local SkillInfo skillInfo;
if (IsKeyDown(IK_alt) == false)
return;
// Find window position
windowBounds = Me.GetRect();
// Process clicks outside of window frame only
if (X > (windowBounds.nX + NSTATUSICON_FRAMESIZE))
{
// Calc row and col of targeted icon
targetRow = (Y - windowBounds.nY) / NSTATUSICON_SIZE;
targetCol = (X - windowBounds.nX - NSTATUSICON_FRAMESIZE) / NSTATUSICON_SIZE;
// Store status info of targeted icon
StatusIcon.GetItem(targetRow, targetCol, info);
// Store actual skill info and make sure it is exists
if (GetSkillInfo(info.ClassID, info.Level, skillInfo))
{
// Request server to stop skill effect
// Usage: _dispel:<int:skill_id>,<int :skill_level>
// Example: _dispel:313,8
RequestBypassToServer ( "_dispel:" $ string ( skillInfo. SkillID ) $ "," $ string ( skillInfo. SkillLevel ) ) ) ;
}
}
}
Question
Azumaril$
Re paidia exw 1 aporia...as paroume 1 poli mikro kai eukolo paradigma ->
lipon...tora auto omos dimiourgoume tin method CustomHeroSystem. egw omos kserw pws oi methods den ektelounte an den tis energopoiisoume emeis grafontas stin periptosi mas:
sti sira pou 8eloume...ala ti..? pos ginete na litourgei afou mono dilonoume tin methodo ala den tin ekteloume? :S kapios na eksigisei:
Gia na katalavete ti ennow:
to public static void sum() den ekteleite mono tou an den grapsoume emeis sto telos sum();....
HELP!
3 answers to this question
Recommended Posts