Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 02-07-2004, 12:09 PM   #1 (permalink)
 
Join Date: Sep 2003
Location: Gatineau Quebec
Age: 19
Posts: 419
Send a message via ICQ to JonnyBrav Send a message via MSN to JonnyBrav
Default Rezing with full life & mana?

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.
JonnyBrav is offline   Reply With Quote
Old 02-07-2004, 12:58 PM   #2 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

look in the resurrectgump.cs
TheOutkastDev is offline   Reply With Quote
Old 02-07-2004, 02:18 PM   #3 (permalink)
 
Join Date: Sep 2003
Location: Gatineau Quebec
Age: 19
Posts: 419
Send a message via ICQ to JonnyBrav Send a message via MSN to JonnyBrav
Default

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]
JonnyBrav is offline   Reply With Quote
Old 02-07-2004, 02:47 PM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Keep trying.
Phantom is offline   Reply With Quote
Old 02-07-2004, 02:55 PM   #5 (permalink)
 
Join Date: Sep 2003
Location: Gatineau Quebec
Age: 19
Posts: 419
Send a message via ICQ to JonnyBrav Send a message via MSN to JonnyBrav
Default

JonnyBrav is offline   Reply With Quote
Old 02-07-2004, 03:12 PM   #6 (permalink)
 
Join Date: Jan 2003
Posts: 314
Send a message via ICQ to juani Send a message via AIM to juani Send a message via MSN to juani
Default

lokmthe resurrect gate too, and i dont think ur looking for onequip, i think u want ondoubleclick
juani is offline   Reply With Quote
Old 02-07-2004, 03:18 PM   #7 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

just modify the Resurrect() method in PlayerMobile if you want them to ALWAYS res with all health and mana (I stretch the notion of all)
XxSP1DERxX is offline   Reply With Quote
Old 02-07-2004, 04:42 PM   #8 (permalink)
 
Join Date: Sep 2003
Location: Gatineau Quebec
Age: 19
Posts: 419
Send a message via ICQ to JonnyBrav Send a message via MSN to JonnyBrav
Default

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..
JonnyBrav is offline   Reply With Quote
Old 02-07-2004, 05:39 PM   #9 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

[code:1]Mana = ManaMax;
Hits = HitsMax;[/code:1]
XxSP1DERxX is offline   Reply With Quote
Old 02-07-2004, 07:14 PM   #10 (permalink)
 
Join Date: Sep 2003
Location: Gatineau Quebec
Age: 19
Posts: 419
Send a message via ICQ to JonnyBrav Send a message via MSN to JonnyBrav
Default

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?
JonnyBrav is offline   Reply With Quote
Old 02-07-2004, 07:34 PM   #11 (permalink)
I R TEH POSTING!!1!eleven
 
Join Date: Jan 2004
Posts: 1,617
Default

Try resurrecting first, and then assigning.

Cheers,
Ignacio
Ignacio Vazquez-Abrams is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5