SphereCommunity
Bug in Summon Spells and LOCAL.CREATEOBJECT1 - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Bug in Summon Spells and LOCAL.CREATEOBJECT1 (/Thread-Bug-in-Summon-Spells-and-LOCAL-CREATEOBJECT1)



Bug in Summon Spells and LOCAL.CREATEOBJECT1 - admin phoenix - 05-09-2012 04:32 PM

In this script, when I summon my creature, the creature is naked. he has only hairs and a beard. When I add them with the ingame command .addnpc bla everythink is fine. He is wearing his clothing and weapons.

check this out.


Code:
[SPELL 615]
DEFNAME=s_licht_schutz_6_panzerbarbar
NAME=Panzerbarbar
RUNES=Grandis Rattus Adiuro
CAST_TIME=spell_cast_use_6
RESOURCES=i_reag_blood_moss,i_reag_black_pearl,i_reag_ginseng
RUNE_ITEM=i_rune_licht_schutz_6_panzerbarbar
SCROLL_ITEM=i_scroll_licht_schutz_6_panzerbarbar
FLAGS=SPELLFLAG_TARG_XYZ | SPELLFLAG_SUMMON | spellflag_scripted
SOUND=snd_SPELL_SUMMON_CREATURE
DURATION=spell_duration_summon_1,spell_duration_summon_2
MANAUSE=spell_mana_use_6
SKILLREQ=MAGERY spell_magery_skill_6
PROMPT_MSG=Wohin wollt ihr den Panzerbarbar beschwoeren ?

ON=@SUCCESS
    LOCAL.CREATEOBJECT1 = <eval c_panzerbarbar>


[CHARDEF c_panzerbarbar]
NAME=#NAMES_HUMANMALE Panzerbarbar
ID=C_MAN
CAN=MT_EQUIP|MT_USEHANDS|MT_WALK|MT_MALE
TSPEECH=spk_human_prime
TSPEECH=spk_human_default
DAM=20,25
ARMOR=20

ON=@Create
tag0.resist.02=30
tag0.resist.04=30
tag0.resist.010=50
STR={150 200}
DEX={81 95}
INT={20 30}

MAGICRESISTANCE={20.0 35.0}
TACTICS={80.0 95.0}
WRESTLING={80.0 95.0}
SWORDSMANSHIP=100.0
PARRYING={75.0 100.0}

NPC=BRAIN_HUMAN
KARMA={-4000 -6000}
FAME={3500 5000}

ITEMNEWBIE=i_hair_long
COLOR=colors_red
ITEMNEWBIE=i_beard_short_med
COLOR=match_hair

ON=@NPCRestock
ITEMNEWBIE=i_boots_calf
COLOR=01bb
ITEMNEWBIE=i_mask_deer
ITEMNEWBIE=i_axe_double
ITEMNEWBIE=i_leather_tunic
ITEMNEWBIE=i_kilt
COLOR=01bb

CATEGORY=Civilized
SUBSECTION=Barbarians (Evil)
DESCRIPTION=Panzerbarbar



RE: Bug in Summon Spells and LOCAL.CREATEOBJECT1 - Shaklaban - 05-09-2012 04:38 PM

maybe npcrestock is not fired when creature is summoned, you can try to move items to @create trigger.


RE: Bug in Summon Spells and LOCAL.CREATEOBJECT1 - admin phoenix - 05-09-2012 06:33 PM

ah, good idea. will test it when I am back at home.
thanks.


RE: Bug in Summon Spells and LOCAL.CREATEOBJECT1 - Anarch Cassius - 05-10-2012 04:11 AM

Not a bug so much as a feature.

If summons did have their stuff then summoning and robbing the creature blind would happen a lot even if they disappear on death.

I'm also thinking @create should work as their should be an easy way to bypass this when nessicary.


RE: Bug in Summon Spells and LOCAL.CREATEOBJECT1 - admin phoenix - 05-10-2012 06:08 AM

jup, it works Smile
test it now.
bug fixed ...hehe


RE: Bug in Summon Spells and LOCAL.CREATEOBJECT1 - admin phoenix - 05-14-2012 11:59 PM

btw the loot canĀ“t appear because the flag is summoned and so the loot will disappear