Jump to content

Recommended Posts

Posted

I share with you this buffer code witch was used perfectly on L2Rapture.It's a decent buffer for you to use in your servers,you can add or remove buffs,and you can also edit/add/remove exchange item and amount for buffs.It's a decent buffer and can be very usefull and helpfull.I don't know if this code is already shared in the past but i searched a bit and didn't find it,so here you go.If it was shared before here in this forum just inform me.

class 1 l2r_town_buffer : citizen

	{

	parameter:

	   int   windwalk = 308226;   // 308226   ww 2

	   int   magicbarrier = 265218;   // 265218   magic barrier 2

	   int   agility = 278275;   // 278275   agility 3

	   int   might = 273411;      // 273411   might 3

	   int   guidance = 317443;   // 317443   guidance 3

	   int   deathwhisper = 317955;   // 317955   dw 3

	   int   focus = 275715;      // 275715   focus 3

	   int   haste = 278018;      // 278018   haste 2

	   int   blessbody = 267526;   // 267526   bb 6

	   int   shield = 266243;   // 266243   shield 3

	   int   acumen = 277763;   // 277763 acumen 3

	   int   concentration = 275974;   // 275974   concentration 6

	   int   empower = 271107;   // 271107   empower 3

	   int   blesssoul = 268294;   // 268294   bs 6

	   int   blessshield = 318214;   // 318214   bless shgield 6

	   int   mentalshield = 264964;   // 264964   mental shield  4

	   string   fnHi = "l2r_town_buffer.htm";

	   string   fnSelectBuffs = "l2r_select_buff.htm";

	   int   chargeFee = 0;

	   int   feeItem = 57;      // 57 adena

	   int   feeAmt = 1000;

	

	handler:

	   EventHandler TALKED (talker)

	   {

	      myself::ShowPage (talker, fnHi);

	   }

	   EventHandler MENU_SELECTED (ask, reply, talker)

	   {

	      if (ask == 3)   //player select buffs

	      {

	         if (reply == 1)

	         {

	            myself::ShowPage (talker, fnSelectBuffs);

	         }

	         if (reply > 10000)

	         {

	               if( ( myself::Skill_GetConsumeMP( reply ) < myself.sm.mp && myself::Skill_GetConsumeHP( reply ) < myself.sm.hp ) && myself::Skill_InReuseDelay( reply ) == 0 )

	               {

	            if (chargeFee == 1)

	            {

	               if (myself::OwnItemCount (talker, feeItem) > feeAmt)

	               {

	                  myself::DeleteItem1 (talker, feeItem, feeAmt);

	               }

	               else

	               {

	                  myself::Say ("Sorry " + talker.name + ", come back when you have more Adena.");

	                  return;

	               }

	            }

	            myself::AddUseSkillDesire( talker, reply, 1, 0, 1000000 );

	            myself::ShowPage (talker, fnSelectBuffs);

	               }

	         }

	      }

	   }

	}

Pastebin: http://pastebin.com/3mFsMZsU

Posted

WARNING :) Don't use this code unless you add some check whether 'reply' value is really one of buffs you wanted to allow! Otherwise player can get practically any skill casted on him...

Posted

WARNING :) Don't use this code unless you add some check whether 'reply' value is really one of buffs you wanted to allow! Otherwise player can get practically any skill casted on him...

thanks for mention this ;)

  • 3 weeks later...

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

    • I dont sell anything and i got scammed kiddo, if you noticed rookie just scammed me and blocked me. so asking this make you immature.
    • @Maxtor @Dragic @Celestine Why you unban this rat, it's will give very negative review if you will try sell something or provide service this very actually should be for @Dragic and his L2Forge sales.
    • Αχ ναι; τοτε γιατι με παρακαλουσες για κωδικες και οτι σου εδινα ελεγες τελεια και wow σαγαπαω? Ε ψευτρακο; Γιατι οτι πηρες λειτουργει οπως το ηθελες ακομη και σε λεπτομερεια που κανας αλλος θα σου ελεγε αντε κ γα*?   Σε τσουξανε οι τιμουλες μου στη τσεπουλα σου; κ βρηκες κανα new chatgpt dev? Φτωχομπινε του κερατα που κανεις παζαρια για 40-50 ευρω κωδικες.   Δεν ασχολουμε αλλο απλα ενημερωνω @Celestineτο παιδακι χρωσταει λεφτα για κωδικα που ελαβε και λειτουργει και το επιβεβαιωσε και με μπλοκαρε κ ολας. Ban η οχι δεν ασχολουμε αλλο. καλη τυχη 
    • den tha asxolithw allo mazi sou randoma,kserei olo to forum ti  eisai
    • [GR] Εισαι μεγαλο σκουπιδι και τσιπης. Ειχα δουλεια, γυρισα σου εφτιαξα οτι ηθελες κ εκατσα μαζι σου μεχρι να δεις κ τη πιο μικρη λεπτομερεια να δουλευει κ οτι αλλαγη ηθελες που θα μπορουσα να σου πω "φερε ενα 20ρικο" οπως κατι αλλοι εδω μεσα στο εκανα. Το χειροτερο ειναι οτι σου ζητησα 60 εδωσες 50 λες κ κανονιζεις εσυ τι θα δωσεις και το ακομη χειροτερο οτι λες οτι θα προχωρησουμε μαζι σε κατι, κανε μου πρωτα αυτο κ πας ιδια μερα κ ανοιγεις τοπικ κ ζητας αλλον dev. Σκουπιδι γεννηθηκες κ σκουπιδι θα πεθανεις. Παλι σε εμενα θα γυρισεις να ξερεις τη δουλεια που σ εκανα δεν θα την κανει κανεις αλλος εδω μεσα ειδικα σε ενα φορουμ με chatgpt devs. Δεν ασχολουμε αλλο μαζι σου, επισης στειλε μου τα 10 Ευρω revolut αλλιως ανοιγω report (μεχρι αυριο) @rookie23 . [/GR]      Have you ever worked with me? Cause just diggin topics from 2.000 + clients i had since 2014 and finding the only one who had bad business does not make you scammer.     Εσυ που εισαι 35 ετων και καθεσαι κ κυνηγας οτι τοπικ εχει το ονομα καρα ποσο happy customer εισαι; Επισης happy? πληρωσε, πηρε οτι ηθελε, δουλευει 100% κ το θεμα ειναι οτι δεν εδωσε ολα τα λεφτα που λεει, αρα ακομη και η ειρωνια σου ειναι εκτος τοπου και χρονου. 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..