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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with link gump and script...
Author Message
admin_teclis
Journeyman
*

Posts: 51
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2012
Reputation: 0

Age of Apocalypse

Post: #1
Problem with link gump and script...
Hi all,
following the tutorial in the sticky to add gump shard I managed to get the pictures and "I" to link the animation ... I just do not understand now the script as it should be ...
I have:
TILEDATA (S) 0x3F3E
ART (S) 0x3F3E Set: weight 10, quality 2 (2-handed weapon), Weapon, Wearable.
I used (as an example) the number 200 in body.def.
I ran the calculation of the gump male doing +200 50 000 or hexadecimal becomes C418.
I went to the tab GUMP (PET) under C418 (as derived above).
I inserted the image gump and I received as PET ID 0xC8.
I'm back in the tab Tiledata (s) and added in ANIM 0xC8.

I saved all the files (and I actually controlling everything with insedeuo).
I opened the file BODY.DEF and I added this:
200 {649} 0
Where 200 is the number previously chosen. 649 is the id taken from insede men under weapon.bow. 0 is the color, I used the original.

I tried to make a quick script to test the new image but I can not take it ... the script is this:


[ITEMDEF i_thunder_Bow]
Defname = i_thunder_Bow
NAME = Thunder Bow


ID = C418 and I put here was not good - and not 3F3E was fine - 200 and was not good - 16190


DAM = 15.25
SPEED = 22
SKILL = Archery
REQSTR = 70
TWOHANDS = Y
WEIGHT = 6
VALUE = 500
TDATA3 = i_arrow
TDATA4 = i_FX_ENERGY_RAY

CATEGORY = Other
Subsection = Weapons
DESCRIPTION = Lightning Bow

ON = @ Create
Hitpoints = {1000 2010}
COLOR = 0087c

ON = @ EQUIP
IF (<SRC.ARCHERY> <1100)
src.ACT.BOUNCE
SRC.sysMESSAGE @ 2444 110.0 Archery You need to use
return 1
endif

if (<src.dex> <= 99)
    src.act.bounce
    src.sysmessage @ 2444 You have 100 Dexterity to use
    return 1
ENDIF

ON = @ DCLICK
IF (<SRC.ARCHERY> <1100)
src.ACT.BOUNCE
SRC.sysMESSAGe @ 2444 110.0 Archery You need to use
return 1
endif

if (<src.dex> <= 99)
    src.act.bounce
    src.sysmessage @ 2444 You have 100 Dexterity to use
    return 1
ENDIF


ON = @ Damage
IF (RAND (4) == 0)
SRC.HITS = (<SRC.HITS> + (-20))
SRC.effect 1,1,1,1
RETURN 0



The item ARTWORK of INSEDEUO clicking on the tile and making 0X3F3E details see this:

Overall Index: 32574 (0x7F3E)
Tags: 0000
Group: Static Tiles
Group Lookup Relative Offset: 13416 (0x3468)
Group Index: 16190 (0x3F3E)

Flags: Weapon, Wearable (0x400002)
Weight: 10 (0xA)
Quality: 2 (0x2)
Unknown: 0 (0x0)
Unknown1: 0 (0x0)
Quantity: 0 (0x0)
Anim Id: 200 (0xC8)
Unknown2: 0 (0x0)
Hue: 0 (0x0)
Unknown3: 0 (0x0)
Height: 0 (0x0)
Name: LightBow

What's wrong?!?!!!?
01-12-2013 10:11 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)