![]() |
3 flags question - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: 3 flags question (/Thread-3-flags-question) Pages: 1 2 |
3 flags question - daedelus - 08-31-2012 04:15 AM Need to know what the statf of these three If pk if criminal (statf_iscriminal?) or whats? if order/chaos Thanks RE: 3 flags question - RanXerox - 08-31-2012 04:54 AM What is your definition of "pk"? You can see if someone is a permanent criminal (i.e. a criminal to everyone) by checking flags for "statf_criminal"... but it is also possible to be a criminal only to your victim (or a witness) and not everyone. That kind of criminal information is stored in a memory item on the victim (or the witness) and can be identified by a memory flag of type "memory_sawcrime". I think you can determine a character alignment (order, neutral, or chaos) using the ALIGN function... for example: Code: if <SRC.ALIGN>==1 ...although that might be a property of the guildstone, not the character... I can't recall. If it is a property of the guild or town stone... you can find the stone and check it by looking for a "memory_guild" and/or "memory_town" item on the character and following the LINK. RE: 3 flags question - daedelus - 08-31-2012 05:00 AM PK= Assasin 3 kills or more but i think that i can check the status with kills. Ahh i understand, thanks RanXerox!. Thanks. RE: 3 flags question - daedelus - 09-01-2012 03:50 AM Code: //CHEQUEO SI SOS CRIMI, PK O TENES KARMA NEGATIVA, TE HACES CRIMI. Code: IF (<SRC.TARG> == (<SRC>) // if cure myself don't applied de condition, i think necesary. I not check the second code, but the script is ok? or Do you suggest me to do another something? The first one code works. Thanks RE: 3 flags question - RanXerox - 09-01-2012 01:50 PM Difficult to say whether it is right or wrong... but I would caution against directly setting SRC.CRIMINAL because it is permanent and very negative to the individual because they will be unable to enter any guarded town without running the risk of guards killing them. RE: 3 flags question - daedelus - 09-03-2012 09:50 PM (09-01-2012 01:50 PM)RanXerox Wrote: Difficult to say whether it is right or wrong... but I would caution against directly setting SRC.CRIMINAL because it is permanent and very negative to the individual because they will be unable to enter any guarded town without running the risk of guards killing them. Code: //CHEQUEO SI SOS ORDER O CHAOS Y LO CURAS AL ENEMIGO TE HACES CRIMI This works. Exactly, if you cure with bandages an enemy you are a criminal. RE: 3 flags question - RanXerox - 09-04-2012 03:18 AM My point is that using that solution, you are a criminal forever... Heal an opposing guild member, now you are a criminal, quit your guild and join theirs... still criminal. When you are a criminal, you can not enter any guarded town without risking death. RE: 3 flags question - Extreme - 09-04-2012 04:53 AM His 'condition' is wrong. ((<UID.<SRC.GUILD>.ALIGN> == 1) && (<UID.<SRC.GUILD>.ALIGN> == 2)) This never come true. RE: 3 flags question - Mordaunt - 09-05-2012 01:32 AM Indeed How can the same person be alignment 1 & 2? Also... it would be far shorter to run the check to ask if the target was of the same alignment as the source RE: 3 flags question - daedelus - 09-05-2012 10:08 PM I saw the errors, i think.: Code: //CHEQUEO SI SOS ORDER O CHAOS Y LO CURAS AL ENEMIGO TE HACES CRIMI RanXeroX Wrote:My point is that using that solution, you are a criminal forever... Heal an opposing guild member, now you are a criminal, quit your guild and join theirs... still criminal. When you are a criminal, you can not enter any guarded town without risking death. The criminal timer is 5 by sphere.ini , after that time, criminal flaggs disappear. I like this. |