SphereCommunity
400 STR and 8000 HITPOINTS? [solved] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: 400 STR and 8000 HITPOINTS? [solved] (/Thread-400-STR-and-8000-HITPOINTS-solved)



400 STR and 8000 HITPOINTS? [solved] - x77x - 04-30-2012 09:26 PM

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


RE: 400 STR and 8000 HITPOINTS? - Reflex - 05-01-2012 12:49 AM

just make it equip it and if its falling to loot remove on=@death or newbie it


RE: 400 STR and 8000 HITPOINTS? - x77x - 05-01-2012 01:12 AM

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!


RE: 400 STR and 8000 HITPOINTS? - Anarch Cassius - 05-01-2012 05:13 AM

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.


RE: 400 STR and 8000 HITPOINTS? - x77x - 05-01-2012 06:14 AM

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


RE: 400 STR and 8000 HITPOINTS? - x77x - 05-01-2012 11:58 AM

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


RE: 400 STR and 8000 HITPOINTS? [solved] - jdchixin - 02-23-2013 08:35 PM

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.