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. 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
    • Ultima Online Oyuncu Rehberi

      Ultima Online Oyuncu Rehberi

      Oyunu hakkında tanıcı bilgiler ve ipuçları

    • Ultima Online Portal

      Ultima Online Portal

      Ultima Online oyununun topluluk portalı

    • Ultima Online Server List

      Ultima Online Server List

      Önemli özellikleri ve online oyuncu sayıları

    • Ultima Online Script

      Ultima Online Script

      Sphere, RunUO, Razor scriptleri

  • FORUM
  • DOKÜMAN
  • İNDİR
  • DISCORD 72
   Üye ol    Giriş
170
  1. UO Scriptleri
  2. RunUO Scripts
  3. Items
  4. Deeds
  5. Pet Res Deed

Pet Res Deed

  • 2006-05-02 22:25
  • 0 Yorumlar
  • 1660 Görüntüleme
using System; 
using Server.Network;
using Server.Prompts;
using Server.Items;
using Server.Mobiles;
using Server.Targeting;

namespace Server.Items
{
public class ResurrectionTarget : Target
{
private PetResurrectionDeed m_Deed;

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

protected override void OnTarget( Mobile from, object target )
{
if ( target is BaseCreature )
{
BaseCreature t = ( BaseCreature ) target;

if ( t.IsDeadPet == false )
{
from.SendMessage( "That pet is already living!" );
}
else if ( t.ControlMaster != from )
{
from.SendMessage( "That is not your pet!" );
}
else

{

t.IsDeadPet = !t.IsDeadPet;
from.SendMessage( "You bring your pet back to life!" );

t.PlaySound( 0x214 );
t.FixedEffect( 0x376A, 10, 16 );

m_Deed.Delete(); // Delete the deed
}

}
else
{
from.SendMessage( "That is not a valid traget." );
}
}
}

public class PetResurrectionDeed : Item // Create the item class which is derived from the base item class
{
[Constructable]
public PetResurrectionDeed() : base( 0x14F0 )
{
Weight = 1.0;
Name = "a pet Resurrection deed";
LootType = LootType.Blessed;
Hue = 2216;
}

public PetResurrectionDeed( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
LootType = LootType.Blessed;

int version = reader.ReadInt();
}

public override bool DisplayLootType{ get{ return false; } }

public override void OnDoubleClick( Mobile from ) // Override double click of the deed to call our target
{
if ( !IsChildOf( from.Backpack ) ) // Make sure its in their pack
{
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
}
else
{
from.SendMessage( "Choose the pet you wish to bring back to life." );
from.Target = new ResurrectionTarget( this ); // Call our target
}
}
}
}

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
  • Animal Deed

    2009-08-30 11:46

  • Bless Deed

    2009-08-15 04:04

  • Sac sakal deed

    2009-07-25 10:36

  • soyadi deed

    2008-07-08 20:55

  • || .deed || .teleporter ||

    2007-06-14 16:48



  • Son Forumlar
  • Sayfalar
  • morfin59
    Nebula Uo gerçekleri

    Ultima Online 2 gün önce

  • morfin59
    Arkadaslar Potionlarin Üst üste Düsürme Nasil??

    Sphere Scripting 2 gün önce

  • Tymaron
    Sistem Güncellemeleri: Portal, Sunucu Listesi ve...

    Duyurular 3 gün önce

  • Rowall
    UO:Nimloth Yeniden Doğuyor !

    Sunucular 3 gün önce

  • Lucretius
    AutoMod - AI Destekli Forum Moderasyon

    Duyurular 4 gün önce

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

    Ultima Online 2 hafta önce

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

    Ultima Online 3 hafta önce

  • Çağdaş İLHAN
    Viox/phobos Sphere Script Pack Alınacaktır

    Sphere Scripting 4 hafta önce

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

    Sunucular 4 hafta önce

  • HaldiUo
    HaldiUO (Pc-Mobile)

    Sunucular 1 ay önce

  • TheFXon
    CS 1.6 P0ndenush Config

    CS 1.6 1 ay önce

  • TheNorthShield
    The North Shield ( TNS ) - Golden Age 2017

    Sunucular 2 ay önce

  • System_Error
    Sphere X Kurulum İş İlanı

    Sphere Scripting 2 ay önce

  • Esgaroth UO
    Esgaroth UO

    Sunucular 3 ay önce

  • sarhos7573
    Scripting / script

    Ultima Online 4 ay önce

  • 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

  • Distance(uzaklık) Sorgusu Hakkında

    2024-06-19 22:05

  • UoFiddler

    2024-06-01 02:19

  • UoFiddler ile Map Kopyalama

    2024-05-31 21:17

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 - 2025 Ultima-Strike. Her hakkı saklıdır.