Staff Hiding Stone?

Post your Custom Scripts or Packages.

Moderator: POL Developer

Post Reply
Zaksmeer
Grandmaster Poster
Posts: 184
Joined: Mon Nov 19, 2012 8:32 pm

Staff Hiding Stone?

Post by Zaksmeer » Sun Mar 02, 2014 12:33 am

Is there a hiding stone like runuo has? But for pol?
And where can I find it? Been looking on the forums, but when I enter "staff", "Hiding", or "stone", well, you can imagine how many entries I get.
>>>> POL Newbie Looking To Learn <<<<

User avatar
CWO
POL Expert
Posts: 1130
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: Staff Hiding Stone?

Post by CWO » Sun Mar 02, 2014 4:28 am

What type of functionality are you looking for? I've never used RunUO so I don't know what a hiding stone does. Are you trying to make staff members invisible to players? That's typically a command .conceal or .concealme depending on your scriptbase.

Zaksmeer
Grandmaster Poster
Posts: 184
Joined: Mon Nov 19, 2012 8:32 pm

Re: Staff Hiding Stone?

Post by Zaksmeer » Sun Mar 02, 2014 2:08 pm

Basically it was a stone that you double clicked on and it would turn you invisible with sound and visual effects. Those you could modify to a limited selection. It was a good thing, I liked it.
>>>> POL Newbie Looking To Learn <<<<

Zaksmeer
Grandmaster Poster
Posts: 184
Joined: Mon Nov 19, 2012 8:32 pm

Re: Staff Hiding Stone?

Post by Zaksmeer » Sun Mar 02, 2014 3:13 pm

Well, .conceal and .concealme do not work. Going to have to find them.

I have downloaded the distro, and it says pol099, but when I run it, and get into the game, somewhere it says 097.
Just confusing for me.

But will have to find those commands somewhere.
>>>> POL Newbie Looking To Learn <<<<

qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm
Location: Poland
Contact:

Re: Staff Hiding Stone?

Post by qrak » Sun Mar 02, 2014 7:04 pm

Zaksmeer wrote:Basically it was a stone that you double clicked on and it would turn you invisible with sound and visual effects. Those you could modify to a limited selection. It was a good thing, I liked it.
Define hidingstone in itemdesc.cfg, make script and objtype for him, then write hidingstone.src, should look something like this

Code: Select all

use uo;

program hidingstone(who)
who.hidden := 1;
//PlaySoundEffect <- sound effect number
//PlayObjectCenteredEffect  <--object effect
endprogram
Look in uo.em how playsoundeffect & playobjectcenteredeffect works, remove comments "//", compile.
Shutdown();

User avatar
CWO
POL Expert
Posts: 1130
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: Staff Hiding Stone?

Post by CWO » Sun Mar 02, 2014 7:24 pm

It should be available to you. In the 099 distro, it's in pkg/commands/coun. As long as you're counselor or higher it should work. Did it compile? (is there a conceal.ecl file there?)

kebab
New User
Posts: 1
Joined: Mon Feb 17, 2014 6:06 am

Re: Staff Hiding Stone?

Post by kebab » Mon Mar 03, 2014 5:21 am

Zaksmeer wrote:Well, .conceal and .concealme do not work. Going to have to find them.

I have downloaded the distro, and it says pol099, but when I run it, and get into the game, somewhere it says 097.
Just confusing for me.

But will have to find those commands somewhere.
Try ".conceal me" with the space.

Zaksmeer
Grandmaster Poster
Posts: 184
Joined: Mon Nov 19, 2012 8:32 pm

Re: Staff Hiding Stone?

Post by Zaksmeer » Mon Mar 03, 2014 10:11 am

I have loaded some gm effects. I see in the files there have this line:
program textcmd_raiden1 ( staff)

What is the in-game command for me to use this?
>>>> POL Newbie Looking To Learn <<<<

Zaksmeer
Grandmaster Poster
Posts: 184
Joined: Mon Nov 19, 2012 8:32 pm

Re: Staff Hiding Stone?

Post by Zaksmeer » Mon Mar 03, 2014 4:56 pm

where do I find the uo.em information at?
>>>> POL Newbie Looking To Learn <<<<

RusseL
Forum Regular
Posts: 336
Joined: Fri Feb 20, 2009 8:30 pm

Re: Staff Hiding Stone?

Post by RusseL » Tue Mar 04, 2014 2:11 am

Zaksmeer wrote: What is the in-game command for me to use this?
name of file starting with '.'

Yukiko
Distro Developer
Posts: 2307
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Staff Hiding Stone?

Post by Yukiko » Sat Mar 08, 2014 2:16 am

Here are two commands that make you disappear with effects.

This one drops a stone on you and disappears your character.

Code: Select all

use uo;
use os;

include "include/client";
program textcmd_e( who )
  PlaySoundEffect(who, 0x231);
  PlayMovingEffectXYZ(who.x, who.y, who.z+100, who.x, who.y, who.z, 6002, 10, loop := 0, explode := 0, who.realm );
  sleepms(1300);
  PlaySoundEffect(who, 0x146);
  sleepms(180);
//	PlayObjectCenteredEffect(who , FX_SPARK_EFFECT , 7 , 0x10 );
	PlaySoundEffect(who,0x15b);
  PerformAction(who, 22);
  sleepms(1200);
  who.concealed := 1;
  sleepms(200);
  PlaySoundEffect(who, 0x246);
endprogram
This one produces a flame and conceals you if you are visible or makes you visible if you were concealed.

Code: Select all

use uo;
include "include/client";
program textcmd_e( who )
 	PlayObjectCenteredEffect(who, 0x3709, 0x0a, 0x1e );
	PlayObjectCenteredEffect(who, FX_SPARK_EFFECT, 7, 0x10 );
	PlaySoundEffect(who,0xf8);
        if (!who.concealed)
          who.concealed := 1;
        else
          who.concealed := 0;
        endif
endprogram
Place these in your ..\pkg\commands\gm directory and compile them.

The command usage is .d and .e
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Zaksmeer
Grandmaster Poster
Posts: 184
Joined: Mon Nov 19, 2012 8:32 pm

Re: Staff Hiding Stone?

Post by Zaksmeer » Sun Apr 13, 2014 5:48 pm

Hey Yukiko,

I added those scripts and used the commands .d .e, but they are not working.
Help.
>>>> POL Newbie Looking To Learn <<<<

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest