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
400 STR and 8000 HITPOINTS? [solved]
Author Message
x77x
Master
**

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



Post: #5
RE: 400 STR and 8000 HITPOINTS?
sphereitem2.scp

Code:
[6295] // HP Regen Bracelet Scripted by Wpn-z-
ID=1086
NAME=Bracelet of Regeneration
COLOR=481
ATTR=084
WEIGHT=1

ONTRIGGER=STEP
EQUIP
SRC.FIX

ONTRIGGER=EQUIP
LINK=<SRC.UID>
SRC.SYSMESSAGE Your wounds begin to heal faster.
TIMER=1
SRC.FIX

ONTRIGGER=UNEQUIP
LINK=04FFFFFFF
TIMER=-1

ONTRIGGER=TIMER
IF <LINK.HITPOINTS> < 8000
LINK.HITPOINTS=(<LINK.HITPOINTS> +1)
TIMER=1
//ELSE
//TIMER=-1
ENDIF
RETURN 1


CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=Stuff
DESCRIPTION=Hitpoints Regen

spherechar2.scp
Code:
TEVENTS=graham

speech/graham.scp

Code:
ON=@SeeNewPlayer
IF <RESTEST 1 06295>
IF <HITPOINTS> < 8000
HITPOINTS=(<HITPOINTS> +1)
SAY +1
TIMER=1
ENDIF
RETURN 1
ELSE
NEWITEM 06295
HITPOINTS 8000

basically he sees a new player drops it, equips it, gets his 8k hits
(i did this cuz adding to loot dont work)
its supposed to give him 8000 hitpoints and maintain it without loss...
(you need a continuous loop once you hit 8000 with a timer, otherwise it will drop back down to STR value)

problem with the speech loop, is once the players gone, itll drop back down to STR value too

so basically your fucked from both angles


i tried a bunch of dif variations, but you get the idea

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 05-01-2012 06:22 AM by x77x.)
05-01-2012 06:14 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 400 STR and 8000 HITPOINTS? - Reflex - 05-01-2012, 12:49 AM
RE: 400 STR and 8000 HITPOINTS? - x77x - 05-01-2012, 01:12 AM
RE: 400 STR and 8000 HITPOINTS? - x77x - 05-01-2012 06:14 AM
RE: 400 STR and 8000 HITPOINTS? - x77x - 05-01-2012, 11:58 AM

Forum Jump:


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