Jump to content
  • 0

L2Off Editing Quest Sub !


Question

Posted
hi I wonder how do I change the sub quest! Ex.
 
 
I do like the l2alucard ... get the items from the box without need the quest!
 
need edited in the ai.obj of the box or the quests?

 

 

under this the ai.obj if anyone can help I will be grateful!

 

chest_of_golkonda.txt

chest_of_hallate.txt

chest_of_kernon.txt

coffer_of_the_dead.txt

6 answers to this question

Recommended Posts

  • 0
Posted

You could learn AI and do it yourself.

 

It's stupidly simple to mod this stuff.

 

 

You could write your own menu_selected handler to give crown, if user does not have crown ID in inventory.

 

that way your not touching anything retail, just adding new menu_selected bypasses to the htmls.

  • 0
Posted

 

I did some modifications but when I use nasc give error!

I don't have a lot of experience!

 

 

 

so why are you not posting the errors to help solve the problem?

  • 0
Posted (edited)

@ref :)

 

how to properly edit the code?

class 1 chest_of_golkonda : citizen
{
handler:
  EventHandler TALK_SELECTED( fhtml0, talker )
  {
    if( _from_choice == 0 )
    {
      if( myself::HaveMemo( talker, @whispers_of_destiny ) == 1 &&
          myself::GetMemoState( talker, @whispers_of_destiny ) == 2 &&
          myself::OwnItemCount( talker, @q_infernium_scepter_2 ) == 0 )
      {
        _choiceN = _choiceN + 1;
        _code = 0;
        myself::AddChoice( 0, "Fate's Whisper (Continue)" );
      }
      if( myself::HaveMemo( talker, @whispers_of_destiny ) == 1 &&
          ( myself::GetMemoState( talker, @whispers_of_destiny ) != 2 ||
            myself::OwnItemCount( talker, @q_infernium_scepter_2 ) == 1 ) )
      {
        _choiceN = _choiceN + 1;
        _code = 1;
        myself::AddChoice( 1, "Fate's Whisper (Continue)" );
      }
      if( _choiceN > 1 )
      {
        myself::ShowChoicePage( talker, 1 );
        return;
      }
    }
    if( _from_choice || _choiceN == 1 )
    {
      switch( _code )
      {
        case 0:
        {
          if( _from_choice == 0 ||
              ( myself::HaveMemo( talker, @whispers_of_destiny ) == 1 &&
                myself::GetMemoState( talker, @whispers_of_destiny ) == 2 &&
                myself::OwnItemCount( talker, @q_infernium_scepter_2 ) == 0 ) )
          {
            myself::SetCurrentQuestID( @whispers_of_destiny );
            if( myself::GetInventoryInfo( talker, 0 ) >= myself::GetInventoryInfo( talker, 1 ) * 0.800000 ||
                myself::GetInventoryInfo( talker, 2 ) >= myself::GetInventoryInfo( talker, 3 ) * 0.800000 )
            {
              myself::ShowSystemMessage( talker, 1118 );
              return;
            }
            if( myself::GetCurrentTick() - talker.quest_last_reward_time > 1 )
            {
              talker.quest_last_reward_time = myself::GetCurrentTick();
              myself::GiveItem1( talker, @q_infernium_scepter_2, 1 );
              myself::ShowPage( talker, "chest_of_golkonda_q0234_01.htm" );
            }
          }
          break;
        }
        case 1:
        {
          if( _from_choice == 0 ||
              ( myself::HaveMemo( talker, @whispers_of_destiny ) == 1 &&
                ( myself::GetMemoState( talker, @whispers_of_destiny ) != 2 ||
                  myself::OwnItemCount( talker, @q_infernium_scepter_2 ) == 1 ) ) )
          {
            myself::SetCurrentQuestID( @whispers_of_destiny );
            if( myself::GetInventoryInfo( talker, 0 ) >= myself::GetInventoryInfo( talker, 1 ) * 0.800000 ||
                myself::GetInventoryInfo( talker, 2 ) >= myself::GetInventoryInfo( talker, 3 ) * 0.800000 )
            {
              myself::ShowSystemMessage( talker, 1118 );
              return;
            }
            myself::ShowPage( talker, "chest_of_golkonda_q0234_02.htm" );
          }
          break;
        }
      }
      return;
    }
    super;
  }

  EventHandler TIMER_FIRED_EX( timer_id )
  {
    myself::SetCurrentQuestID( @whispers_of_destiny );
    if( timer_id == 23403 )
    {
      myself::Despawn();
    }
    super;
  }

  EventHandler CREATED( i0 )
  {
    myself::SetCurrentQuestID( @whispers_of_destiny );
    myself::AddTimerEx( 23403, 1000 * 120 );
    super;
  }
}
Edited by marek2904

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.

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.



  • Posts

    • someone ban again this piece of shit this guy is a virus we should make an antikara or karabytes
    • 🍂 The cost on Vibe-sms is dropping, like autumn leaves falling from the trees.     It’s a little sad to watch the last days of summer fade away with its warmth, but that’s how the world works  every season has its own rules. The same goes for our prices: they are gradually but steadily going down, opening up new opportunities and great deals. 💸   🌍 USA is already at the minimum, and Europe, Asia, and dozens of other countries will follow soon. Don’t miss out  fresh rates are waiting for you!   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
    • You didn't tell me anywhere that you wanted core.jar as proof, I have everything ready for an independent developer to review. All the conversations, all your edits. I won't settle anything with you, so you can threaten me again and damage my name.
    • So what? Did i say anything wrong? You have no idea what source/compile is. I still wait for your .jar or source to be posted since you say i destroyed the compiled version of yours. Why you don't post it? Are you afraid that people will just see few addon lines and you did not even know that your source and compiled had different things? I should not even waste 2 minute to fix your raidboss_spawnlist thing.    Your mentally ill. What you posted is our primary deal nothing against me.  Because all he does is post whatever i write as if i hide and i did not say any mod to join and check my discord. i want him actual post something against me or any offenses i did. I also requested him several hours ago to post his .jar where my code "HACKED" his server but he wont post.    Nobody should allow open a random topic and cause issues to other's life without proofs. I demand punishment and soon unless he post evidence that i hurt his server or left him or did not make what he asked. 
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock