Jump to content

Question

Posted

Hello guys,I am sorry to bother you again.
I am trying to create new user command.Code seems pretty simple to me,just have one trouble.Where do I find what command what id has?
I mean,where do you say "/unstuck" = 52 or something like that,cause I failed to find it.
Thank you for help.

6 answers to this question

Recommended Posts

  • 0
Posted

 

    private static final int[] COMMAND_IDS =
    {
        52
    };

 

That's the id from the core side.

 

commandname-e.dat from system folder

 

 

nbr    id    name
53    52    unstuck
  • 0
Posted

Ohh,so it works like this:
You write the command ("/unstuck")
Client converts it to id (52)
Clients sends it to the server
Server recognizes ID and does what he needs to do
?

  • 0
Posted (edited)

No matter what name of the command you write. It's about the ID :)

 

If the Id fits with the one from core, //logic, else do nothing (doesnt exist on core side) :P

Edited by SweeTs
  • 0
Posted

Yeah,I got it to work.
Thank you again!
And if you could I got one more question,I can't find how to get character instance by using his objId or char name.
For example,I want to make player a hero and I can get his char name or objId,so how can I get variable character,so I can character.setHero(true);
 

  • 0
Posted (edited)

You don't have to. Simple player/activeChar/target.setHero(true);

 

Where you want to put it? How to obtain it? Need more info :P

Edited by SweeTs
  • 0
Posted

For example,I have a code that check who has most online,and the player who has the most is set to hero.
And I get it like that:
PreparedStatement statement = con.prepareStatement("SELECT char_name FROM characters ORDER BY online DESC LIMIT 1");

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • BLACK FRIDAY — PREMIUM BENEFITS FOR YOUR TRAFFIC Only on November 28 our special promo code gives you a 13% discount in the store. PROMO CODE: BLACKFRIDAY (13% Discount) Shop in our store on the website or via the Telegram bot! Active links: Digital goods store (Website): Go Store Telegram bot: Go – convenient access to the store via Telegram messenger. Other services: Virtual numbers service: Go Telegram bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We want to present you the current list of promotions and special offers for purchasing our service's products and services: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write this in our forum thread! 3. Get $1 for the first trial start of the SMM Panel: just open a ticket with the subject "Get Trial Bonus" on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Usually, I work alone on my projects, but sometimes the work is much more than I've expected. Could you provide a price list? It would be good if we knew your price before contacting you. 
    • BLACK FRIDAY — PREMIUM BENEFITS FOR YOUR TRAFFIC Only on November 28 our special promo code gives you a 13% discount in the store. PROMO CODE: BLACKFRIDAY (13% Discount) Shop in our store on the website or via the Telegram bot! Active links: Digital goods store (Website): Go Store Telegram bot: Go – convenient access to the store via Telegram messenger. Other services: Virtual numbers service: Go Telegram bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We want to present you the current list of promotions and special offers for purchasing our service's products and services: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write this in our forum thread! 3. Get $1 for the first trial start of the SMM Panel: just open a ticket with the subject "Get Trial Bonus" on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • wtf are you talking about
    • We have the best price! L2Reborn.org Signature x1 Franz NEW!! 1KK = $18 HURRY TO BUY AT THE TOP PRICE discord - adver745645
  • 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