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: #1
400 STR and 8000 HITPOINTS? [solved]
any tricks to get an NPC with 400 STR but 8000 HITPOINTS?

in 51a, STR = MAX HITS, anything over your STR value and you lose HITPOINTS, until they equal out...
THIS IS HARDCODED! thx sphere... =/

i tried using an item to give and maintain the 8000 HITPOINTS, but you have to manually EQUIP the item, (actually drag it on the paperdoll) to get it to work.
if you add the item to loot, the npc will be wearing it, but its not doing anything...
so to combat this problem, i tried equipping it with a script, but guess what? SAME, only works if you manually equip it on them

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 05-02-2012 12:11 AM by x77x.)
04-30-2012 09:26 PM
Find all posts by this user Like Post Quote this message in a reply
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #2
RE: 400 STR and 8000 HITPOINTS?
just make it equip it and if its falling to loot remove on=@death or newbie it
05-01-2012 12:49 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: 400 STR and 8000 HITPOINTS?
it doesnt work if sphere does it, it works when you equip it on them... make sense?

spherechar2.scp
ITEM=0xxxx
DONT WORK!

in game
drag in to the NPCs paper doll
WORKS!

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 05-01-2012 01:15 AM by x77x.)
05-01-2012 01:12 AM
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: 400 STR and 8000 HITPOINTS?
It's configurable in later versions of Sphere. Confused

In any case you can do what x77x says... and (I think this will work in the older version) you can force NPC to loot to actually equip using something like this:

Code:
    NEWITEM i_head_orc
    EQUIP <NEW>

I have to say though... I think the starting loot going straight on the paperdoll without triggering @equip this way isn't really desirable behavior and persists in newer version.
(This post was last modified: 05-01-2012 05:15 AM by Anarch Cassius.)
05-01-2012 05:13 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: #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
x77x
Master
**

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



Post: #6
RE: 400 STR and 8000 HITPOINTS?
FINALLY!!! JESUS FUCK...

sphereitem2.scp
Code:
[6299]
ID=1086
NAME=Bracelet of Regeneration
COLOR=481
ATTR=084//newbie and invis
WEIGHT=1

ONTRIGGER=STEP
IF (<SRC.ID>=05040) || (<SRC.ID>=05041) || (<SRC.ID>=05042) || (<SRC.ID>=05043) || (<SRC.ID>=05044) || (<SRC.ID>=05045) || (<SRC.ID>=05046) || (<SRC.ID>=05047) || (<SRC.ID>=05060) || (<SRC.ID>=05061) || (<SRC.ID>=05062) || (<SRC.ID>=05063) || (<SRC.ID>=05064)
//(to make sure no player can step on it)
TIMER=1
EQUIP
ELSE
REMOVE

ONTRIGGER=EQUIP
TIMER=1

ONTRIGGER=TIMER
IF <LINK.HITPOINTS> < 8000
LINK.HITPOINTS=(<LINK.HITPOINTS> +1)
SAY +1
TIMER=1
ELSEIF <LINK.HITPOINTS> = 8000
LINK.HITPOINTS=(<LINK.HITPOINTS> -10)
SAY back to 7990
TIMER 1
ENDIF
RETURN 1

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=Stuff
DESCRIPTION=Bracelet of Regeneration

spherechar2.scp
Code:
[5044]
...
TEVENTS=graham

Speech/graham.scp
Code:
ON=@SeeNewPlayer
IF <RESTEST 1 06299>
SAY Hmmmmm... Doing Nothing
RETURN 0
ELSE
EMOTE Getting Angry
HITPOINTS 7990
NEWITEM 06299//ID of the HP bracelet
ACT.LINK=<SERIAL>


sees a player drops the bracelet, steps on it, equips it, gains hitpoints, hits 8000, drops back down to 7990, gains hitpoints, loops

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 05-02-2012 12:11 AM by x77x.)
05-01-2012 11:58 AM
Find all posts by this user Like Post Quote this message in a reply
jdchixin
Journeyman
*

Posts: 51
Likes Given: 9
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #7
RE: 400 STR and 8000 HITPOINTS? [solved]
it can equip
when you set this
CAN=MT_EQUIP|mt_run.....

What is the point of this script? Is the playesr sparring partner?

also i know the DRAGONS TIMES.
02-23-2013 08:35 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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