SphereServer BugTracker - SphereServer
View Issue Details
0002000SphereServerexecutable - genericpublic17-07-11 05:3423-07-14 19:14
Coruja 
XuN 
normalminorrandom
resolvedfixed 
 
0.56c Nightly 
Not Available
None
None
0002000: Polymorph spell and function POLY doesnt work sometimes
After some uses, polymorph spell will doesnt work anymore (it will always stop the action and return "magery skill aborted" message). The same occour with the POLY internal function.
This problem occour randomly, I dont know why

---------------------------------------------

Btw, talking about POLY code, it will be a good idea create more functionality to this thing, like more args:
POLY id_to_polymorph,check_skill,check_mana
-id_to_polymorph: obviously this is the chardef to polymorph into
-check_skill: this will check char skill (0: doesnt check / 1: check)
-check_mana: the same as check_skill, but for mana (skip mana check will not consume mana)
With new args we can script a real working polymorph functions like the barracoon special hability to transform ppl into ratman no matter the target skill/mana, just using POLY c_ratman,0,0
http://uo.stratics.com/database/view.php?db_content=hunters&id=107 [^]
Using 11/07/11 nightly release
No tags attached.
Issue History
17-07-11 05:34CorujaNew Issue
14-08-11 06:52ShiryuXNote Added: 0001217
17-08-11 07:02CorujaNote Added: 0001219
18-08-11 21:27ShiryuXNote Added: 0001220
15-09-11 02:42MrSugarCubeNote Added: 0001266
15-09-11 02:43MrSugarCubeSeveritymajor => minor
15-09-11 02:43MrSugarCubeReproducibilitysometimes => random
23-07-14 19:14XuNNote Added: 0002360
23-07-14 19:14XuNStatusnew => resolved
23-07-14 19:14XuNFixed in Version => 0.56c Nightly
23-07-14 19:14XuNResolutionopen => fixed
23-07-14 19:14XuNAssigned To => XuN

Notes
(0001217)
ShiryuX   
14-08-11 06:52   
What about SPELLFLAG_POLY and LOCAL.CREATEOBJECT1 to do it? That would solve the problem?
I can't edit '.poly', it just calls the spell, is like doing '.cast s_polymorph'
(0001219)
Coruja   
17-08-11 07:02   
what SPELLFLAG_POLY does? it will override skill and mana check? the LOCAL.CREATEOBJECT1 already exists since you can use 'POLY c_pig', but it would be nice to use it directly on ON=@Effect or something like this without calling 'POLY c_pig' + 'return 1'

but the main problem is the spell failure, you can use polymorth once, can use it again, and randomly it will stop working (only for this char) and if you try to use it again you always will get a "skill aborted" message
(0001220)
ShiryuX   
18-08-11 21:27   
You will be able to create polymorph spells and overwrite the ID with the LOCAL.
(0001266)
MrSugarCube   
15-09-11 02:42   
Does your polymorph problem happen when casting from a scroll/spellbook or just when using the POLY function?

The POLY function can fail if TARG (polymorph target) or TARGPRV (spell source (scroll/wand)) are invalid. Otherwise, we'll need more information to help us reproduce the issue.
(0002360)
XuN   
23-07-14 19:14   
For your request... it would be a pain right now to edit a lot of code just for this while it can be done easily with script:

ON=@Select
if (<tag0.forced_poly>)
 tag.forced_poly
 return 6
endif

[function ForcePoly]
tag.forced_poly=1
poly <args>


Reopen if the spell is still failing or can reproduce it.