Jump to content
  • 0

Palette Restriction


dize11

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

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.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

Can you make a example script for this? Please

Anyone?

Hello?

Edited by dize11
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

if the player are warped out of this map how can i disable this @killable? HOW CANT I CHANGE OnPCLoadMapEvent to --> LoadOut (example)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  93
  • Reputation:   0
  • Joined:  01/30/12
  • Last Seen:  

that script is correct?

Link to comment
Share on other sites

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.

×
×
  • Create New...