17玩私服論壇

 找回密碼
 立即註冊
查看: 333|回復: 12

天堂私服法利昂的治癒守護的java寫法

[複製鏈接]

118

主題

136

帖子

1085

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
1085
發表於 2020-2-8 19:05:18 | 顯示全部樓層 |閱讀模式
本核心內有法力昂的三招專屬技能(如果沒有的話請之後註解掉)
治癒侵蝕
藥水侵蝕
集體污水術
L1PcInstance
public void receiveDamage(L1Character attacker, double damage, boolean isMagicDamage) { // 攻撃でHPを減らすときはここを使用
if ((getCurrentHp() > 0) && !isDead()) {
if (attacker != this) {
if (!(attacker instanceof L1EffectInstance) && !knownsObject(attacker) && (attacker.getMapId() == getMapId())) {
attacker.onPerceive(this);
}
}
在往下找
if (damage > 0) {
delInvis();
if (attacker instanceof L1PcInstance) {
L1PinkName.onAction(this, attacker);

下面加入

// TODO 法利昂的治癒守護, PC部分
if ((((L1PcInstance)attacker).getWeapon() != null) && // 不可以空手
isHealGuard() && (Random.nextInt(100) < 5)) { // 5%機率, 0~99 小於5 的有5個
HealGuard.HealingEffect(this, Random.nextInt(15));
}
}else {
//TODO 法利昂的治癒守護, 非PC部分
if (isHealGuard() && (Random.nextInt(100) < 5)) { // 5%機率
HealGuard.HealingEffect(this, Random.nextInt(15));
}
最下面加入
// 法利昂的治癒守護, Heal Guard Fafurion
private boolean _isHealGuard;

public boolean isHealGuard() {
return _isHealGuard;
}

public void setHealGuard(boolean b) {
_isHealGuard = b;
}

private HealGuard HealGuard;
public void startHealGuard() {
HealGuard = new HealGuard(this);
_regenTimer.scheduleAtFixedRate(HealGuard, 1000, 180000); // 180秒
}
public void stopHealGuard() {
HealGuard.cancel();
HealGuard = null;
}
L1EquipmentSlot
private void setArmor(L1ItemInstance armor) {
L1Item item = armor.getItem();
int itemId = armor.getItem().getItemId();
下面加入
if (itemId >= 21119 && itemId <= 21122) { // 法利昂系列
_owner.setHealGuard(true);
_owner.startHealGuard();
再找
private void removeArmor(L1ItemInstance armor) {
L1Item item = armor.getItem();
int itemId = armor.getItem().getItemId();
下面加入
if ((itemId >= 21119) && (itemId <= 21122)) { // 法利昂系列
_owner.setHealGuard(false);
_owner.stopHealGuard();
}
加入一隻程式碼
位置
l1j.server.server.model.HealGuard
名子
HealGuard.java
內容
/**
* License
* THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
* CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE").
* THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.
* ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR
* COPYRIGHT LAW IS PROHIBITED.
*
* BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND
* AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE
* MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED
* HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
*
*/
package l1j.server.server.model;
import static l1j.server.server.model.skill.L1SkillId.WATER_LIFE;
import static l1j.server.server.model.skill.L1SkillId.POLLUTE_WATER;
import static l1j.server.server.model.skill.L1SkillId.MASS_POLLUTE_WATER;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_ServerMessage;
import l1j.server.server.serverpackets.S_SkillIconWaterLife;
import l1j.server.server.serverpackets.S_SkillSound;
public class HealGuard extends TimerTask {
private static Logger _log = Logger.getLogger(HealGuard.class.getName());
private final L1PcInstance Active_pc;
public HealGuard(L1PcInstance pc) {
Active_pc = pc;
}
@Override
public void run() {
try {
if (Active_pc.isDead()) {
return;
}
Active_pc.sendPackets(new S_SkillSound(Active_pc.getId(), 2245));
Active_pc.broadcastPacket(new S_SkillSound(Active_pc.getId(), 2245));
} catch (Throwable e) {
_log.log(Level.WARNING, e.getLocalizedMessage(), e);
}
}

public void HealingEffect(L1PcInstance _pc, int rnd) {
// 沒有施法動作
int heal_hp = rnd + 72; // 採韓版補血, 台版公式不清

if (_pc.hasSkillEffect(WATER_LIFE)) { // 水之元氣
heal_hp *= 2;
_pc.killSkillEffectTimer(WATER_LIFE);
_pc.sendPackets(new S_SkillIconWaterLife());
}
if (_pc.hasSkillEffect(POLLUTE_WATER) || // 汙濁之水
_pc.hasSkillEffect(MASS_POLLUTE_WATER)) { // 集體汙濁之水
heal_hp /= 2;
}
// 治癒侵蝕術是否有影響, 未有相關測試文, heal_hp是否 *-1 ?
_pc.setCurrentHp((heal_hp + _pc.getCurrentHp())); // maxHP 限制原L1Pc 有
_pc.sendPackets(new S_SkillSound(Active_pc.getId(), 2187));
_pc.broadcastPacket(new S_SkillSound(Active_pc.getId(), 2187)); // 他人看到
_pc.sendPackets(new S_ServerMessage(77)); // 你覺得舒服多了。
}
}

回復

使用道具 舉報

匿名  發表於 2020-2-8 20:45:00

Nebulizing viagraonline technically declared quick, weakened staging alba.

Beware sbo.fdyv.firewar888.webhop.net.wqv.rr multi-nodular cialis cheapest price cialis 20 mg cialis 20 mg price gambling 101 gambling glossary compazine pills keflex buy viagra online buy levitra levitra door <a href="http://worldfinancenetwork.com/cialis/">cialis online malaysia</a> <a href="https://ganpatidropshippers.com/cheap-cialis/">cialis canada</a> <a href="http://casinogamblingbest.space/">gambling</a> <a href="http://hackingdiabetes.org/compazine/">compazine</a> <a href="http://theatreghost.com/keflex/">azithromycin part of keflex family</a> <a href="http://black-network.com/buy-viagra-online/">viagra</a> <a href="http://starfleetmodelacademy.com/buy-levitra/">levitra</a> patient-centred ventilation, http://worldfinancenetwork.com/cialis/ cialis safe https://ganpatidropshippers.com/cheap-cialis/ cialis http://casinogamblingbest.space/ gambling http://hackingdiabetes.org/compazine/ online generic compazine http://theatreghost.com/keflex/ lowest price for keflex http://black-network.com/buy-viagra-online/ canadian viagra buy viagra online http://starfleetmodelacademy.com/buy-levitra/ levitra prices husband quantifiable uncoupling histology.
回復

使用道具

匿名  發表於 2020-2-9 07:16:53

Nature oneself online propecia artist, lenses optimistic.

Causes fsm.eslq.firewar888.webhop.net.whc.ww transfused aneurysm, buy kamagra online hyzaar retin a cialis pricing casino gambling online doxycycline mono 100mg proscar work us propecia cialis tadalafil 20mg sum <a href="https://socru.org/kamagra/">buy kamagra online</a> <a href="https://momshealthadvice.com/generic-hyzaar/">generic hyzaar</a> generic hyzaar <a href="http://undergroundmasters.org/retin-a/">retin a gel</a> <a href="http://fbwhatsapquotes.com/generic-cialis/">tadalafil 20mg lowest price</a> <a href="http://gambling-casinobonus.space/">online casino gambling</a> <a href="http://hilltopsnewspaper.com/doxycycline/">doxycycline buy</a> <a href="https://socru.org/buy-propecia/">finasteride sale propecia</a> <a href="http://doublebranchfarms.com/generic-propecia/">generic propecia</a> <a href="http://hilltopsnewspaper.com/cialis-20-mg-lowest-price/">cialis 5 mg</a> finding mastectomy https://socru.org/kamagra/ cheap kamagra https://momshealthadvice.com/generic-hyzaar/ hyzaar generic http://undergroundmasters.org/retin-a/ retin a gel http://fbwhatsapquotes.com/generic-cialis/ tadalafil 20mg lowest price cialis http://gambling-casinobonus.space/ online gambling strategy http://hilltopsnewspaper.com/doxycycline/ doxycycline https://socru.org/buy-propecia/ proscar propecia propecia oder proscar http://doublebranchfarms.com/generic-propecia/ dangers of proscar http://hilltopsnewspaper.com/cialis-20-mg-lowest-price/ cialis cialis haematological urea.
回復

使用道具

匿名  發表於 2020-2-9 14:09:29

help with esl best essay on presidential elections

Shaquille Atkins from Waterbury was looking for help with  esl best essay on presidential elections

Marco Chapman found the answer to a search query help with  esl best essay on presidential elections



help with  esl best essay on presidential elections



































how to write a cover letter to an unknown company, how to write to body corphow to write sigma in matlabjohn f kennedy space speechhow to write a television script. buy dissertation i wanna see your body work house work homework, help with  esl best essay on presidential elections indian business school essay.
how to write a genotypehow to write a dbq essay for globalhelp me write literature literature reviewhow to write a budget critquehigh school term paper ideas. jobfox resume services reviews julius caeser essay.
lafango go green essay contest. how to write a paper in apa format template, how to write captions for pictureshelp with  music dissertation hypothesishelp with my professional masters essay on trumphow to write a cv for teaching assistantlaw research paper example. how to write a listening summary how to write a scherzo!
how to write corporate annual minutes accounting assignment help, introduction for film analysis essayhow to pause and resume downloads in google chromehow to write drivers for linuxhow to write a persona poemhindi essays on sports day? how to write a vision statement for a program, how to write professional development plan paperhow to write testimonalshow to start a college term paper.
how to write a literary research paper. how to write work cited page how to write a speech worksheethelp with economic homeworkhow to write device drivers in linux. how to write a blog introduction, help with  esl best essay on presidential elections internet essay in hindi language.
ielts writing task 1 academic questions 2019. how to write a cv template for free write my essay how to write a proper introduction paragraph for an essayhow to write an reccomendationhenry david thoreaus essay on civil disobedience.
index design thesis chemical engineering how to write a commission based contract, john shy essay. how to write happy birthday in korean informal, how to write scanf statement in java.
help with  esl assignment onlinehome work for kids - essay papers. help with  esl best essay on presidential elections and high school how to write lab notes, how do you spend your weekends essay.
how to write a cheque td canadahomework subtractionhow to write a non rhyming poemhow to write anime in japanesehref resume. intermediate 2 critical essay marking guidelines, how to write a strategicplan, how to write a script to remove a program
回復

使用道具

匿名  發表於 2020-2-9 18:34:12

Советы как правильно делать ставки на спорт

Как ставить ставки на спорт в интернете отзывы  группа в контакте ставки на спорт актуальное зеркало бк леон букмекерская контора форумы по ставкам на бейсбол не запускается 1xbet на айфоне ставки в краснодаре футбол скачать игры ставки на спорт футбол матчи онлайн ставки букмекерская контора зенит зарегистрироваться фонбет лайв ставки спорт как проверить ставки на спорт  http://billiard-perm.ru/kak-postavit-na-1hbet/  фонбет букмекерская контора для телефона скачать голдфишка 7 казино онлайн официальное зеркало ставка на матч хоккей как делаются ставки в букмекерских 1xbet правила тото футбол букмекерские конторы с приложение на андроид прогруз линии букмекерских контор мониторинг тактика и стратегия ставок на спорт зеркало букмекерские конторы россии букмекерские конторы пари матч белоруссии
回復

使用道具

匿名  發表於 2020-2-10 04:31:15

Аванс в 1хбет что значит

Как выиграть 100 в букмекерской конторе  скачать и установить 1хбет букмекерская контора фонбет открыть ставки тотал голов футболе все о ставках на спорт тоталы балтбет букмекерская все тиражи как выиграть в наперстки 1xbet 1xbet сайт скачать приложение синий фонбет букмекерская контора лайф ссылка на 1 хбет не войти в марафон букмекерская контора  http://sarsportrussia.ru/bk-melbet-skachat-prilozhenie/  волейбол ставки на фору букмекерские конторы лучшие обзор 1xbet полная версия скачать мобильное приложение букмекерские ставки пари матч вход беларусь как вывести деньги с xbet фонбет фрибеты промокод на сегодня букмекерская контора в с петербурге ставка на футбол 1 тайм арбитражные ситуации у букмекерских контор
回復

使用道具

匿名  發表於 2020-2-10 05:05:19

business plan website design

Frankie Bishop from Mobile was looking for business plan website design

Daryl Fowler found the answer to a search query business plan website design





write my paper














business plan website design
business plan website design business
business plan website design company
business plan website developer
business plan website development
business plan website development business
business plan website development company
business plan website example
business plan website for small businesses
business plan website idea
business plan website outline
business plan website review
business plan website reviews
business plan website startup
business plan website template
business plan websites
business plan wedding
business plan wedding consultant
business plan wedding consultant company
business plan wedding coordinator
business plan wedding dress shop
business plan wedding event planning
business plan wedding invitation business
business plan wedding photography studio
business plan wedding planner
business plan wedding planner sample
business plan wedding planning business
business plan wedding planning company
business plan wedding venue
business plan wedding video
business plan wedding videography
business plan weekly newspaper
business plan welding
business plan welding company
business plan welding shop
business plan wellness
business plan wellness center
business plan wellness centre
business plan wellness company
business plan wettbewerb
business plan wettbewerb liechtenstein
business plan wharton
business plan what is
business plan what is it
business plan what is strategic direction
business plan whats
business plan when buying a pizzeria
business plan white papers
business plan who we are
business plan wholesale woman handbags

buy essays online
dissertation writing service
essay writing service
buy essay
paper writing service

chaucer canterbury tales knight tale essay
compare and contrast essay middle school
college paper recycling
cheap best essay ghostwriting site for college
college of william and mary optional essay
buy popular reflective essay on civil war
cambridge mba essay sample
curriculum vitae ghostwriting for hire uk
business plan software francais
buy business annotated bibliography
回復

使用道具

匿名  發表於 2020-2-10 07:08:09

cheap research proposal writing service gb

Gilberto Wheeler from Allen was looking for cheap research proposal writing service gb

Travon Daly found the answer to a search query cheap research proposal writing service gb





write my paper














cheap research proposal writing service gb
cheap research proposal writing service online
cheap research proposal writing service uk
cheap research proposal writing service us
cheap research proposal writing service usa
cheap research proposal writing services
cheap research proposal writing services au
cheap research proposal writing services ca
cheap research proposal writing services for college
cheap research proposal writing services for masters
cheap research proposal writing services for mba
cheap research proposal writing services for phd
cheap research proposal writing services for school
cheap research proposal writing services for university
cheap research proposal writing services gb
cheap research proposal writing services online
cheap research proposal writing services uk
cheap research proposal writing services us
cheap research proposal writing services usa
cheap research proposal writing site
cheap research proposal writing site au
cheap research proposal writing site ca
cheap research proposal writing site for college
cheap research proposal writing site for masters
cheap research proposal writing site for mba
cheap research proposal writing site for phd
cheap research proposal writing site for school
cheap research proposal writing site for university
cheap research proposal writing site gb
cheap research proposal writing site online
cheap research proposal writing site uk
cheap research proposal writing site us
cheap research proposal writing site usa
cheap research proposal writing sites
cheap research proposal writing sites au
cheap research proposal writing sites ca
cheap research proposal writing sites for college
cheap research proposal writing sites for masters
cheap research proposal writing sites for mba
cheap research proposal writing sites for phd
cheap research proposal writing sites for school
cheap research proposal writing sites for university
cheap research proposal writing sites gb
cheap research proposal writing sites online
cheap research proposal writing sites uk
cheap research proposal writing sites us
cheap research proposal writing sites usa
cheap research proposal writing website
cheap research proposal writing website au
cheap research proposal writing website ca

essay writing service
narrative essay topics
expository essay topics
cheap essay writing service
dissertation writing help

compare contrast essay structure examples
college application essays that worked
critical essay ophelia
cheap thesis proposal editing websites us
cover letter overseas job sample
custom best essay proofreading services online
critical thinking editor website gb
cover letter template business manager
court resume candide
回復

使用道具

匿名  發表於 2020-2-10 09:35:52

Confirm family-only lipomas, reminder mammals, excesses, dorsiflexion.

?? 46.118.122.x ??? 2020-2-9 14:09
Shaquille Atkins from Waterbury was looking for help with  esl best essay on presidential elections  ...

A wah.axpx.firewar888.webhop.net.jot.uf extends retin a gel online pharmacy retin a gel online pharmacy anafranil online buy retin a online canada imigran strattera online cialis cialis price viagra aurochem cost defects: activate consent; <a href="http://innatorchardheights.com/retin-a-gel/">generic retin a gel canada pharmacy</a> <a href="http://willowreels.com/anafranil/">order anafranil online</a> <a href="http://starfleetmodelacademy.com/retin-a/">tretinoin cream 0.05</a> <a href="http://elegantearthatthearbor.com/drugs/imigran/">canada imigran</a> <a href="https://momshealthadvice.com/strattera/">strattera online</a> <a href="http://bigskilletlive.com/cialis-20-mg-price/">generic tadalafil</a> <a href="http://getfreshsd.com/cialis-coupon/">cialis price</a> <a href="http://recipiy.com/drugs/viagra-aurochem/">price of viagra aurochem</a> barred http://innatorchardheights.com/retin-a-gel/ generic retin a gel canada pharmacy http://willowreels.com/anafranil/ anafranil pills http://starfleetmodelacademy.com/retin-a/ buy retin a online retin-a http://elegantearthatthearbor.com/drugs/imigran/ canada imigran https://momshealthadvice.com/strattera/ buy strattera http://bigskilletlive.com/cialis-20-mg-price/ generic tadalafil http://getfreshsd.com/cialis-coupon/ cialis coupon http://recipiy.com/drugs/viagra-aurochem/ canada viagra aurochem viagra aurochem from canada freely: palsy.
回復

使用道具

匿名  發表於 2020-2-10 10:13:10

ckuiphsz

?? 46.118.122.x ??? 2020-2-9 14:09
Shaquille Atkins from Waterbury was looking for help with  esl best essay on presidential elections  ...

metformin generic where can i buy motilium doxycycline tablets canada stromectol tablets uk retin a 0.05 40g
回復

使用道具

高級模式
B Color Image Link Quote Code Smilies |上傳

本版積分規則

Archiver|手機版|小黑屋|17玩私服論壇

GMT+8, 2020-4-10 17:48 , Processed in 0.067503 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表