ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Djego on January 09, 2009, 04:13:36 AM

Title: Differ Mobs from Items via type
Post by: Djego on January 09, 2009, 04:13:36 AM
Hi @ all,

I need to differ from mobs and items via finditem. But the only thing in which they differ is the length of the type they have... Is there a way to get the string length of the #findid variable? I really don't want to note every single mobile type...

thx 4 help
Title: Re: Differ Mobs from Items via type
Post by: Endless Night on January 09, 2009, 06:55:40 AM
Look up comand STR

think you would need 

STR LEN #findid
IF #strres = bla bla
   ; do bla bla
if #strres  = ??
   ; do ??
Title: Re: Differ Mobs from Items via type
Post by: Djego on January 09, 2009, 03:27:59 PM
Ahhh, thats exactly what i looked for... always something new to discover from euo ;) thx very much!
Title: Re: Differ Mobs from Items via type
Post by: Crome969 on January 10, 2009, 12:23:56 AM
Ahhh, thats exactly what i looked for... always something new to discover from euo ;) thx very much!
with this Method you can Easy Index your Id`s
Mobiles have 1 or 2 Letters (npcs,Spawn)
Items has 3 Letters
i Think its enough if you say
if #strres > 2
{
ignoreitem
}
Else
{
"Do your Attack"
}
Title: Re: Differ Mobs from Items via type
Post by: Djego on January 10, 2009, 06:13:02 AM
Ahhh, thats exactly what i looked for... always something new to discover from euo ;) thx very much!
with this Method you can Easy Index your Id`s
Mobiles have 1 or 2 Letters (npcs,Spawn)
Items has 3 Letters
i Think its enough if you say
if #strres > 2
{
ignoreitem
}
Else
{
"Do your Attack"
}

Thats exactly what I did ;)