Jump to content
  • 0

Custom Subclass Quest


Question

Posted

Hello peeps. So, I need to make a mob, after you kill it, to "unlock" the subclass for you. Imagine something like, when you kill Barakiel that you can get Nobless Status, without any quests (I've already did that.) So, for example, when a player or a party kills Cabrio I want it to enable the subclass change for you, without you having any quests on. I know that for Noblesse is something like (player.setNoble == true) or if the player is in a party it's (member.setNoble == true). So I was wondering, is there anything similar for Subclass? Like, (player.setSubclass) or something like that to enable the option to make a subclass after you kill the mob?

Thanks in advance. :)

11 answers to this question

Recommended Posts

  • 0
Posted

You just create a new boolean (which must be stored in db probably) and when you kill the specific mob the boolean is true (default is false). The subclass npc checks if the boolean is true to allow him add subclass. And when the subclass is over, the boolean changes to false.

  • 0
Posted

u can also add drop to that mob / raid an item that give u the options about sub class?

Yeah, a quest item which cannot be removed. So, you go to NPC if you have the specific item you do subclass and item gets removed (better option, to avoid hardcoding).

  • 0
Posted (edited)

So, for example, when a player or a party kills Cabrio I want it to enable the subclass change for you, without you having any quests

Thanks in advance. :)

Read correctly guys.

 

 

You just create a new boolean (which must be stored in db probably) and when you kill the specific mob the boolean is true (default is false). The subclass npc checks if the boolean is true to allow him add subclass. And when the subclass is over, the boolean changes to false.

wuut?

 

---

 

You must have completed 2 quests to be able to use the subclass option, by default. So, you must set "complete" those quests. You can easily change the core to check only for one quest, not two. But obviously, you have to code a custom script to complete the subclass quest.

...
newQuestState.setState(STATE_COMPLETED);
...
Edited by SweeTs
  • 0
Posted

 

Read correctly guys.

 

 

wuut?

 

--

 

You must have completed 2 quests to be able to use the subclass option. So, you must set "complete" those quests. You can easily change the core to check only for one quest, not two. But obviously, you have to code a custom script to complete the subclass.

...
newQuestState.setState(STATE_COMPLETED);
...

You must read better our replies (except Rootware's). Me and pamela gave the best answers about his request. Just a boolean store, or an item check. Both simple.

  • 0
Posted (edited)

You must read better our replies (except Rootware's). Me and pamela gave the best answers about his request. Just a boolean store, or an item check. Both simple.

Still my answer is valid. To use the 'retail' subclass option, you must have completed 2 quests, by default. Otherwise you will get a msg about Mimix Elixir quest.

Edited by SweeTs
  • 0
Posted

Still my answer is valid. To use the 'retail' subclass option, you must have completed 2 quests, by default. Otherwise you will get a msg about Mimix Elixir quest.

You just disable subclass with quest and adding 1 line check, way more simple. WITHOUT ANY QUESTS.

  • 0
Posted

Crap, I totally forgot that there is such an option. But from the other hand, he would not ask for this, if he would like to leave it enabled. Don't ya think? :)

 

Since who would kill this rb/npc to take the sub when he can simply go and talk to the npc? So yea, I believe that my answer is still valid :D

  • 0
Posted

So, in the end I had to make a custom quest to make it work as I wanted it to. Thanks for any of your ideas though. :)

Please lock this topic.

Guest
This topic is now closed to further replies.


  • Posts

    • A huge amount of goods at free prices, for some reason, is idle in the warehouse. What, have you all gone to the factory or something?) CAN'T GO TO THE ONLINE STORE? OPEN THE SITE VIA VPN OR TOR BROWSER. Payments-system / Crypto-Exchange ☑ Account Airbnb 🗂 1 in stock ☑ Account AlchemyPay 🗂 2 in stock ☑ Account Astropay 🗂 1 in stock ☑ Account Anycoin 🗂 2 in stock ☑ Account 4x4 io 🗂 1 in stock ☑ Account Bunq 🗂 1 in stock ☑ Account Bilderlings 🗂 1 in stock ☑ Account BitPay 🗂 3 in stock ☑ Account Bitinvestor / swapped 🗂 1 in stock ☑ Account Bitmex 🗂 1 in stock ☑ Account Bitsa 🗂 2 in stock ☑ Account Blackcatcard 🗂 1 in stock ☑ Account Blockchain 🗂 1 in stock ☑ Account Btcdirect 🗂 1 in stock ☑ Account BBVA 🗂 1 in stock ☑ Account Binance 🗂 4 in stock ☑ Account Bitget 🗂 1 in stock ☑ Account Blackwell Global 🗂 1 in stock ☑ Account Brighty app 🗂 1 in stock ☑ Account Bankera 🗂 2 in stock ☑ Account Cent.app 🗂 1 in stock ☑ Account Coinbase card 🗂 2 in stock ☑ Account Coinfinity 🗂 1 in stock ☑ Account Capitalist 🗂 1 in stock ☑ Account CoinW 🗂 1 in stock ☑ Account Coinmetro 🗂 1 in stock ☑ Account Coinpayments 🗂 3 in stock ☑ Account Cryptomus 🗂 1 in stock ☑ Account Curve 🗂 1 in stock ☑ Account Coinzoom 🗂 1 in stock ☑ Account Cryptopay 🗂 1 in stock ☑ Account Egera 🗂 2 in stock ☑ Account Eldorado gg 🗂 1 in stock ☑ Account e PN 🗂 1 in stock ☑ Account FasterPay 🗂 1 in stock ☑ Account Fragment 🗂 1 in stock ☑ Account Finci 🗂 1 in stock ☑ Account fillit eu 🗂 2 in stock ☑ Account Gate 🗂 1 in stock ☑ Account Grey 🗂 1 in stock ☑ Account HTX (Huobi) 🗂 3 in stock ☑ Account IN1 🗂 1 in stock ☑ Account Imagenpay 🗂 1 in stock ☑ Account ICard 🗂 1 in stock ☑ Account IPRoyal 🗂 1 in stock ☑ Account Kraken 🗂 2 in stock ☑ Account Kucoin 🗂 1 in stock ☑ Account Kauri Finance 🗂 1 in stock ☑ Account Kriptomat 🗂 1 in stock ☑ Account Luno 🗂 2 in stock ☑ Account LuxonPay 🗂 1 in stock ☑ Account MEXC 🗂 1 in stock ☑ Account MyBrocard 🗂 1 in stock ☑ Account Moonpay 🗂 1 in stock ☑ Account Monzo 🗂 1 in stock ☑ Account moneyjar world 🗂 1 in stock ☑ Account Naga Pay 🗂 1 in stock ☑ Account Nash 🗂 1 in stock ☑ Account Nebeus 🗂 1 in stock ☑ Account Nexo 🗂 3 in stock ☑ Account Nearpay 🗂 1 in stock ☑ Account Neteller 🗂 2 in stock ☑ Account NiceHash 🗂 1 in stock ☑ Account N26 🗂 2 in stock ☑ Account OKX 🗂 1 in stock ☑ Account PayDo 🗂 1 in stock ☑ Account Paypal 🗂 1 in stock ☑ Account Paysera 🗂 2 in stock ☑ Account PST 🗂 1 in stock ☑ Account Paybis 🗂 1 in stock ☑ Account Payoneer 🗂 1 in stock ☑ Account Paysafecard 🗂 1 in stock ☑ Account Paytend 🗂 1 in stock ☑ Account Quppy 🗂 2 in stock ☑ Account RedotPay 🗂 1 in stock ☑ Account Ramp 🗂 1 in stock ☑ Account Revolut 🗂 2 in stock ☑ Account Santander 🗂 1 in stock ☑ Account Spendl 🗂 2 in stock ☑ Account Skrill 🗂 1 in stock ☑ Account Swapin 🗂 1 in stock ☑ Account Trustee Plus 🗂 2 in stock ☑ Account Valora 🗂 1 in stock ☑ Account Volet 🗂 1 in stock ☑ Account W1TTY 🗂 1 in stock ☑ Account Wallet Telegram 🗂 3 in stock ☑ Account Weststein 🗂 1 in stock ☑ Account Wirex 🗂 1 in stock ☑ Account Wise 🗂 3 in stock ☑ Account Whitebit 🗂 1 in stock ☑ Account Wittix 🗂 1 in stock ☑ Account XGo 🗂 1 in stock ☑ Account Zeply 🗂 1 in stock ☑ Account gekkard 🗂 1 in stock +There are kits with a physical payment card Business-Accounts ☑ Account Blackcatcard Business 🗂 1 in stock ☑ Account Mistertango Business 🗂 1 in stock ☑ Account Payset Business 🗂 1 in stock ☑ Account Wise Business 🗂 1 in stock ☑ Account Finom Business 🗂 1 in stock ☑ Account PayPal Business 🗂 3 in stock ☑ Account Wallester Business 🗂 1 in stock ☑ Account Stripe Business 🗂 2 in stock ☑ Account Wittix Business 🗂 1 in stock ☑ Account Ebay com Seller US|EU, new 🗂 2 in stock If you need account that we don't have in a list contact us. Contact via telegram - in the first post of the topic!
    • What problems are you having? DM me on Discord: l2mid.com or you can write here too i also use Strix.
    • How can i increase the HP of a summon ? specifically Summon Mechanic Golem from warsmith ..   thx.
    • We invite you all, our dear community, to the Facebook groups Lu4 Global and Latam https://www.facebook.com/share/g/1DBF55fMXG/ Global Community https://www.facebook.com/share/g/1ApVygvr8R/ Global Community Los inviatamos a todos querida comunidad a los grupos de Facebook Lu4 Global y Latam https://www.facebook.com/share/g/1DBF55fMXG/   Comunidad Global https://www.facebook.com/share/g/1ApVygvr8R/   Comunidad Latam
    • TOP support you can get. Create all system so i can transfere all users from mmoweb to his platform
  • 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