RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

A call to Runuo Users!!!!

Weazel

Sorceror
A call to Runuo Users!!!!

Anyone that has created your own scripts new items, npcs whatever please share the more we share the faster we have a nice complete product =)
 
K

Krazy_zack

Guest
More is beter!

I'll be sure to contribute as soon as I get the language down...
 

Furio

Wanderer
Uhmmm I've a low knowledge of C# (and English :D )... but with the reference and reading the other example... I've done this...

But: I don't know how to raise the skill (I've tryed to use .Value props... but it is a props so it's read only..), I've tryed to get other props but uhmm I've failed... :(

So... is there a complete references to props, method, ecc..?

Here the script (the messages are in italian ^^):
[code:1]
using System;
using Server.Targeting;
using Server.Items;

namespace Server.SkillHandlers
{
public class Begging
{
public static void Initialize()
{
SkillInfo.Table[6].Callback = new SkillUseCallback( OnUse );
}
public static TimeSpan OnUse( Mobile m )
{
m.Target = new Begging.BeggingTarget( m );
m.RevealingAction();

m.SendMessage( "A chi vuoi chiedere la carita'?" );

return TimeSpan.FromSeconds( 10.0 );
}
private class BeggingTarget : Target
{
private Mobile m_Begger;

public BeggingTarget( Mobile begger ) : base ( 1, false, TargetFlags.None )
{
m_Begger = begger;
}

protected override void OnTarget( Mobile from, object targeted )
{
if ( targeted is Mobile )
{
Mobile targ = (Mobile)targeted;

Container pack = m_Begger.Backpack;

int begMod = (int) (m_Begger.Skills[SkillName.Begging].Value * 100);
int begStr = targ.Str; // I've chosen a random prop
int iGold = (int) ((begMod / begStr) + 1);

if (begMod > begStr)
{
pack.DropItem( new Gold( iGold ) );
m_Begger.SendMessage("Hai convinto {0} a darti dei soldi", targ.Name);
}
else
{
m_Begger.SendMessage("{0} si rifiuta di darti dei soldi", targ.Name);
}
}
else
{
m_Begger.SendMessage( "Solo su esseri viventi" );
}
}
}
}
}
[/code:1]
 

Zippy

Razor Creator
About the italian messages....

Download the Client localization viewer from the downloads section and see if you can find these messages in the client localization files...

Then, they will be displayed in whatever language the user is using :)
 

SickLab

Wanderer
And i would suggest you to work on another script, because the begging skill script is actualy terminated in the RunUO Beta 1 Suggestion forum :)
 

Furio

Wanderer
SickLab said:
And i would suggest you to work on another script, because the begging skill script is actualy terminated in the RunUO Beta 1 Suggestion forum :)

Eh eh... I'm only testing myself... I'll work on another skill ^^
 

Ryan

RunUO Founder
Staff member
Keep up the great work Furio!!!!

We love it when users take initiative!
 

Etalicus

Sorceror
Message
Wasted Posted: Sat Sep 28, 2002 1:42 am Post subject:

--------------------------------------------------------------------------------

Is RunUo available????


:evil:
um where you been :) yep ready for download
:twisted:
 
W

Wasted

Guest
dae nightzim! hehe

This was portuguese =P

BTW,is there a localization file for PT_BR? I could do it

Yeap, i was away from ruo this week =p

Any guide showing how to script in RUO/c#"?
 
Top