Spider web
Datum: 22/11/2014 23:45:26
Staženo: 491x
Popis:
POmocník !!!
Příkazy:
- ,exec spider_web
- ,exec spider_web1
Kód:
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Phoenix;
using Phoenix.WorldData;
namespace Phoenix.Scripts
{
public class Spider_web
{
[Executable]
public void spider_web()
{
int info = 0;
foreach (UOItem web in from c in World.Ground where c.Distance <=1 && (c.Graphic == 0x0EE1 || c.Graphic == 0x0EE2 || c.Graphic == 0x0EE3 || c.Graphic == 0x0EE4 || c.Graphic == 0x0EE5 || c.Graphic == 0x0EE6 || c.Graphic == 0x0EE7 || c.Graphic == 0x0EE8) select c)
{
web.Use();
UO.Print(0x0120, "Spider web byl znicen");
info++;
}
if(info == 0)
{
UO.Print(0x05C4, "V okoli neni Spider web");
}
}
[Executable]
public void spider_web1()
{
while(true)
{
if(!World.Player.Dead)
{
int info = 0;
foreach (UOItem web in from c in World.Ground where c.Distance <= 1 && (c.Graphic == 0x0EE1 || c.Graphic == 0x0EE2 || c.Graphic == 0x0EE3 || c.Graphic == 0x0EE4 || c.Graphic == 0x0EE5 || c.Graphic == 0x0EE6 || c.Graphic == 0x0EE7 || c.Graphic == 0x0EE8) select c)
{
web.Use();
UO.Print(0x0120, "Spider web byl znicen");
info++;
}
if (info == 0)
{
UO.Print(0x05C4, "V okoli neni Spider web");
}
UO.Wait(500);
}
}
}
}
}

