SphereCommunity
Join Guild via Script... - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: Join Guild via Script... (/Thread-Join-Guild-via-Script)



Join Guild via Script... - x77x - 12-16-2017 10:42 PM

REMEMBER THIS IS 51a
in sphereworld.scp
Code:
//GUILDSTONE
[WORLDITEM 0edd]
SERIAL=04000e513
NAME=Genovese Family
COLOR=0455
P=1616,1578,-20
ALIGN=0
ABBREV=Genovese
WEBPAGE=www.sphereserver.com
MEMBER=0da4c,,2,0da4c,1,1
MEMBER=04000bc18,,100,00,1,1

//CHARACTERS MEMORYITEM
[WORLDITEM 02007]
SERIAL=04001d278
COLOR=0400
LINK=04000e513
ATTR=04
MORE2=046209adf
MOREP=1510,1620,10
LAYER=30
CONT=0da4c

spheregump2.scp
Code:
SRC.SAY i resign from my guild
//
SRC.NEWITEM=02007
SRC.ACT.TYPE=74
SRC.ACT.LINK=04000e513
SRC.ACT.MORE2=046209adf
SRC.ACT.ATTR=04
SRC.ACT.COLOR=0400
SRC.ACT.LAYER=30
SRC.ACT.EQUIP
//
VAR.VGSTONE=04000e513
VAR.VGSTONE.MEMBER=<SRC.UID>,,2,<SRC.UID>,1,1,0
SRC.UPDATE
SRC.SYSMESSAGE #0835,3, You have joined the Genovese Family.

ideas???
bounce will put the memory item in the backpack... any worldsave deletes the item
equip will put the memory in xedit, but any worldsave deletes it


RE: Join Guild via Script... - x77x - 12-17-2017 10:54 PM

way more simple that i thought...

Code:
//
SRC.SAY i resign from my guild
//
VAR.VG=04000e513
UID.VG.MEMBER=<SRC.UID>,,2,<SRC.UID>,1,1,0
SRC.UPDATE
SRC.SYSMESSAGE #0835,3, You have joined the Genovese Family.
//

CORRECTION!!!

UID.VG.MEMBER=<SRC.UID>,,2,<SRC.UID>,1,1,0
is GUILDMASTER

UID.VG.MEMBER=<SRC.UID>,,0,00,1,0
//CANDIDATE

UID.VG.MEMBER=<SRC.UID>,,1,<SRC.UID>,1,0
//REAL MEMBER