마지막왕국 경험치물약 스크립트
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LKCamelot.model;
namespace LKCamelot.script.item
{
public class 경험치물약 : BasePotion
{
public override string Name { get { return "경험치물약" + " "; } }
public override ulong BuyPrice { get { return 250; } }
public 경험치물약()
: base(225)
{
}
public 경험치물약(Serial serial)
: base(serial)
{
m_ItemID = 225;
}
public override void Use(Player player)
{
if (Quantity >= 12)
{
if (player.Level <= 99 )
{
player.XP = player.XP + 5000000;
Quantity = Quantity - 1;
}
if (player.Promo >= 1 && player.Promo <= 6)
{
player.XP = player.XP + 75000;
Quantity = Quantity - 1;
}
if (player.Promo >= 7)
{
player.XP = player.XP + 10000;
Quantity = Quantity - 1;
}
}
else if (Quantity >= 3 && Quantity <= 11)
{
if (player.Level <= 99 )
{
player.XP = player.XP + 5000000;
Quantity = Quantity - 1;
}
if (player.Promo >= 1 && player.Promo <= 6)
{
player.XP = player.XP + 75000;
Quantity = Quantity - 1;
}
if (player.Promo >= 7)
{
player.XP = player.XP + 10000;
Quantity = Quantity - 1;
}
string itdrop = "경험치물약이" + (Quantity-1) + "개남았습니다" + " ";
player.client.SendPacket(new UpdateChatBox(0xff, 0xff, 1, (short)itdrop.Count(), itdrop).Compile());
}
else
{
if (player.Level <= 99 )
{
player.XP = player.XP + 5000000;
base.Use(player);
}
if (player.Promo >= 1 && player.Promo <= 6)
{
player.XP = player.XP + 75000;
base.Use(player);
}
if (player.Promo >= 7)
{
player.XP = player.XP + 10000;
base.Use(player);
}
}
}
}
}

령하진 님의 최근 댓글
src가 빠져있는데 이거 맞나요? 2023 07.02 ㄳㄳ 2023 05.28 감사합니다 2022 10.25 감사합니당 2022 06.20 감사합니다 2022 06.20