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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tagging carved heads...
Author Message
x77x
Master
**

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



Post: #1
tagging carved heads...
on the NPC... to tag the corpse

Code:
ON=@DeathCorpse
ARGO.TAG.NAMEX=<tag.namex>
ARGO.TAG.TITLEX=<title>
ARGO.TAG.LEVELX=<LEVEL>
ARGO.TAG.LOCATIONX=<region.name>
ARGO.TAG.ARMYX=<tag.army>

then when the NPC corpse is carved...

Code:
[ITEMDEF i_head_general]
ID=01ce1
FLIP=1
WEIGHT=10.0
CATEGORY=DRAGONSOFTIME
SUBSECTION=Generals Heads
DESCRIPTION=General Head
ON=@CLICK
MESSAGE @021 slain by <TAG.KILLER>
MESSAGE <TAG.DATE> <TAG.LOCATIONZ>
MESSAGE Head of <TAG.TITLEZ> <TAG.NAMEZ> [<TAG.ARMYZ>] [<TAG.LEVELZ>]
RETURN 1
ON=@create
TAG.NAMEZ=<CONT.TAG.NAMEX>
TAG.LEVELZ=<CONT.TAG.LEVELX>
TAG.ARMYZ=<CONT.TAG.ARMYX>
TAG.TITLEZ=<CONT.TAG.TITLEX>
tag.locationz=<cont.tag.locationx>
tag.date=<SERV.RTIME.FORMAT %m/%d/%y %I:%M%p>
tag.killer=<src.name>

date and killer work, but i cant get it to take the tags from the container
ideas?

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 09-04-2017 09:19 PM by x77x.)
08-19-2017 12:27 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: tagging carved heads...
@Create is fired before the item is placed in the world, so itt can't access the container and you have to use
timerf 1,tag.locationz=<cont.tag.locationx> i think.
08-19-2017 01:51 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: #3
RE: tagging carved heads...
i used pickup from pack before and that worked BUT everytime its picked up it changes

Dragons of Time 2000-2020
http://dragonsoftime.com
08-19-2017 04:17 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: tagging carved heads...
What changes when you pick up the head from the pack?
08-19-2017 08:33 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: tagging carved heads...
okay this works... tricked it

but sure looks UGLY!!!

Code:
[ITEMDEF i_head_general]
ID=01ce1
FLIP=1
WEIGHT=10.0
CATEGORY=DRAGONSOFTIME
SUBSECTION=Generals Heads
DESCRIPTION=General Head
ON=@CLICK
MESSAGE @021 slain by <TAG.KILLER>
MESSAGE <TAG.DATE> <TAG.LOCATIONZ>
MESSAGE @0481 Head of <TAG.TITLEZ> <TAG.NAMEZ> [<TAG.ARMYZ>] [<eval <TAG.LEVELZ>>]
RETURN 1
ON=@create
tag.date=<SERV.RTIME.FORMAT %m/%d/%y %I:%M%p>
tag.killer=<src.name>
Link=1
ON=@pickup_pack
IF <LINK>=1
TAG.NAMEZ=<CONT.TAG.NAMEX>
TAG.LEVELZ=<CONT.TAG.LEVELX>
TAG.ARMYZ=<CONT.TAG.ARMYX>
TAG.TITLEZ=<CONT.TAG.TITLEX>
tag.locationz=<cont.tag.locationx>
LINK=0
ENDIF


see that <eval <TAG.LEVELZ>> ?

is there a way to have it tag in decimal and STAY in decimal? everything always gets switched to hex and fucks stuff up...
when i use level, its always decimal

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 08-19-2017 09:21 PM by x77x.)
08-19-2017 08:47 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: tagging carved heads...
I think numbers are always saved in decimal in tags
08-19-2017 09:55 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #7
RE: tagging carved heads...
If a number, it's always saved in hex.
If a string, saved as string.
The only way to trick it is to add a symbole in it when saving and removing when read.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
08-20-2017 06:21 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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