Jump to content

Question

9 answers to this question

Recommended Posts

Posted
-    script    MapDisguise    -1,{
OnInit:
   setmapflag "<map_name>",mf_loadevent;
   end;
OnPCLoadMapEvent:
   disguise <monster>;
   while (strcharinfo(3) == "<map_name>")
    sleep2 5000;
   undisguise;
   end;
}

Posted

-	script	MapDisguise	-1,{
OnInit:
setmapflag "<map_name>",mf_loadevent;
end;
OnPCLoadMapEvent:
disguise <monster>;
while (strcharinfo(3) == "<map_name>")
	sleep2 5000;
undisguise;
end;
}

@Euphy

this script will undisguise the player when he/she left the map?

or it will undisguise the player after this sleep2 5000; even if he/she still on the map...

Posted

Please actually try the script before asking. x.x

Yes, it will check every 5 seconds to see if the player is still on the map (strcharinfo(3) == "map name"), and if not, undisguise the player and end the script.

Posted (edited)

Okei sorry Euphy!

i just finished trying your script and it works!!

Thanks alot!

Thanks to you...

oops i forgot... what if i want to to activate also fakename? i will put like this

- script MapDisguise -1,{

OnInit:

setmapflag "<map_name>",mf_loadevent;

end;

OnPCLoadMapEvent:

disguise <monster>;

fakename <monster>;

while (strcharinfo(3) == "<map_name>")

sleep2 5000;

undisguise;

fakename;

end;

}

is this correct?

i try it and got error..XD

im really noob in scripting..

Edited by arnie2302
Posted

You would have to use

*atcommand "<command line>";

This command will run the given command line exactly as if it was typed in from
the keyboard by the player connected to the invoking character, and that
character belonged to an account which had GM level 99.

// This will ask the invoker for a character name and then use the '@nuke'
// GM command on them, killing them mercilessly.
input @player$;
atcommand "@nuke "+@player$;

This command has a lot of good uses, I am sure you can have some fun with this
one.

fakename is not a script command.

Posted

Thank you Euphy & to you Arcencial...

is this correct?

- script MapDisguise -1,{

OnInit:

setmapflag "<map>",mf_loadevent;

end;

OnPCLoadMapEvent:

disguise <mobID/Name>;

atcommand "@fakename Name";

while (strcharinfo(3) == "<map>")

sleep2 5000;

undisguise;

atcommand "@fakename";

end;

}

tried it and it works!

but some times this message shows : You must enter a name @fakename failed..

and when i login to the server OnPCLoadMapEvent: always run..

is there a fix for this?

thanks...

why @disguise/disguise is not working on Pally and LK w/ Peco Peco on...

can you help me how to make this work?

Posted

You can't disguise while you're mounting anything. Add checks beforehand to delete the mounts, for example:

if (ismounting()) atcommand "@newmount";
else if (checkriding()) atcommand "@mount";

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...