Author Topic: Simple Healing script [v0.0.1] RunUO RP shard Requiem  (Read 3838 times)

0 Members and 1 Guest are viewing this topic.

Offline uofreakTopic starter

  • Restricted
  • **
  • Posts: 12
  • Activity:
    0%
  • Reputation Power: 1
  • uofreak has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Simple Healing script [v0.0.1] RunUO RP shard Requiem
« on: November 16, 2018, 07:48:40 AM »
0
Works great on this shard.
For version 1 this is great, for a future version I may integrate
the specific journal messages. I still don't know how to detect recent messages,
and not old messages in journal.
   InJournalBetweenTimes
^ function seems confusing still... how do I calculate recent times and feed them into the arguments?

Quote
Program SimpleHeal;
Const mes = 'Char is hurt!';
mespos = 'Char is poisoned';

begin
  WHILE ( Connected() = True ) DO
  BEGIN
    IF (( ( Poisoned() = True ) OR ( HP < MaxHP ) ) AND ( Hidden() = False ) ) THEN
    BEGIN   
    addtosystemjournal (Mes + mespos);   
    UOSay('[aid');    // Requiem heal system
    WaitTargetSelf();  // Waits for target, THEN targets self.   
    Wait(10500);  // temporary time interval till healing is done
    END;
    Wait(50);
  END;
end.

Post Merge: November 16, 2018, 07:49:20 AM
Oh btw based on Crome969  's old script, thanks for the template! :)

Post Merge: November 16, 2018, 07:55:40 AM
Added a case/placeholder for what to do IF poisoned.
Not sure yet on this shard, will figure out.
Guessing probably some potion, so then have to do - find if there's itemtype in pack...


Quote
Program SimpleHeal;
Const mes = 'Char is hurt!';
mespos = 'Char is poisoned';

begin
  WHILE ( Connected() = True ) DO
  BEGIN
    IF (( ( Poisoned() = True ) OR ( HP < MaxHP ) ) AND ( Hidden() = False ) ) THEN
    BEGIN   
    addtosystemjournal (Mes);
    if (Poisoned) THEN       
    BEGIN
    addtosystemjournal (mespos);
    END;
    UOSay('[aid');    // Requiem heal system
    WaitTargetSelf();  // Waits for target, THEN targets self.   
    Wait(10500);  // temporary time interval till healing is done
    END;
    Wait(50);
  END;
end.
« Last Edit: November 16, 2018, 07:55:40 AM by uofreak »

Tags: