Jump to content

Recommended Posts

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 &gt; 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...