|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
I want to make a command and/or stone/ankh that when you dclick on it, it rez u with full life & Mana. It would be usefull for events. plz help. I know you guys are gonna say no request, but I'm not requesting the script, just asking help for what to put in
public override bool OnEquip() { } Would somebody help me? I'm sure it would be usefull for more then one person. |
|
|
|
|
|
|
#3 (permalink) |
|
Is it there ? Not sure..
[code:1] if ( m_Healer != null && from != m_Healer ) { VirtueLevel level = VirtueHelper.GetLevel( m_Healer, VirtueName.Compassion ); switch ( level ) { case VirtueLevel.Seeker: from.Hits = AOS.Scale( from.HitsMax, 20 ); break; case VirtueLevel.Follower: from.Hits = AOS.Scale( from.HitsMax, 40 ); break; case VirtueLevel.Knight: from.Hits = AOS.Scale( from.HitsMax, 80 ); break; } }[/code:1] |
|
|
|
|
|
|
#8 (permalink) |
|
Ok, then its here
[code:1] public override void Resurrect() { bool wasAlive = this.Alive; base.Resurrect(); if ( this.Alive && !wasAlive ) { Item robe = new Robe(); if ( !EquipItem( robe ) ) robe.Delete(); } }[/code:1] But what am I suposse to do? I can't figure it out.. |
|
|
|
|
|
|
#10 (permalink) |
|
Thats what I've done so far :
[code:1] public override void Resurrect() { bool wasAlive = this.Alive; Mana = ManaMax; Hits = HitsMax; base.Resurrect(); if ( this.Alive && !wasAlive ) { Item robe = new Robe(); if ( !EquipItem( robe ) ) robe.Delete(); } [/code:1] And its not working.. What have I done wrong? |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|