Official ScriptUO EasyUO Scripts > Scripting Chat
Differ Mobs from Items via type
(1/1)
Djego:
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
Endless Night:
Look up comand STR
think you would need
STR LEN #findid
IF #strres = bla bla
; do bla bla
if #strres = ??
; do ??
Djego:
Ahhh, thats exactly what i looked for... always something new to discover from euo ;) thx very much!
Crome969:
--- Quote from: 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!
--- End quote ---
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"
}
Djego:
--- Quote from: Crome969 on January 10, 2009, 12:23:56 AM ---
--- Quote from: 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!
--- End quote ---
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"
}
--- End quote ---
Thats exactly what I did ;)
Navigation
[0] Message Index
Go to full version