L2-scripts Форум

L2-scripts Форум (http://l2-scripts.ru/forum/index.php)
-   Archive Lindvior, Ertheia, Odyssey, Undergeround, Helios, Grand Crusade (http://l2-scripts.ru/forum/forumdisplay.php?f=103)
-   -   Еще квесты с завышенным SP (FIXED) (http://l2-scripts.ru/forum/showthread.php?t=5960)

Scorpius 12.09.2015 17:12

Еще квесты с завышенным SP (FIXED)
 
=================================================
[19:45:06] INFO Project Revision: ........ L2s [18003]
[19:45:06] INFO Build Revision: .......... 5602
[19:45:06] INFO Update: .................. Epic Tale of Aden: Infinite of Odyssey
[19:45:06] INFO Build date: .............. 2015.09.10 00:54
[19:45:06] INFO Compiler version: ........ 1.8.0_60-b27 (Oracle Corporation)
=================================================

Просто пачкой тут вывалю исправления ибо много веток будет:

_10371_GraspThyPower

Код:

else if(event.equalsIgnoreCase("quest_rev"))
                {
                        htmltext = "0-8.htm";
                        st.getPlayer().addExpAndSp(22641900, 5434);
                        st.giveItems(57, 484990);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                return htmltext;

_10370_MenacingTimes

Код:

else if(npcId == gerkenshtein)
                {
                        if(st.isCompleted())
                                htmltext = "2-c.htm";
                        else if(cond == 0)
                                return htmltext;
                        else if(cond == 2)
                                htmltext = "2-1.htm";
                        else if(cond == 3)
                                htmltext = "2-4.htm";
                        else if(cond == 4)
                        {
                                htmltext = "2-3.htm";
                                st.getPlayer().addExpAndSp(22451400, 5388);
                                st.giveItems(57, 479620);
                                st.takeAllItems(Ashes);
                                st.exitCurrentQuest(false);
                                st.playSound(SOUND_FINISH);
                        }
                }
                return htmltext;
        }

_10372_PurgatoryVolvere

Код:

public String onEvent(String event, QuestState st, NpcInstance npc)
        {
                String htmltext = event;
                if(event.equalsIgnoreCase("quest_ac"))
                {
                        st.setState(STARTED);
                        st.setCond(1);
                        st.playSound(SOUND_ACCEPT);
                        htmltext = "0-4.htm";
                }
                else if(event.equalsIgnoreCase("firec"))
                {
                        htmltext = "1-4.htm";
                        st.getPlayer().addExpAndSp(23009000, 5522);
                        st.giveItems(9552, 1);
                        st.takeAllItems(Essence);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                else if(event.equalsIgnoreCase("waterc"))
                {
                        htmltext = "1-4.htm";
                        st.getPlayer().addExpAndSp(23009000, 5522);
                        st.giveItems(9553, 1);
                        st.takeAllItems(Essence);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                else if(event.equalsIgnoreCase("windc"))
                {
                        htmltext = "1-4.htm";
                        st.getPlayer().addExpAndSp(23009000, 5522);
                        st.giveItems(9555, 1);
                        st.takeAllItems(Essence);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                else if(event.equalsIgnoreCase("earth"))
                {
                        htmltext = "1-4.htm";
                        st.getPlayer().addExpAndSp(23009000, 5522);
                        st.giveItems(9554, 1);
                        st.takeAllItems(Essence);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                else if(event.equalsIgnoreCase("darkc"))
                {
                        htmltext = "1-4.htm";
                        st.getPlayer().addExpAndSp(23009000, 5522);
                        st.giveItems(9556, 1);
                        st.takeAllItems(Essence);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                } else if(event.equalsIgnoreCase("holyc"))
                {
                        htmltext = "1-4.htm";
                        st.getPlayer().addExpAndSp(23009000, 5522);
                        st.giveItems(9557, 1);
                        st.takeAllItems(Essence);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }

                return htmltext;
        }

_10375_SuccubusDisciples

Код:

if(npcId == ZANIJA)
                {
                        if(cond == 0)
                                return "32140.htm";
                        else if(cond == 1)
                                return "32140-6.htm";       
                        else if(cond == 2)               
                                return "32140-7.htm";
                        else if(cond == 3)               
                                return "32140-9.htm";
                        else if(cond == 4)       
                        {       
                                st.addExpAndSp(24782300, 5947);
                                st.giveItems(57, 498700);
                                st.playSound(SOUND_FINISH);
                                st.exitCurrentQuest(false);                                       
                                return "32140-10.htm";               
                        }               
                }
                return "noquest";
        }

_10376_BloodyGoodTime

Код:

if(event.equalsIgnoreCase("31292-03.htm"))
                {
                        st.addExpAndSp(121297500, 29111);
                        st.giveItems(REWARD_MAGIC_RUNE_CLIP,1);
                        st.playSound(SOUND_FINISH);
                        st.exitCurrentQuest(false);
                }
                return event;

_10377_TheInvadedExecutionGrounds

Код:

else if(event.equalsIgnoreCase("warden_endrigo_q10377_02.htm"))
                {
                        st.addExpAndSp(756106110, 181465);
                        st.giveItems(ADENA_ID, 2970560, true);
                        st.giveItems(SOE_GUILLOTINE_FORTRESS, 2);
                        st.playSound(SOUND_FINISH);
                        st.exitCurrentQuest(false);
                }
                return htmltext;

_10378_WeedingWork

Код:

if(event.equalsIgnoreCase("endquest.htm"))
                {
                        st.takeAllItems(STEBEL);
                        st.takeAllItems(KOREN);
                        st.getPlayer().addExpAndSp(845059770, 202814);
                        st.giveItems(SCROLL, 2);
                        st.giveItems(57, 3000000);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                return htmltext;

_10379_AnUninvitedGuest

Код:

else if(event.equalsIgnoreCase("warden_endrigo_q10379_09.htm"))
                {
                        st.addExpAndSp(934013430, 224163);
                        st.giveItems(ADENA_ID, 3441680, true);
                        st.giveItems(SOE_GUILLOTINE_FORTRESS, 2);
                        st.playSound(SOUND_FINISH);
                        st.exitCurrentQuest(false);
                }
                return htmltext;

_10389_TheVoiceOfAuthority

Код:

if(event.equalsIgnoreCase("endquest.htm"))
                {
                        st.getPlayer().addExpAndSp(592767000, 142264);
                        st.giveItems(SIGN, 1);
                        st.giveItems(57, 1302720);
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                }
                return htmltext;

_10380_TheExecutionersExecution

Код:

else if(event.equalsIgnoreCase("warden_endrigo_q10380_10.htm"))
                {
                        st.addExpAndSp(1022967090, 245512);
                        st.giveItems(GLORIOUS_T_SHIRT, 1);
                        st.playSound(SOUND_FINISH);
                        st.exitCurrentQuest(false);
                }
                return htmltext;

_10381_TotheSeedofHellfire

Код:

else if(event.equalsIgnoreCase("sofa_sizraku_q10381_03.htm"))
                {
                        st.addExpAndSp(951127800, 228270);
                        st.giveItems(ADENA_ID, 3256740, true);
                        st.playSound(SOUND_FINISH);
                        st.exitCurrentQuest(false);
                }
                return htmltext;


_10386_PathOfMystery

Не нашел данные по квесту, но уверен SP там тоже не верное.


_10387_Soulless

Код:

if(event.startsWith("getRev"))
                {
                        st.getPlayer().addExpAndSp(817330500, 196159);
                        if(event.equalsIgnoreCase("getRev1"))
                        {
                                st.giveItems(ANVIL, 1);
                                st.giveItems(WARSMITH, 1);
                                st.giveItems(HOLDER, 1);
                                st.giveItems(MOLD, 1);
                                st.giveItems(ANVIL2, 1);
                                st.giveItems(WARSMITH2, 1);
                        }

_10388_ConspiracyBehindDoor

Код:

else if(event.equals("final.htm"))
                {
                        st.exitCurrentQuest(false);
                        st.playSound(SOUND_FINISH);
                        st.giveItems(ADENA_ID, 65136);
                        st.addExpAndSp(29638350, 7113);
                }               
                return htmltext;

Пока все. Уверен есть еще множество квестов с этим серьезным багом.

Core 14.09.2015 20:53

Исправлено. Закрыто.


Часовой пояс GMT +4, время: 10:22.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. Перевод: zCarot