Stránka 1 z 1

Loot + Rezani nonhumanu

Napsal: 14.08.2010 15:16:11
od Wizzy
Download vsech skriptu mnou uvedenych: http://dl.dropbox.com/u/7651700/fena/wizzy.cs
Objects.dll: http://dl.dropbox.com/u/7651700/fena/Objects.dll


,loot
- loot ze zeme
- pokud je posledni otevreny container mrtvola a neni to human body, rizne
- lootuje loot bag + regy

Kód: Vybrat vše

[Command]
public void loot()
{
/* Pouzivat k rezani draw knife? Defaultne pouzivani ekvipnute zbrane*/
int draw = 1;
/* 0 = pouzivani ekvipnute zbrane 1 = pouzivani draw knife           */


    ushort[] loot = new ushort[18];

    loot[0] = 0x0E76; //bag
    loot[1] = 0x0F87; //eon  
    loot[2] = 0x0F84; //garlic 
    loot[3] = 0x0F7A; //blackpearls
    loot[4] = 0x0F8C; //sulforous ash 
    loot[5] = 0x0F85; //Ginseng
    loot[6] = 0x0F86; //mandrake root 
    loot[7] = 0x0F88; //Nightshade 
    loot[8] = 0x0F7B; //Blood Moss 
    loot[9] = 0x0F8D; //spider silk 
    loot[10] = 0x0F7D; //Blood Vial 
    loot[11] = 0x0F83; //Execution's Cap
    loot[12] = 0x0F79; //Blackmoor
    loot[13] = 0x0F89; //Obsidian        
    loot[14] = 0x0F7E; //Bone
    loot[15] = 0x0F7F; //Brimstone 
    loot[16] = 0x0F7C; //BloodSpawn
    loot[17] = 0x1BD1; //peri

    for (int i = 0; i < loot.Length; i++)
        {
            foreach (UOItem item in from q in World.Ground where q.Distance < 5 && q.Graphic == loot[i] select q)
            {
                item.Move(0, World.Player.Backpack);
                UO.Wait(500);
                UO.Print("Lootim ze zeme!");
            }
        }


    UOItem lootCorpse = World.GetItem(Aliases.LastObject);
    if (lootCorpse.Graphic == 0x2006)
    {

        lootCorpse.Use();
        if (((draw ==1) && (World.Player.Backpack.AllItems.Count(0x10E4, 0x0000) > 0)) || (World.Player.Layers[Layer.RightHand].Exist))
        {
            if ((lootCorpse.Amount != 400) && (lootCorpse.Amount != 401))
            {
                if (draw == 0)
                {
                    UO.WaitTargetObject(lootCorpse);
                    UO.UseObject(World.Player.Layers[Layer.RightHand].Serial);
                }
                else
                {
                    UO.WaitTargetObject(lootCorpse);
                    UO.UseType(0x10E4);
                }
                UO.Wait(500);
            }
        }
        else
            UO.Print("Neni cim rezat, pouze lootim...");

        for (int i = 0; i < loot.Length; i++)
        {
            if (lootCorpse.Items.Count(loot[i]) > 0)
            {
                UO.MoveItem(lootCorpse.Items.FindType(loot[i]), 0, World.Player.Backpack);
                UO.Wait(500);
            }
        }
        UO.Print("Loot finished.");
    }
}

Re: Loot + Rezani nonhumanu

Napsal: 14.08.2010 22:07:47
od Wlern
A slo by udelat script, ktery by loot vcetne regu a veci, co padnou prendaval do predem stanoveneho pytliku ? Ja se v Phoene nevyznam a netroufnu si na tento jazyk.

Re: Loot + Rezani nonhumanu

Napsal: 14.08.2010 22:47:29
od Wizzy
lootis loot pytel, z neho to pada do baglu coz je server vec
leda udelat skript co by ti uklizel vsechno z backpacku do baglu no

Re: Loot + Rezani nonhumanu

Napsal: 18.08.2010 02:19:08
od Wizzy
updated

nyni moznost nastaveni rezani draw knifem

Re: Loot + Rezani nonhumanu

Napsal: 31.08.2010 21:03:27
od erunno
Dokazal bys to nascriptit Wizzi? Nebo neznas nekoho kdo by to uměl?

Re: Loot + Rezani nonhumanu

Napsal: 11.02.2011 10:48:56
od Marcus De Raven
Wizzy mohl bys prosím updatovat ten sc pro Phoenix 0.7.3. a připsat tomu i hlavičku?

Díky.

Re: Loot + Rezani nonhumanu

Napsal: 28.03.2011 18:37:44
od Wizzy
7.3 nepouzivam

ale hlavicka

Kód: Vybrat vše

using System;
using System.Collections.Generic;
using System.Text;
using Phoenix;
using System.Linq;
using Phoenix.WorldData;


namespace Phoenix.Scripts
{

    public class looting
    {

skript sem

    }
}

Re: Loot + Rezani nonhumanu

Napsal: 15.12.2016 09:31:18
od Depka
Cau wizzy, nemas tam script co loti pouze ze zeme vse okolo tebe ?
diky :)