September 27, 20169 yr If I add an item id, I get an CS error AppData\Local\Temp\unke1xss.0.cs(56,165) : error CS1001: As spellname, I add the item-ID. What is the right usage of this. <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>Energy</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>Smaller</Type> <Value>30</Value> </Param> </FightClassCondition> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript> function hasValue (tab, val) for index, value in ipairs (tab) do if value == val then return true end end return false end local Cont={} local mapID, isContinent = GetCurrentMapAreaID() if mapID and not isContinent then Cont["BrokenIsles"]={1007,1015,1021,1014,1098,1024,1017,1033,1018,1081,1087,1067,1046,1041,1042,1065,1079,1045,1066,1094,1088} result=hasValue(Cont["BrokenIsles"],mapID) if not result then if (mapID > 1008) and mapID~=1026 then print("new Zone: "..mapID) end end end </LuaScript> <VarRet>result</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> <FightClassCondition> <ContionType>TargetHealthPercent</ContionType> <Param xsi:type="FightClassConditionNumber"> <Type>Bigger</Type> <Value>10</Value> </Param> </FightClassCondition> </FightClassConditions> <SpellName>139586</SpellName> <CheckSpellDistance>false</CheckSpellDistance> <CheckIfView>false</CheckIfView> <AddToSettings>true</AddToSettings> <AddToSettingsActiveByDefault>true</AddToSettingsActiveByDefault> <NotSpellIsItemId>true</NotSpellIsItemId> <CastOnSelf>true</CastOnSelf> <CastOn>player</CastOn> </FightClassSpell>
September 28, 20169 yr Hello, The problem is caused by option "Add to settings" (this option don't support 'Not spell, is item id', I'll try to fix it in next update)
Create an account or sign in to comment