Bugreporter 93 Posted September 27, 2016 Share Posted September 27, 2016 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> Link to comment https://wrobot.eu/forums/topic/3955-not-spell-is-item-id/ Share on other sites More sharing options...
Droidz 2738 Posted September 28, 2016 Share Posted September 28, 2016 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) Link to comment https://wrobot.eu/forums/topic/3955-not-spell-is-item-id/#findComment-18448 Share on other sites More sharing options...
Bugreporter 93 Posted September 28, 2016 Author Share Posted September 28, 2016 hmm, bad, then it is not useful for me. Thanks. Link to comment https://wrobot.eu/forums/topic/3955-not-spell-is-item-id/#findComment-18449 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now