Author Topic: Differ Mobs from Items via type  (Read 3116 times)

0 Members and 1 Guest are viewing this topic.

Offline DjegoTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • Djego has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Differ Mobs from Items via type
« on: January 09, 2009, 04:13:36 AM »
0
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

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Differ Mobs from Items via type
« Reply #1 on: January 09, 2009, 06:55:40 AM »
0
Look up comand STR

think you would need 

STR LEN #findid
IF #strres = bla bla
   ; do bla bla
if #strres  = ??
   ; do ??
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline DjegoTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • Djego has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Differ Mobs from Items via type
« Reply #2 on: January 09, 2009, 03:27:59 PM »
0
Ahhh, thats exactly what i looked for... always something new to discover from euo ;) thx very much!

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Differ Mobs from Items via type
« Reply #3 on: January 10, 2009, 12:23:56 AM »
0
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"
}

Offline DjegoTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • Djego has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Differ Mobs from Items via type
« Reply #4 on: January 10, 2009, 06:13:02 AM »
0
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 ;)

Tags: