L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 103 Vote(s) - 2.58 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripts & Plugins synax
Author Message
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #11
RE: Scripts & Plugins synax

Added in 1.4.0.39

    LUA Programming
class User {
...
string GetNewNickName(bool incTarget);
void SetNewNickName(string newTitle);
}


[Image: owner.gif]
08-15-2011 18:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Sakaszli Offline
I'm too pro to be pro.
*******

Posts: 1,189
Joined: Jan 2011
Reputation: 484
Version: 1.4.2.134.5b
Post: #12
RE: Scripts & Plugins synax

    LUA Programming
ShowOnScreen(int Pos,int Time,int FontSize,string Message);



    LUA Programming
Time in ms
FontSize: 0-small 1-big
ShowOnScreen(3,4000,1,"Hello from script");

(This post was last modified: 09-18-2011 19:47 PM by Sakaszli.)
09-18-2011 19:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Sakaszli Offline
I'm too pro to be pro.
*******

Posts: 1,189
Joined: Jan 2011
Reputation: 484
Version: 1.4.2.134.5b
Post: #13
RE: Scripts & Plugins synax

    LUA Programming
SetMyTitle(string title);



its change your title IN SERVER SIDE!
So be carefull when u use it (dont spam it)

Example:
    LUA Programming
SetMyTitle("Pvp: ".. GetMe():GetPvPCount().." PK: "..GetMe():GetPKCount());



    LUA Programming
a = GetMe():GetPvPCount();
b = GetMe():GetPKCount();
SetMyTitle("Pvp: ".. a .." PK: ".. b);
--loop
while (true)
do
Sleep(10000);
if (a~=GetMe():GetPvPCount()) or (b~=GetMe():GetPKCount())
then
a = GetMe():GetPvPCount();
b = GetMe():GetPKCount();
SetMyTitle("Pvp: ".. a .." PK: ".. b);
end;
end;

(This post was last modified: 09-22-2011 00:21 AM by Sakaszli.)
09-20-2011 01:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sakaszli Offline
I'm too pro to be pro.
*******

Posts: 1,189
Joined: Jan 2011
Reputation: 484
Version: 1.4.2.134.5b
Post: #14
RE: Scripts & Plugins synax

    LUA Programming
GiveItemToPet(int ItemObjectID, int count);
GetItemFromPet(int ItemObjectID, int count);



U mast ALWAYS check for pet.
09-20-2011 02:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sakaszli Offline
I'm too pro to be pro.
*******

Posts: 1,189
Joined: Jan 2011
Reputation: 484
Version: 1.4.2.134.5b
Post: #15
RE: Scripts & Plugins synax

    C++ Programming
class Manor
	{
	public:
		void SetManor(int ManorID);
		void SetBuyAll();
		void AddSeed(int Count,int ItemID);
		bool CanBuy();
		bool BuySeeds();
		bool AddCrop(ID,ManorID,Count);
		bool CanSell();
		bool SellCrops();
                void ClearSell();
	};

(This post was last modified: 10-06-2011 23:57 PM by Sakaszli.)
09-25-2011 02:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #16
RE: Scripts & Plugins synax

Since 1.4.1.50:

    LUA Programming
class User{
void SetBlock(bool is); --blocks targeting of specific monster for 3 minutes, canceled when monster attacks us or use any skill of us.
bool IsBlock() const -- same like above but check
bool GetBuffsCount() const --including etc states & debuffs
const L2User_Buff* GetBuffByIdx(int i) const -- returns buff on specyfic index, may return null, indexes 
}


[Image: owner.gif]
09-25-2011 22:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Sakaszli Offline
I'm too pro to be pro.
*******

Posts: 1,189
Joined: Jan 2011
Reputation: 484
Version: 1.4.2.134.5b
Post: #17
RE: Scripts & Plugins synax

.57+

    LUA Programming
ShowArrow(FVector);



its show this arrow over u
10-08-2011 16:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #18
RE: Scripts & Plugins synax

Since 1.4.1.62:

    LUA Programming
class ItemData
{ 
   int GetId();
   int GetNameId();
   int GetType();
   int GetQuantity();
   FVector GetLocation();
   float GetRangeFixedTo(user);
   float GetRangeTo(user);
   float GetRangeTo(X,Y,Z);
 
   unsigned int64 GetDropTime();
 
};
 
class ItemList
{
   int GetCount();
 
}
 
//tofinish


[Image: owner.gif]
12-10-2011 14:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
OxenteBahia Offline
VIP Member
***

Posts: 72
Joined: Jul 2012
Reputation: 11
Version: 1.4.2.138
Post: #19
RE: Scripts & Plugins synax

Hello, I do not know if this is the correct place to post what I need, but I need a Scrypt or pluguin to delete the item drop before summoning the little boss la guillotine. anyone know where I can find?
Thank you!

Living is drawing without erasing!
07-27-2013 01:13 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star help with multibox +tower scripts buybuy 2 4,140 11-13-2015 21:00 PM
Last Post: TheQQmaster
Rainbow GUIDE Very helpful to the beginners. [GUIDEs/ SCRIPTs/ PLUGINs] AStark 57 202,038 05-16-2015 11:08 AM
Last Post: krums
  How to Install Plugins? SinnedK 1 7,218 10-02-2013 08:46 AM
Last Post: l2syrena
Photo Error running Scripts samlong 0 3,438 03-30-2013 06:29 AM
Last Post: samlong
  Plugins API ClockMan 3 16,784 12-25-2011 12:29 PM
Last Post: ClockMan



User(s) browsing this thread: 1 Guest(s)