21.YILTürkiye'nin en eski ve aktif online oyun platformu, Ultima Online, Counter-Strike ve diğer online oyunlar hakkında Türkçe haber, bilgi ve forum sunuyor. Türkiye'nin en eski ve aktif online oyun platformu, Ultima Online, Counter-Strike ve diğer online oyunlar hakkında Türkçe haber, bilgi ve forum sunuyor.
  • ANASAYFA
  • ULTIMA ONLINE
  • FORUM
  • DOKÜMAN
  • İNDİR
   Üye ol    Giriş
118
39
  1. Anasayfa
  2. UO Scriptleri
  3. RunUO Scripts
  4. Items
  5. Deeds
  6. İtem bless deed

İtem bless deed

  • moby1905
  • 2004-11-15 20:41
  • 0 Yorumlar
  • 1930 Görüntüleme
using System;
using Server.Network;
using Server.Prompts;
using Server.Items;
using Server.Targeting;

namespace Server.Items
{
public class BlessTarget : Target // Create our targeting class (which we derive from the base target class)
{
private ItemBlessDeed m_Deed;

public BlessTarget( ItemBlessDeed deed ) : base( 1, false, TargetFlags.None )
{
m_Deed = deed;
}

protected override void OnTarget( Mobile from, object target ) // Override the protected OnTarget() for our feature
{
if ( target is BaseWeapon )
{
BaseWeapon item = (BaseWeapon)target;

if ( item.LootType == LootType.Blessed || item.BlessedFor == from || (Mobile.InsuranceEnabled && item.Insured) ) // Check if its already newbied (blessed)
{
from.SendLocalizedMessage( 1045113 ); // That item is already blessed
}
else if ( item.LootType != LootType.Regular )
{
from.SendLocalizedMessage( 1045114 ); // You can not bless that item
}
else
{
if( item.RootParent != from ) // Make sure its in their pack or they are wearing it
{
from.SendLocalizedMessage( 500509 ); // You cannot bless that object
}
else
{
item.LootType = LootType.Blessed;
from.SendLocalizedMessage( 1010026 ); // You bless the item....

m_Deed.Delete(); // Delete the bless deed
}
}
}
else if (target is BaseArmor)
{
BaseArmor item = (BaseArmor)target;

if ( item.LootType == LootType.Blessed || item.BlessedFor == from || (Mobile.InsuranceEnabled && item.Insured) ) // Check if its already newbied (blessed)
{
from.SendLocalizedMessage( 1045113 ); // That item is already blessed
}
else if ( item.LootType != LootType.Regular )
{
from.SendLocalizedMessage( 1045114 ); // You can not bless that item
}
else

Değerlendirmeler

0 0

Total votes: 0

Üye Ol veya Giriş Yap

Bu içeriğe yorum atmak istiyorsanız hemen üye olun veya giriş yapın.

Discord ile Bağlan
Twitch ile Bağlan
Steam ile Bağlan
Google ile Bağlan

Yorumlar (0)

Henüz yorum yapılmamış
Sadece kayıtlı kullanıcılar yeni yorum yapabilir.


Ultima-Strike Discord
Benzer Sayfalar
  • Bless Deed

    2009-08-15 04:04

  • Clothing Bless Deed

    2008-07-10 00:23

  • Animal Shrink Deed Animal'ları küçültmek için gerekli bir item

    2008-01-12 14:45

  • Item ID

    2006-07-06 20:58

  • item stoneler

    2008-05-24 17:28



  • Son Forumlar
  • Sayfalar
  • Montana LoveLACe
    Paxhistoria yapay zeka destekli web tabanlı...

    Diğer Oyunlar 1 gün önce

  • boosterx
    UO:Nimloth Yeniden Doğuyor !

    Sunucular 5 gün önce

  • Ege ERKEK
    2025 CS 1.5 TÜRK SUNUCUSU AÇILDI

    Sunucular 1 hafta önce

  • Vanq
    UO Lord British Gazinosu #5 Yayında!

    Duyurular 1 hafta önce

  • Algos
    Üyeliği 15 yıl ve üzerinde olanlar.

    Ultima Online 1 hafta önce

  • Deathwave
    Valheim’e Ultima Online Modu

    Ultima Online 1 hafta önce

  • Ege ERKEK
    Elit Donanım Modülü (EDM) | Üretimin Doruğu (Yeni...

    Ultima Online 1 hafta önce

  • JoannaLevesQue
    Üyeliği 18 yıl ve üstünde olanlar.

    Ultima Online 2 hafta önce

  • Ege ERKEK
    Kader Masası | Seçimin Yazgını Belirleyecek (Yeni...

    Ultima Online 2 hafta önce

  • Ege ERKEK
    İçerik Kaşifi Aramızda!

    Duyurular 2 hafta önce

  • Venus
    World of UO'da Geçmişe Yolculuk Başladı

    Sunucular 2 hafta önce

  • Nefrelius
    Alcor UO Reborn

    Sunucular 3 hafta önce

  • Ege ERKEK
    Ultima Online'da Alkol Üretme Sistemi!

    Ultima Online 3 hafta önce

  • Lucretius
    Son yıllarda UO tercihiniz: RP, PP (Power Play)...

    Ultima Online 3 hafta önce

  • megastro.uokings
    Nephilim Pvp

    Sunucular 3 hafta önce

  • MMORPG'de Devrim Yaptı: Sınıf Tanımayan Ultima Online!

    2025-12-27 21:13

  • Ultima Online'ın Oynanışını Tamamen Değiştiren Harita Kararı!

    2025-12-23 23:17

  • Yeni Başlayanlar İçin Ultima Online

    2025-11-27 19:07

  • Skill seçimlerinizi planlamak artık çok daha kolay

    Ultima Online Karakter Yapılandırma Aracı Bölümü Açıldı!

    2024-10-31 22:47

  • Ultima Online topluluğu, ClassicUO'nun sadece web client olarak kullanılabileceğinin açıklanmasının ardından tepkili.

    Resmi UO, Oyuncuları İkiye Böldü: Web Client Yeterli mi?

    2024-10-14 17:45

  • Ultima Online, ClassicUO ile resmi işbirliği yapıyor! Performans iyileştirmeleri, geniş oyun penceresi ve daha fazlası geliyor.

    Ultima Online, ClassicUO ile Resmi İşbirliğine Gidiyor

    2024-09-26 14:21

  • Centred#

    2024-07-08 22:50

  • CentrED+ 7.9

    2024-07-08 22:34

Menü
  • ANASAYFA
  • FORUM
  • DOKÜMAN
  • İNDİR
  • İLETİŞİM
  • Bağlantılar
  • CS 1.6 indir
  • CS 1.6 Türkçe
  • CS 1.6 Bot
  • CS 1.6 CFG
  • CS 1.6 Rate Ayarları
  • UO Server
  • Ghost Mouse indir
  • FPS Nedir?
  • Ultima Online PVP Server
  • Makroman
  • UO Karakter Yapılandırma
    © 2004 - 2026 Ultima-Strike. Her hakkı saklıdır.