| Yoko http://forum.yoko.com.ua/ |
|
| Guild ress http://forum.yoko.com.ua/viewtopic.php?f=20&t=17184 |
Page 1 of 1 |
| Author: | Folka [ 2013-02-01 02:11:22 ] |
| Post subject: | Guild ress |
Hello, I'm trying to make a script that would check journal for constant messages of "DEAD: Guild Player Name was killed in" and then would try to auto res the player(by ID) and if succeded, write the name of the player and that he is ressurected in guild chat. I want this to be used in all guild so closest people would ressurect. But I seem to get problems. Here is my script so far. Code: Sub ResGuild() |
|
| Author: | Nmy [ 2013-02-01 10:34:11 ] |
| Post subject: | Re: Guild ress |
This needs testing whether the journal returns player serial or not, im not sure. First of all show us the printout of [,showjournal 10] when the message appears And Code: uo.print(UO.JournalSerial(UO.InJournal("DEAD: ")-1))
|
|
| Author: | Folka [ 2013-02-01 12:31:28 ] |
| Post subject: | Re: Guild ress |
Nmy wrote: This needs testing whether the journal returns player serial or not, im not sure. First of all show us the printout of [,showjournal 10] when the message appears And Code: uo.print(UO.JournalSerial(UO.InJournal("DEAD: ")-1))It detects the player, and resses, but it doesn't stop healing even when the person is full HP. Edit: Now I used this: Code: Sub ResGuild() Got this(first time I was next to the dead player, it ressed, but no .gsay. Second time I was far away. It didn't repeat itself) :
|
|
| Author: | Nmy [ 2013-02-01 16:18:17 ] |
| Post subject: | Re: Guild ress |
I would not recommend using such autoscript. it's better if you run to your teammate, drag his hp bar and execute: Code: uo.waittargetobject('laststatus')
|
|
| Author: | Folka [ 2013-02-01 16:31:06 ] |
| Post subject: | Re: Guild ress |
We were using your recommended method for a while, I thought I could improve our ressing with this auto script. The problem is that it just doesn't read the status bar properly, maybye I should add variables of min/max hp? I really want to make this work |
|
| Author: | Nmy [ 2013-02-01 16:57:54 ] |
| Post subject: | Re: Guild ress |
Code: uo.print(str(uo.GetHp('0x0001F906')))
|
|
| Author: | Nmy [ 2013-02-03 11:51:18 ] |
| Post subject: | Re: Guild ress |
or you can just use bandage count as a true/false flag before/after resurrection |
|
| Author: | Folka [ 2013-02-03 12:01:43 ] |
| Post subject: | Re: Guild ress |
I found a script here: viewtopic.php?f=20&t=7187&start=160#p89847 but don't understand why this Code: If Char<>0 Then in the comment viewtopic.php?f=20&t=7187&start=160#p89848 was changed to Code: If Char<>0 Then Why would there be a cast for both char and self? And bandage use for self. This is a friend ress script ^^ |
|
| Author: | Nmy [ 2013-02-03 15:07:20 ] |
| Post subject: | Re: Guild ress |
Code: If Char<>0 Then That doesn't look right. Maybe it's resurrection magic and bandages, both at the same time. or resurrection and heal. the second cast might be self buff |
|
| Author: | DracoX [ 2013-04-01 15:42:14 ] |
| Post subject: | Re: Guild ress |
Why are you using 'laststatus' when you can use bandage on the player's id! I would go for: Code: While UO.GetHP('Player ID')<UO.GetMaxHP('PlayerID') And UO.Count('0x0E21')>0 And UO.GetDistance('Player ID')<=??? ; change ??? for the maximum healing distance! And to stop healing, just get away from the player ;) ;
|
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|