Konu: Düello
Tekil Mesaj gösterimi
Alt 03-28-2008   #2 (permalink)
Wipau
wWw.GameSFoR.neT
Wipau - ait Kullanıcı Resmi (Avatar)
Üyelik tarihi: Aug 2007
Bulunduğu yer: Gayseri'den
Mesajlar: 2.432
Konuları: 1878
Favori Oyunu: Knight Online, Battlefield 2, Generals ve Ultima Online
REP Gücü: 237981
REP Puanı: 1028000
Wipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond reputeWipau has a reputation beyond repute
Wipau - MSN üzeri Mesaj gönder Wipau - YAHOO üzeri Mesaj gönder
Standart

Playermobile dosyasına uygun kısmına eklemeniz gereken kodlar asagıdadır.

Kod:
private bool isinchal = false;
private bool canbechal = true;
private BaseMount m_TempMount;

[CommandProperty( AccessLevel.GameMaster ) ]
public BaseMount TempMount
{
    get { return m_TempMount; }
    set { m_TempMount = value; }
}
[CommandProperty(AccessLevel.Counselor)]
public bool IsInChallenge
{
    get{return isinchal;}
    set{isinchal = value;}
}
[CommandProperty(AccessLevel.Counselor)]
public bool CanBeChallenged
{
    get{return canbechal;}
    set{canbechal = value;}
}

public override bool KeepsItemsOnDeath
{
    get
    {
        if(isinchal)
            return true;
        return base.KeepsItemsOnDeath;
    }
}
private static void OnLogout( LogoutEventArgs e )
{
    PlayerMobile pm = e.Mobile as PlayerMobile;
    if( pm.IsInChallenge )
        pm.Kill();
}




Duello scripti 1.0 için

[challenge yazarak kaça kaç yapacaklarını seçebilir ve playera tıkla***** teklif edebilir..

Kod:
Summary:
[UPDATED to Version 1.4 (June 6, 2004)]

[Version 1.4]
Screw up in the RC0 playermobile. Had code in it that didn't belong there and would not compile. Don't need to redownload unless you got that error.
[Version 1.3]
This is a brand new Challenge Game then the previous one I had released on the old boards. The code is cleaner and there are far less bugs. In addition new features have been added and some removed. Everything, including the PlayerMobile, is in the zip file. Make sure to read the README.txt file. Enjoy

Description:
1v1 and 2v2 Challenge Game.

Installation:
-README.txt file included with steps on how to install.
-Remember to [prop the stones you add and set all the required info. 
-The stones can be anywhere you want them. All are controled threw an arraylist that loads during system startup and is edited when any stone is removed or added. I Personally use a jailcell that way I can always check the status of them.

Version 1.3
[NEW]
-Opponent is no longer gray when the challenge ends.
-You are no longer red for a split second after getting teleported out of game.
-Bug fixed where if you were blue you would still get teleported to Buks Den after a crash or logout more than 5min.
-Bug fixed where if you logout for under 5mins or got disconnect the fight timer would not start back up.
-InternalTimer and Fight Timer moved to Challenge Stone. For some dumb reason I was creating a Fight Timer on each player. It's now 1 timer per stone.
-Bug fixed where every 5mins under 30min fight it would spam 30, 25,20 ectect for the entire minute.
-Added option to change length of dual per stone. just [Prop it. It's set in minutes.
-Fixed Internal timer so it now Stops once it hits zero and dosnt continue counting.
-Fixed FightTimer so you would not remain IsInChallenge == true; if a tied occured.
-Fixed PlayerMobile for RC0. I forgot to add in where if you are in a challenge you get KeepItemsOnDeath.

I think I fixed other small bugs also, but i don't remember.

Version 1.2
-Found bug that crashed server when mounted. It was due to Ethereal Mounts and is now fixed. Download new version and reinstall. Enjoy

Version 1.1

Other bug fixes:
-problem where the challenge ring was not saving Kills,fame,ect when server crash occured. I've move the ring out of the timer and is now its own item. This seems to have fixed the problem.

-In challengestone.cs and top of file. There are two logout positions set. One for over 5 murders and one for under. For under 5 murders it is set to Brit and for over its now set for Buc Den instead of also Brit. This is only used when server crashes. Any other time the locations are where the orginal challenge command was used.

-After server crash, the challenge ring was not removed! This has been fixed.

-Added into game that anyone being challenged has to have full health. This is so the game is not abused and people use it as a means of an excape.

-Forgot to return base for keepitemsondeath, so make you you update that in you PlayerMobile! Take a look at the code below [IN the new README.txt].

-Fixed error where stone would always say Not in Use.
Eklenmiş Dosya
Dosya tipi: zip ChallengeGame1.4.zip.zip (37,0 KB (Kilobyte), 13x kez indirilmiştir)
__________________
Lütfen Paylaşımlara REP Veriniz..
Paylaşımlarda Şifre Çıkarsa
:
[Sadece Kayıtlı Kullanıcılar Linkleri Görebilir. Üye OL...] veya gamesfor.net










Wipau isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla