Author Topic: Modding A script  (Read 2232 times)

0 Members and 1 Guest are viewing this topic.

Offline CuemifTopic starter

  • Jr. Member
  • **
  • Posts: 41
  • Activity:
    0%
  • Reputation Power: 1
  • Cuemif has no influence.
  • Respect: +5
  • Referrals: 1
    • View Profile
Modding A script
« on: October 04, 2010, 08:16:29 PM »
0
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
« Last Edit: October 04, 2010, 08:43:33 PM by Cuemif »

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Modding A script
« Reply #1 on: October 04, 2010, 08:33:38 PM »
0
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.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline CuemifTopic starter

  • Jr. Member
  • **
  • Posts: 41
  • Activity:
    0%
  • Reputation Power: 1
  • Cuemif has no influence.
  • Respect: +5
  • Referrals: 1
    • View Profile
Re: Modding A script
« Reply #2 on: October 04, 2010, 08:38:49 PM »
0
Nope this did not work :( I tired it before I posted and I just tired again  still no good

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13305
  • Activity:
    0.8%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Modding A script
« Reply #3 on: October 04, 2010, 08:40:11 PM »
0
Moved to a more appropriate sub-forum.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Modding A script
« Reply #4 on: October 04, 2010, 08:48:50 PM »
0
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.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline CuemifTopic starter

  • Jr. Member
  • **
  • Posts: 41
  • Activity:
    0%
  • Reputation Power: 1
  • Cuemif has no influence.
  • Respect: +5
  • Referrals: 1
    • View Profile
Re: Modding A script
« Reply #5 on: October 04, 2010, 08:55:12 PM »
0
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

Tags: