ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Djazlizh on November 15, 2013, 01:12:48 AM

Title: I can't locate your archery weapon
Post by: Djazlizh on November 15, 2013, 01:12:48 AM
I got this part of a script I try to use, but it gives me an error and stops, it says  : I can't locate your archery weapon
I play on a freeshard called ABCUO, dont know if it has anything to do with that ?


Script part below :


Code: [Select]
sub SetupWeapon
  finditem %1 C_ , #CHARID
  if #FINDKIND = -1
  {
    finditem %1 C_ , #BACKPACKID
    if #FINDKIND <> -1
    {
      if #FINDTYPE in PPO
        set #LHANDID %1
      else
        set #RHANDID %1
    }
    else
    {
      display ok I can't locate your archery weapon
      stop
    }
  }
  else
  {
    gosub DisarmWeapon
  }
  if #FINDTYPE in %crossbowtypes
  {
    menu Font BGColor BtnFace
    menu delete EUOLabel32
    menu Text EUOLabel32 176 196 Bolts
    set %ammotype LNK ; LNK - crossbow bolts
  }
  else
  {
    menu Font BGColor BtnFace
    menu delete EUOLabel32
    menu Text EUOLabel32 176 196 Arrows
  }
return

Post Merge: November 15, 2013, 03:21:37 AM
I found a work around and made it work now.... thanks :-)
Title: Re: I can't locate your archery weapon
Post by: Endless Night on November 15, 2013, 05:40:47 AM
Editted you post and added code tags... glad you  figured it out.