SphereCommunity
ARGO's Guildstone MoreY? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: ARGO's Guildstone MoreY? (/Thread-ARGO-s-Guildstone-MoreY)



ARGO's Guildstone MoreY? - x77x - 11-25-2015 08:32 AM

im trying to add 1 to a argo's guilstone morey...

Code:
ARGO.MEMORYFINDTYPE.0600.UID.MOREY=(<ARGO.MEMORYFINDTYPE.0600.UID.MOREY>+1)//ADDS 1 DEATH TO STONE

whats the 0600?
ive seen 0400 too, whats 0400?

ideas?



heres the entire thing
Code:
[EVENTS e_armylife_wei]
//ARGO character that got killed
//SRC character that killed
ON=@Kill
IF (<ARGO.ISPLAYER>) && (<ARGO.TAG0.MILITARY>) && !STRMATCH("<ARGO.TAG.ARMY>","<SRC.TAG.ARMY>")
OBJ <UID.040004000>
OBJ.MOREX=(<OBJ.MOREX>+1)//ADDS 1 KILL TO SRC's GUILDSTONE
SRC.TAG.ARMYKILLS <SRC.TAG.ARMYKILLS>+1//ADDS 1 KILL TO SRC
//
//<argo.memoryfindtype.<def0.memory_guild>.uid>
ARGO.MEMORYFINDTYPE.0600.UID.MOREY=(<ARGO.MEMORYFINDTYPE.0600.UID.MOREY>+1)//ADDS 1 DEATH TO ARGO's GUILDSTONE
ARGO.TAG.ARMYDEATHS <ARGO.TAG.ARMYDEATHS>+1//ADDS 1 DEATH TO ARGO's GUILDSTONE
//
SRC.GUILD.ALLMEMBERS -1,SYSMESSAGE @021 <SRC.NAME> has killed <ARGO.NAME> [<ARGO.MEMORYFINDTYPE.0600.NAME>]
ARGO.GUILD.ALLMEMBERS -1,SYSMESSAGE @021 <ARGO.NAME> has been killed by <SRC.NAME> [<SRC.MEMORYFINDTYPE.0600.NAME>]
RETURN 1
ELSE
RETURN 1
ENDIF

if i could do that for the argo and the src, i could use one script instead of specific ones...


RE: ARGO's Guildstone MoreY? - azmanomer - 11-25-2015 12:58 PM

[DEFNAME mem_flags]
memory_sawcrime 00001 // i saw them commit a crime or i was attacked criminally. i can call the guards on them.
memory_ipet 00002 // i am a pet. (this link is my master) (never time out)
memory_fight 00004 // active fight going on now. may not have done any damage.
memory_iaggressor 00008 // i was the agressor here. (good or evil)
memory_harmedby 00010 // i was attacked by them. (but they may have been retaliating)
memory_irritatedby 00020 // i saw them snoop from me or someone.
memory_speak 00040 // we spoke about something at some point. (or was tamed) (npc_mem_act_type)
memory_aggreived 00080 // i was attacked and was the inocent party here !
memory_guard 00100 // guard this item (never time out)
memory_ispawned 00200 // UNUSED!!!! i am spawned from this item. (never time out)
memory_guild 00400 // this is my guild stone. (never time out)
memory_town 00800 // this is my town stone. (never time out)
memory_follow 01000 // UNUSED!!!! i am following this object (never time out)
memory_war_targ 02000 // this is one of my current war targets.
memory_friend 04000
memory_gumprecord 08000 // UNUSED!!!! i've a gump opened TAG.DIALOG_NAME contain the name of the gump


RE: ARGO's Guildstone MoreY? - x77x - 11-25-2015 01:02 PM

so what the right way?

Code:
ARGO.MEMORYFINDTYPE.0400.UID.MOREY=(<ARGO.MEMORYFINDTYPE.0400.UID.MOREY>+1)//ADDS 1 DEATH TO ARGO's GUILDSTONE

i tried that, it didnt work
and i tried

Code:
ARGO.MEMORYFINDTYPE.0400.MOREY=(<ARGO.MEMORYFINDTYPE.0400.MOREY>+1)//ADDS 1 DEATH TO ARGO's GUILDSTONE

didnt work


RE: ARGO's Guildstone MoreY? - Artyk - 11-25-2015 05:49 PM

I don't know if it is right, can't try at the moment

ARGO.MEMORYFINDTYPE.memory_guild.LINK.MOREY+=1


RE: ARGO's Guildstone MoreY? - XuN - 11-25-2015 09:13 PM

To get Guild use something like REF1=<ARGO.GUILD>, then IF (<REF1>) -> REF1.MOREY +=1


RE: ARGO's Guildstone MoreY? - x77x - 11-25-2015 09:21 PM

Code:
REF1=<SRC.GUILD>
REF1.MOREX=(<REF1.MOREX>+1)//ADDS 1 KILL TO SRC's GUILDSTONE
SRC.TAG.ARMYKILLS <SRC.TAG.ARMYKILLS>+1//ADDS 1 KILL TO SRC
//
REF2=<ARGO.GUILD>
REF2.MOREY=(<REF2.MOREY>+1)//ADDS 1 DEATH TO ARGO's GUILDSTONE
ARGO.TAG.ARMYDEATHS <ARGO.TAG.ARMYDEATHS>+1//ADDS 1 DEATH TO ARGO

works.... BUT

06:26:WARNING:1:Unknown game packet (0x50) received.



Code:
REF1=<SRC.GUILD>
REF1.MOREX += 1
SRC.TAG.ARMYKILLS <SRC.TAG.ARMYKILLS>+1//ADDS 1 KILL TO SRC
//
REF2=<ARGO.GUILD>
REF2.MOREY += 1
ARGO.TAG.ARMYDEATHS <ARGO.TAG.ARMYDEATHS>+1//ADDS 1 DEATH TO ARGO

i get
06:30:WARNING:1:Unknown game packet (0x82) received.


Code:
REF1=<SRC.GUILD>
REF1.MOREX += 1
SRC.TAG.ARMYKILLS += 1
//
REF2=<ARGO.GUILD>
REF2.MOREY += 1
ARGO.TAG.ARMYDEATHS += 1

i get
06:35:WARNING:3:Unknown game packet (0x6e) received.


RE: ARGO's Guildstone MoreY? - XuN - 11-25-2015 10:44 PM

Code:
REF1=<SRC.GUILD>
IF (<REF1>)
REF1.MOREX=(<REF1.MOREX>+1)//ADDS 1 KILL TO SRC's GUILDSTONE
ENDIF
SRC.TAG.ARMYKILLS <SRC.TAG.ARMYKILLS>+1//ADDS 1 KILL TO SRC
//
REF2=<ARGO.GUILD>
IF (<REF2>)
REF2.MOREY=(<REF2.MOREY>+1)//ADDS 1 DEATH TO ARGO's GUILDSTONE
ENDIF
ARGO.TAG.ARMYDEATHS <ARGO.TAG.ARMYDEATHS>+1//ADDS 1 DEATH TO ARGO

Same for the rest.

Are you using any NETWORK* setting from the ini?


RE: ARGO's Guildstone MoreY? - x77x - 11-26-2015 03:01 AM

all networks settings are default...


the above works! no errors... thank you =)