Lineage 2 Tower Forum

Full Version: Scripts & Plugins synax
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Added in 1.4.0.39

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

    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");

    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;

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



U mast ALWAYS check for pet.
    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();
	};

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 
}

.57+

    LUA Programming
ShowArrow(FVector);



its show this arrow over u
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

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!
Pages: 1 2
Reference URL's