Jump to content

How to make a custom Quest


Recommended Posts

Hello and greetings guys, i come from the scene of L2OFF 

 

so today i will share with you on how to make a custom quest in L2OFF 

Lets get started.

You will need the GMPanel for decompiling AIs can be downloaded here: https://filebin.net/650x1g0vvbzcon5o

 

so lets open The AI Editor.

To make the quest repeatable we need to base our quest in an already repeatable one, lets say the Ghost Explorer one (Relics of the Old Empire)

so the NPC that has the quest in AI is  explorer_ghost_a , find it and decompile it , you should have this code above

https://pastebin.com/WjvYxi6E 

so the quest is as this above. 

 

now we are gonna make our changes

 

first we need to copy the code and have it in a notepad close completely the AI editor or just recompile it , reopen the gmpanel / ai editor and the ai.obj itself

 

and press on the " New " or Ctrl + N 

class name = for example put "quest_daily_npc" and parent  "citizen" and press ok .. so your base is ready.

https://ibb.co/3MfPHfW <- example is here

Now i will explain you everything related on this in order to adjust it by yourself:

 

first of all :

 

you paste the code from the previous quest that we copied.
 

Now your quest must look like this:

 

https://pastebin.com/YY3uUXDS

 

so lets make the modifications 

 

 https://pastebin.com/c871yGdQ

 


 

 

619 is the quest id you can change it with your desired or you can delete the already existing and just modify this one

 

 

-------------------------------------------------------------------------
https://pastebin.com/9knBBGwG

 

on the case2: is the check for the reward.. practicly this quest is non stop , it checks if you have at least 1000 broken antiques and regarding the check it opens the html pages that correspond to the checks, if you want to replace the number with another amount and the quest item just do it by checking my comments on the pastebin link

 

 

 

now lets move to the :

 

 

 https://pastebin.com/qirhF0Fn

 

 

you can change again here the html with your desired

 

so  we are finally in the time of the reward

 

 the reward code is here:

https://pastebin.com/BRB4F19Y

you can add/ make less rewards  

If you want to make it like: 

You get rewarded then cooldown until next day you must edit

 

if( myself::GetCurrentTick() - talker.quest_last_reward_time > 1 ) { talker.quest_last_reward_time = myself::GetCurrentTick();

 

to

if( myself::GetCurrentTick() - talker.quest_last_reward_time > 12 * 60 * 60 ) { talker.quest_last_reward_time = myself::GetCurrentTick();



I hope i gave you a good base..

Sincerely thank you , if you find my guide bad, i can edit some parts of it to be more clear

 

Edited by Banshee Garnet
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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
Reply to this topic...

×   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

    • How do I make class buffs look like this and have the same dynamics as a skill toggle? Example in the Rage skill image, I would like to activate and deactivate it as a skill toggle and have the same appearance.
    • A message from Faytas, the player who got banned for revealing the "petition" screenshot:   So week ago i posted picture in discord of player Arab talking with Lithuanian admin Tony aka Mindaugas Cekavičius the main head of server l2Damage.com i saved picture it wasnt mine made so i posted it in discord just to let people realise that some players is under admins back i’ll post that picture and here it was an interesting picture player FatherOfDamage aka Arab was crying to admin to boost his classes in olympiad and admin was easily doing that and still doing till this day… after i posted that picture admin banned me in discord and two accounts ingame, dc-ingame nick was Faytas, then someone of my discord friends made more posts about corrupted admin Mindaugas Cekavičius at more forums/sites and guess what i instantly got ss in discord chat that player Arab saying that was me that posting more shit on other sites like maxcheaters,l2j i got also the screenshots of all that guy posts he did but i”ll not post his name couse he may get banned too couse he said truth as i did, then in about 2-3 days i took friends acc and named it iFaytas and clan member made a joke in hero voice “ban Faytas” so immidiatly i got banned again! ban says im banned couse i pretend as other player then he changed it that i used illigal software, after that i logged box to talk with him why i got banned he was standing in town so i asked him and he was ignoring me and all other people who asked why he banned me, and guess what? once again i got banned so in total i got banned 4 accounts for no reason just couse i posted picture of illigal things that admin doing and helping other players, by the way a month ago i was spamming that player arab like i always do just to make fun of him and that guy ciuldn’t handle the spam so he asked Tony to jail me and he jailed me for 120min being in jail i asked why and he unjailed me instantly xD i dont care anymore about this server and won’t play there couse he is helping other people/boosting theyr classes in olympiad lol im posting that special picture bellow… after 4 free bans i could’t do nothing just to post it everywhere couse that pissed me off that people getting bans for telling the truth!   https://ibb.co/GsMFfwx   https://ibb.co/nfsPwZP https://ibb.co/zRNH0yd
    • Looking for a developer to collaborate on a project with experience in server management, specifically downgrading from C6 to C4 configurations. Open to discussing pricing based on skill level.  PM
    • I am looking to buy an acp with registration and donations for L2OFF IL files. Whos still selling out there?
  • Topics

×
×
  • Create New...