SphereCommunity
Incognito [GUILDTAG] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Incognito [GUILDTAG] (/Thread-Incognito-GUILDTAG)



Incognito [GUILDTAG] - Lazarus - 09-10-2012 02:47 PM

Hi!
I have a problem, i don't know why.

When you cast on you INCOGNITO you get the name [MAN] or [WOMAN] and then you get too the TAG of the GUILD like:

Man [SKE]

Woman [LENF]

Anyone knows why? i didn't change the spell or anything.
Using the default system of stones [guilds]

Thanks! Smile

oh, a simple question:
how can I check if a item is equiped on a character or in the pack on sucess?
I had try:

<cont.uid> = <findlayer.layer_pack.uid>
Error in cont.uid :8

Thanks again!


RE: Incognito [GUILDTAG] - Shaklaban - 09-10-2012 03:25 PM

guild tags are suffix, you can remove suffix when player equips incognito memory then give suffix back when unequips it. but if you are another script which is using suffix you need to consider them too.

PHP Code:
[ITEMDEF 020a2]
//Incognito
DEFNAME=i_rune_incognito
TYPE
=T_SPELLICON
CATEGORY
=Spell Icons
SUBSECTION
=Fifth Circle
NAME
=Incognito

on
=@equip
src
.tag.name.suffix=

on=@unequip
if <src.guild>
    
src.tag.name.suffix=<src.guild.ABBREV>
endif 

for cont thing, you need to check if item is in cont like:

PHP Code:
[function isinmypack]
if <
cont>
    if <
cont> = <findlayer.layer_pack>
        return 
1
    
endif
endif
return 




RE: Incognito [GUILDTAG] - Lazarus - 09-13-2012 12:57 AM

I have try the incognito thing with a armor part with that equip and unequip.
And this happend:

[Image: 30blawj.png]

repeat again the same tag Sad


RE: Incognito [GUILDTAG] - Skul - 09-13-2012 11:15 AM

To 'check' if an item is equipped a good 'quick' way is to use this:
Code:
if (<cont.ischar>)
Any item equipped, even memory objects, bank layers, any layer.

Also, you're trying to 'override' the default behaviour for s_incognito. A good way is to use @click on the player and return your own message for his/her name, example:
Code:
on=@click
if (<findid.i_rune_incognito>) //is magically enchanted with incognito
  message <name> //simple <name> as his/her name
  return 1 //stop default name from appearing.
endif



RE: Incognito [GUILDTAG] - Lazarus - 09-13-2012 11:51 AM

(09-13-2012 11:15 AM)Skul Wrote:  To 'check' if an item is equipped a good 'quick' way is to use this:
Code:
if (<cont.ischar>)
Any item equipped, even memory objects, bank layers, any layer.

Also, you're trying to 'override' the default behaviour for s_incognito. A good way is to use @click on the player and return your own message for his/her name, example:
Code:
on=@click
if (<findid.i_rune_incognito>) //is magically enchanted with incognito
  message <name> //simple <name> as his/her name
  return 1 //stop default name from appearing.
endif


Thanks! that works Smile

Oh wait :| the script is succefull working -.- without this :| wtffffffffff