SphereServer BugTracker - SphereServer
View Issue Details
0002390SphereServernew feature requestpublic23-08-14 01:2829-10-14 11:42
kn4tseb 
XuN 
normalminorsometimes
resolvedfixed 
deca hexa core LInux windowscentos 7 win 7
 
0.56c Nightly 
Automated (specify build number)
DiagonalWalkCheck
None
2009
0002390: ON=@Shrink
Fires when a character is about to be shrunk

Fires on Characters

SRC The character trying to shrink

ARGO The character that is going to be shrunk

ACT= the item where the target originated from // if any

ARGN1 = the spell number used to shrink // if ANY
SRC uses an item or maybe a spell to shrink

the target originates

argo is selected

the char "becomes" a figurine
Would be usefull in my opinion, lot of things happens when a char is shrunk... would be cool to have something that stores things when its done
No tags attached.
Issue History
23-08-14 01:28kn4tsebNew Issue
29-10-14 11:42XuNNote Added: 0002522
29-10-14 11:42XuNStatusnew => resolved
29-10-14 11:42XuNFixed in Version => 0.56c Nightly
29-10-14 11:42XuNResolutionopen => fixed
29-10-14 11:42XuNAssigned To => XuN

Notes
(0002522)
XuN   
29-10-14 11:42   
I think having something like this is more than enough:

[itemdef i_potion_shrink]
..
..

ON=@TargOn_Char
if !(<src.targ.brain>)
 src.sysmessage=Target must be a pet.
 return 1
elseif !(<src.targ.ismypet>)
 src.sysmessage=You can only shrink your pets.
 return 1
elseif !(<src.CanSeeLos <src.targ>> && <src.targ.distance>< 5)
 src.sysmessage=You can't reach <src.targ.name>
 return 1
endif
if (<src.targ.trigger @Shrink> == 1)
 return 1
endif
if (<src.trigger @CharShrink>==1)
 return 1
endif
src.targ.shrink
ref1=<hval <src.targ.actarg1>&~030000000> // this is the figurine
ref1.bounce