Jump to content

[Guide]Οδηγός , τι να προσέξουμε σε ένα code που φαίνεται απλό (πάντα για conf)


Recommended Posts

Λοιπόν εδώ θα σας δείξω τι πρέπει να προσέχουμε όταν πάμε να κάνουμε κάποιον κώδικα που να έχει κάποιο config , για παράδειγμα τώρα ..

 

Ως γνωστόν στο L2 το Jail είναι ένα zone που δεν σου επιτρέπει να μιλήσεις σε κανένα chat εκτός του απλού .. Δείτε πως είναι ο κώδικας στο Say2.java όπου εκεί θα επεξεργάζεστε πάντα (clientpackets) ..

 

Ο Κώδικας είναι :

 

if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT)
	{
		if (_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE)
		{
			activeChar.sendMessage("You can not chat with players outside of the jail.");
			return;
		}
	}

 

προσέχουμε λοιπόν

 

if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT)

Σημαίνει ότι μόνο όταν το config που δίνει αυτή την ιδιότητα στο jail θα λειτουργήσει το παρακάτω ..

 

Τώρα αν θέλουμε να κάνουμε ένα άλλο κόδικα στο Say2.java γράφουμε απο κάτω

 

example :

 

if (activeChar.isRetarded))
{
if (_type == ALL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE)
		{
			activeChar.sendMessage("You cannot speak while you are dead.");
			return;
		}

 

δηλαδή ο char άμα είναι χαζός δεν θα μπορεί να μιλήσει πουθενά .. κάνουμε remove όπιο chat θέλουμε μαζί με το _type == CHAT_STYLE και είμαστε GG

 

 

 

-ReVenGeR^

Link to comment
Share on other sites

ade dixe mac pos na kanume kai to custom mod

aspume na exume //setretarded :)

tecpa dixe mac kai pos na kanume configs.

Link to comment
Share on other sites

Exoume katantisei ta pio apla pramata na pernoun +1 karma, dld ena guide p na e3igei ta PANTA ti 8a t dwsoume?

 

Apopsi m an k dn eimai pleon sto staff t mxc, oti pate apo to kako sto xeirotero oi donators. An einai dinaton pia

Link to comment
Share on other sites

Exoume katantisei ta pio apla pramata na pernoun +1 karma, dld ena guide p na e3igei ta PANTA ti 8a t dwsoume?

 

Apopsi m an k dn eimai pleon sto staff t mxc, oti pate apo to kako sto xeirotero oi donators. An einai dinaton pia

 

gia to karma ok dn prp na dinete + se guides mikra

alla gt apo to kako sto xirotero ta donates t enois?(my opinion)(Filika)

Link to comment
Share on other sites

Exoume katantisei ta pio apla pramata na pernoun +1 karma, dld ena guide p na e3igei ta PANTA ti 8a t dwsoume?

 

Apopsi m an k dn eimai pleon sto staff t mxc, oti pate apo to kako sto xeirotero oi donators. An einai dinaton pia

 

όχι ρε δηλαδή για μία φορά συμφωνώ μαζί σου

 

@revenger

 

δεν ξέρω τι comments να πω ιδέα δεν έχω από java. :D  από πότε ξεκίνισες να ασχολίσε ρε ?

Link to comment
Share on other sites

όχι ρε δηλαδή για μία φορά συμφωνώ μαζί σου

 

@revenger

 

δεν ξέρω τι comments να πω ιδέα δεν έχω από java. :D  από πότε ξεκίνισες να ασχολίσε ρε ?

κανα μήνα;
Link to comment
Share on other sites

Nice share Revenger alla entaxei mporei na exei dikio o fakoykas...An dld kapios kanei ena poli oreo share pali +1 8a parei ?? Auto simenei oti dn deinoume kai poli simasia...

Link to comment
Share on other sites

Nice share Revenger alla entaxei mporei na exei dikio o fakoykas...An dld kapios kanei ena poli oreo share pali +1 8a parei ?? Auto simenei oti dn deinoume kai poli simasia...

kai giati gia auto apeu8inese se mena re?lolwut as m dosoun -1 s auto siga ti 9 xacw :D
Link to comment
Share on other sites

Exoume katantisei ta pio apla pramata na pernoun +1 karma, dld ena guide p na e3igei ta PANTA ti 8a t dwsoume?

 

Apopsi m an k dn eimai pleon sto staff t mxc, oti pate apo to kako sto xeirotero oi donators. An einai dinaton pia

pes ta re fakoyka !!

mia xara htan otan eisoun G mod.

mporouses na tous peis k tpt.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

    • ( +256754809279 ) MOST EFFECTIVE REVENGE DEATH SPELLS CASTER USA, UK, BAHAMAS, BAHRAIN, NEW ZEALAND, SPAIN AUSTRALIA SOUTH CAROLINA. +256754809279 drmama Tango, Powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. Sweden, Australia, Nigeria, Spain, Ghana, California, Greece. Death spell on someone, death spells that Death Revenge Spell on wicked friends, Voodoo Death Spells to kill Enemies Black Magic Spells To Harm Someone, Black magic death spells on ex-lover, Revenge instant death spells on toxic uncles powerful instant death spells online instant spell that work fast in USA, UK, Kuwait, Germany, Asian, Europe, Philippines, Canada, revenge spells, most powerful death spell, spell to die in your sleep, successful death spell, most powerful voodoo spell caster, voodoo spell casters in new Orleans, voodoo love spells reviews, proven authentic voodoo spell casters, most powerful voodoo priest in world, black magic tricks to destroy enemy. Results are 100% sure and guaranteed , Europe, Philippines, Canada, South Africa, Italy, Peru, India, Iran, Gambia. spells, guaranteed voodoo spells, spell to make someone sick and die, revenge spells that work instantly, real witches for hire, revenge spells on an ex- lover, how to put a spell on someone who hurts you, spell to make someone sick, voodoo spells to hurt someone, spells to curse someone, powerful revenge spells, most powerful death spell, spell to die in your sleep, successful death spell. +256754809279 drmama Tango Email: drmamatango@gmail.com
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don't be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don't waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME  Don't wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don't think legitimate. Your lover has gone with someone else Don't hesitate to break them up as this ritual and prayer is very powerful and will give very good results in a few weeks only. STOP A DIVORCE NOW  Order this service now to reinforce the bonds of your relationship and save your marriage. This service will make him/her realize that a divorce would be a mistake and will strengthen love and passion. With permanent results, this service will guarantee a long lasting marriage and will make you happy. FAITHFULNESS  Your partner cheats on you? This love ritual is definitely the one you need!  LOVE CHARMS   
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don't be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don't waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME  Don't wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don't think legitimate. Your lover has gone with someone else Don't hesitate to break them up as this ritual and prayer is very powerful and will give very good results in a few weeks only. STOP A DIVORCE NOW  Order this service now to reinforce the bonds of your relationship and save your marriage. This service will make him/her realize that a divorce would be a mistake and will strengthen love and passion. With permanent results, this service will guarantee a long lasting marriage and will make you happy. FAITHFULNESS  Your partner cheats on you? This love ritual is definitely the one you need!  LOVE CHARMS   
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don't be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don't waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME  Don't wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don't think legitimate. Your lover has gone with someone else Don't hesitate to break them up as this ritual and prayer is very powerful and will give very good results in a few weeks only. STOP A DIVORCE NOW  Order this service now to reinforce the bonds of your relationship and save your marriage. This service will make him/her realize that a divorce would be a mistake and will strengthen love and passion. With permanent results, this service will guarantee a long lasting marriage and will make you happy. FAITHFULNESS  Your partner cheats on you? This love ritual is definitely the one you need!  LOVE CHARMS   
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don't be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don't waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME  Don't wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don't think legitimate. Your lover has gone with someone else Don't hesitate to break them up as this ritual and prayer is very powerful and will give very good results in a few weeks only. STOP A DIVORCE NOW  Order this service now to reinforce the bonds of your relationship and save your marriage. This service will make him/her realize that a divorce would be a mistake and will strengthen love and passion. With permanent results, this service will guarantee a long lasting marriage and will make you happy. FAITHFULNESS  Your partner cheats on you? This love ritual is definitely the one you need!  LOVE CHARMS   
  • Topics

×
×
  • Create New...