Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPCs in a Guild? *updated*
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
NPCs in a Guild? *updated*
possible? YES! with a script? ???????

(sphereworld.scp)
a player has a memory item that links them to a guild...

Code:
[WORLDITEM 02007]
SERIAL=04001fc5d
COLOR=0400
LINK=045000000//stoneID
ATTR=04
MORE2=02cdb2b05//<---WHATS THIS?
MOREP=1474,1898,0
LAYER=30
CONT=0d087//GUILDMASTER SERIAL

the stone has a member list...

Code:
[WORLDITEM 0edd]
SERIAL=045000000
NAME=MyGuildName
MORE1=01//<-WHATS THIS FOR?
P=1477,1898,0
ALIGN=1
ABBREV=MGN
WEBPAGE=www.sphereserver.com
MEMBER=0d087,,2,0d087,1,1//GUILDMASTER SERIAL w TOGGLE ON
//MEMBER=0d087,,2,0d087,0,1//GUILDMASTER w TOGGLE OFF
MEMBER=0ffee,,2,0ffee,1,1//MEMBER SERIAL w TOGGLE ON<---NPC

if you add both of those to sphereworld.scp the npc is in your guild...

so in theory...
if you sold an NPC as an item...

(sphereitems2.scp)

Code:
[7940]
ID=2106//id for the icon
NAME=Hired Soldier
TYPE=37
WEIGHT=10
BUYVALUE=25000
SELLVALUE=10000
MORE=05200//baseid of the npc

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=TEST
DESCRIPTION=Hired Soldier Icon

(spherechar.scp)
Code:
[5200]
ID=MALE
NAME=Soldier
TITLE=Soldier
SOUND=HUMAN_M_DIE_01
COLOR=all_skin_colors
NPC=brain_human
STR=100
DEX=100
INT=100
PARRYING=75.0
SWORDSMANSHIP=75.0
FENCING=75.0
WRESTLING=75.0
MAGICRESISTANCE=50.0
TACTICS=75.0
ARCHERY=75.0
//MAGERY=75.0

ITEM=05200//wu guild memory item
ITEM=male_hair
COLOR=all_hair_colors
ITEM=facial_hair
COLOR=match_hair

CATEGORY=DoT Monsters
SUBSECTION=TEST
DESCRIPTION=Soldier

and made a guildstone with a permanent serial AND a memory item...

(sphereitem.scp)

Code:
[5100]
// Guild Stone
ID=0edd
NAME=The Army of Wu
SERIAL=5000000
TYPE=57
COLOR=073
ABBREV=Wu
//MEMBER=05200,,2,05200,1,1

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=TEST
DESCRIPTION=Wu Army Stone

//ONTRIGGER=DCLICK
//MEMBER=05200,,2,05200,1,1
//RETURN 1

[5200]
NAME=Soldier Wu Memory
ID=02007
COLOR=0400
LINK=045000000//STONESERIAL
ATTR=04
MORE2=02cdb7c2c
MOREP=1475,1898,0//STONELOCATION
LAYER=30
//CONTAINER=<SERIAL>
//CONT=<SERIAL>//SOLDIERSERIAL

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=TEST
DESCRIPTION=Wu Army Memory

sounds like it would work
BUT
the problem is, when the npc is summoned, he HAS the memory item, but loses it after 1 second...
i think this is because the container is not set


ideas?

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-28-2013 03:56 AM by x77x.)
11-27-2013 05:50 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #2
RE: NPCs in a Guild? *updated*
hmmm found this... interesting...


Code:
[TRIG 3000]
//Guild Members Only Door
//Set the door to the Triger Type #, then Link the DOOR to the GUILDSTONE
//DO NOT LINK THE GUILDSTONE TO THE DOOR - YOUR GUILDSTONE WILL DISAPPEAR IN THE NEXT SAVE.
ONTRIGGER=DCLICK
if (<SRC.MEMORYFINDTYPE.0400.LINK> == <LINK>)
  MOREP=<P>
  SRC.MESSAGE You've been allowed to pass through the door magically.
  SRC.GO <MOREP>
else
  SRC.MESSAGE The door seems magically locked.
ENDIF
RETURN 1

Dragons of Time 2000-2020
http://dragonsoftime.com
11-28-2013 02:44 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #3
RE: NPCs in a Guild? *updated*
Memory 0400 should be a guild memory I believe.
11-28-2013 04:22 PM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #4
RE: NPCs in a Guild? *updated*
I tried to do this awhile back for the faction system. NPCs seem incompatible with guilds as is. For factions I got around it with noto overrides and color packets. Not sure how to go about doing true guilds. You could do the same and tag NPCs for their player guild.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
11-28-2013 06:25 PM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #5
RE: NPCs in a Guild? *updated*
thats exactly why im trying to do this... factions aka guild wars

Dragons of Time 2000-2020
http://dragonsoftime.com
11-28-2013 10:03 PM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #6
RE: NPCs in a Guild? *updated*
I have a system but I don't think it'll work with 51a. I'm relying on the noto flag overrides.

http://forum.spherecommunity.net/sshare....wnload=168

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
11-29-2013 06:50 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #7
RE: NPCs in a Guild? *updated*
grrrrrrrr

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-29-2013 02:57 PM by x77x.)
11-29-2013 08:40 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #8
RE: NPCs in a Guild? *updated*
im trying to accomplish 2 things...
#1 have summoned or spawned NPCs belong to a real guild and guildstone
#2 let players be able to add a purchased NPC to their personal guild


problem #1
if i could get the memory item to stop dissapearing when the npc is created... itll work (hopefully)



problem #2
i though when the player dclicks the icon to summon the npc, the dclick trigger could create the memory item...
OR
maybe a tool for players to target a pet npc to add them to their guild.... but it WONT change his MEMORYFINDTYPE.0400.LINK number =/

Code:
[7939]
ID=0e2d
NAME=NPC Guild Recruitment Tool
COLOR=901
TYPE=13
BUYVALUE=14000-16000
SELLVALUE=7000-8000
WEIGHT=3

ONTRIGGER=TARGON_CHAR
IF (<SRC.TARG.MEMORYFINDTYPE.0400.LINK>=0) && (<SRC.TARG.BODY>=0190) && (<SRC.TARG.FLAGS>&08000000)
SRC.TARG.MEMORYFINDTYPE.0400.LINK=<SRC.MEMORYFINDTYPE.0400.LINK>
SRC.SYSMESSAGE=<SRC.TARG.NAME> is now in <SRC.MEMORYFINDTYPE.0400.NAME>!
RETURN 1
ELSE
SRC.SYSMESSAGE=That is not your Soldier or they are already in a guild!
RETURN 1
ENDIF

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=TEST
DESCRIPTION=NPC Guild Recruitment Tool



if i could just get the memory item to stop disappearing i could solve one of the problems...

Dragons of Time 2000-2020
http://dragonsoftime.com
11-29-2013 10:10 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #9
RE: NPCs in a Guild? *updated*
if i could do it with an event...

Code:
ON=@SeeNewPlayer
MEMORYFINDTYPE.0400.LINK 045000000
say my guild number is <MEMORYFINDTYPE.0400.LINK>
say my guild name is <MEMORYFINDTYPE.0400.NAME>

but it wont set it =/ am i doing it wrong?

i dont think you can do that with an npc...
so im thinking, stick with trying to have the npc summon with a memory item

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-29-2013 02:45 PM by x77x.)
11-29-2013 02:38 PM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #10
RE: NPCs in a Guild? *updated*
what is the stone checking for when you try to recruit an npc?

"Only players can be recruits!"

what is it checking?

Dragons of Time 2000-2020
http://dragonsoftime.com
11-30-2013 06:56 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)