pws mporw na kanw na milaei o ka8enas sto npc kai na pernei to essence?Twra thelei 18ppl....opoios kserei ena pm!!
package quests;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.ArrayUtils;
import wp.commons.util.Rnd;
import wp.gameserver.model.Player;
import wp.gameserver.model.instances.NpcInstance;
import wp.gameserver.model.quest.Quest;
import wp.gameserver.model.quest.QuestState;
import wp.gameserver.scripts.ScriptFile;
/**
* @author pchayka Daily quest ВНИМАНИЕ! Данный квест можно выполнять не только группой, но и командным каналом, все персонажи в командном канале имеют шанс получить квестовые предметы. После убийства боссов будут появляться специальные НПЦ - мертвые тела боссов, для получения квестовых предметов
* необходимо будет "поговорить" с этим НПЦ.
*/
public class _456_DontKnowDontCare extends Quest implements ScriptFile
{
private static final int[] SeparatedSoul =
{
32864,
32865,
32866,
32867,
32868,
32869,
32870
};
private static final int DrakeLordsEssence = 17251;
private static final int BehemothLeadersEssence = 17252;
private static final int DragonBeastsEssence = 17253;
private static final int DrakeLord = 25725;
private static final int BehemothLeader = 25726;
private static final int DragonBeast = 25727;
private static final int DrakeLordCorpse = 32884;
private static final int BehemothLeaderCorpse = 32885;
private static final int DragonBeastCorpse = 32886;
// Reward set
private static final int[] weapons =
{
15558,
15559,
15560,
15561,
15562,
15563,
15564,
15565,
15566,
15567,
15568,
15569,
15570,
15571
};
private static final int[] armors =
{
15743,
15744,
15745,
15746,
15747,
15748,
15749,
15750,
15751,
15752,
15753,
15754,
15755,
15756,
15757,
15759,
15758
};
private static final int[] accessory =
{
15763,
15764,
15765
};
private static final int[] scrolls =
{
6577,
6578,
959
};
private static final int[] reward_attr_crystal =
{
4342,
4343,
4344,
4345,
4346,
4347
};
private static final int gemstone_s = 2134;
private static Map<String, Long> _hwidsCompleted = new HashMap<>();
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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
roukounas123
Edited by roukounas123
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.