ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Cuemif on October 04, 2010, 08:16:29 PM

Title: Modding A script
Post by: Cuemif on October 04, 2010, 08:16:29 PM
Ok here is what i am trying to do . On my shards there have blessed Reg/Bandage bags and Blessed Potion Bags. This script here will not find the bands or pots in the bags unless the bags are open there for the scripts shuts off heal/cure by potions or bands. I have tired everything I can think of and it just does not work . If someone could PLEASE help me I would be greatly thankful

Bands Bag ID is VACTRMD
Potion Bag ID is BOPVKMD

Cerveza - We don't post up others work, we link to it.
Sorry boss
http://www.easyuo.com/forum/viewtopic.php?p=13869#13869
Title: Re: Modding A script
Post by: Cerveza on October 04, 2010, 08:33:38 PM
This is in his script
Code: [Select]
sub aids
finditem ZLF C

That's the only reference to bandages. You might try
Code: [Select]
sub aids
finditem ZLF C_ , %bands_bag_ID

And of course you have to set that somewhere at the beginning of the script
Code: [Select]
set %bands_bag_ID VACTRMD
See if that works.
Title: Re: Modding A script
Post by: Cuemif on October 04, 2010, 08:38:49 PM
Nope this did not work :( I tired it before I posted and I just tired again  still no good
Title: Re: Modding A script
Post by: TrailMyx on October 04, 2010, 08:40:11 PM
Moved to a more appropriate sub-forum.
Title: Re: Modding A script
Post by: Cerveza on October 04, 2010, 08:48:50 PM
Yep, not finding it, so you have to do a count then open the bag if #findCnt < 1 (or #findCnt = 0)

so....
Code: [Select]
sub aids
finditem ZLF C_ , %bands_bag_ID
if #findCnt < 1
  {
    set #lobjectID %bands_bag_ID
    event macro 17
    wait 5
    finditem ZLF C_ , %bands_bag_ID
    if #findCnt < 1
    {
      display ok No bandages, halting script
      halt
    }
  }

Try that. I don't do freeshards, I don't do blessed bags. G'luk.
Title: Re: Modding A script
Post by: Cuemif on October 04, 2010, 08:55:12 PM
BING good job ty SOOOO much now I just need to get it to work with pots and I am set TY TY TY TY