The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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
Post Reply 


Messages In This Thread
NPCs in a Guild? *updated* - x77x - 11-27-2013 05:50 AM
RE: NPCs in a Guild? *updated* - x77x - 11-28-2013, 02:44 PM
RE: NPCs in a Guild? *updated* - Khaos - 11-28-2013, 04:22 PM
RE: NPCs in a Guild? *updated* - x77x - 11-28-2013, 10:03 PM
RE: NPCs in a Guild? *updated* - x77x - 11-29-2013, 08:40 AM
RE: NPCs in a Guild? *updated* - x77x - 11-29-2013, 10:10 AM
RE: NPCs in a Guild? *updated* - x77x - 11-29-2013, 02:38 PM
RE: NPCs in a Guild? *updated* - x77x - 11-30-2013, 06:56 AM
RE: NPCs in a Guild? *updated* - Khaos - 11-30-2013, 10:05 AM
RE: NPCs in a Guild? *updated* - x77x - 11-30-2013, 01:59 PM
RE: NPCs in a Guild? *updated* - Khaos - 11-30-2013, 02:55 PM
RE: NPCs in a Guild? *updated* - x77x - 11-30-2013, 03:06 PM
RE: NPCs in a Guild? *updated* - XuN - 11-30-2013, 03:13 PM
RE: NPCs in a Guild? *updated* - Khaos - 11-30-2013, 03:31 PM
RE: NPCs in a Guild? *updated* - x77x - 11-30-2013, 10:16 PM

Forum Jump:


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