Jump to content
  • 0

Palette Restriction


Question

Posted

Maybe its imposible this script but here's my request.

I have some pallette color example (ccolor number 55) and hair (haircolor number 51).

If this player have this both color and haircolor in certain map (ex. morocc) activate @killable automatically to him and if this player is another map this not activates.

8 answers to this question

Recommended Posts

Posted

this should work:

*getlook(<type>)

This function will return the number for the current character look value
specified by type. See 'setlook' for valid look types.

This can be used to make a certain script behave differently for characters
dressed in a specific color

Posted (edited)

example

morocc mapflag loadevent

- script restrict -1,{

OnPCLoadMapEvent:
if(strcharinfo(3) == "morocc" &&
getlook(6) == 51 && /* Hcolor */
getlook(7) == 50) /* Ccolor */
atcommand "@killable";
end;
}

But if you warp out of morocc, @killable will be enabled...

Edited by Lilith
Posted (edited)

src/map/clif.c

replace

if(map[sd->bl.m].flag.loadevent) // Lance

to

/*if(map[sd->bl.m].flag.loadevent) // Lance*/

recompile...

But server load will very high!!

Edited by Lilith
Posted (edited)

This SRC (/*if(map[sd->bl.m].flag.loadevent) // Lance*/) is going to disable all OnPCLoadMapEvent in the another scripts right?

First thank you for this code and this is im searching for but:

if(strcharinfo(3) == "morocc" &&

getlook(6) == 51 && /* Hcolor */

getlook(7) == 50) /* Ccolor */

atcommand "@killable";

Following script what im searching for is, if the player are killed or teleported out of morroc how can i disable the @killable? Without touching SRC

Edited by dize11
Posted

If this script is okay?

- script restrict -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == "morocc" && getlook(6) == 264 && getlook(7) == 554 ){
mes "You are now killable on enemy map.";
atcommand "@killable";
close;
}
end;
}

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...