• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Custom Distance effect problem

Hashirama479

World of Ninja
Joined
Dec 19, 2016
Messages
536
Solutions
6
Reaction score
74
---------- TFS 0.4 !!! ---------------

Yoyo otland I have a problem... I did add a custom distance effect to my object builder then i did regirst it on Tools.cpp and const.h and in lib aswell too but for some reasons it does not work... Can someone help me please?

What you mean it does not work?

Also if I use /x 42 as explain its working but once I use it in items xml here a explain:

Lua:
    <item id="13060" article="a" name="Donation Arrow">
        <attribute key="description" value="This arrow has been created by the poison masters." />
        <attribute key="weight" value="100" />
        <attribute key="attack" value="5000" />
        <attribute key="description" value="+5000 attack." />
        <attribute key="slotType" value="ammo" />
        <attribute key="ammoType" value="arrow" />
        <attribute key="shootType" value="donarrow" />
        <attribute key="weaponType" value="ammunition" />
    </item>

then I atk a monster or what ever and I get debug... how comes? xD
 
Last edited:
The only reason that I see here, considering debugging client is wrongly added sprite.
 
Last edited:
CH2cb.png


hmm idk whats wrong with it xD
but the client does only debug when I put the shoottype as don arrow but if I got a custom script where i can put the "number of the effect" it does work perfectly it shots the arrow without any problem ^^

gjcGz.png

You see? xD it just debugs when im using this for my arrow
<attribute key="shootType" value="donarrow" />
 
Found something like that
C++:
    speed = id = 0;
    clientId = 100;
    maxItems = 8; //maximum size if this is a container
    weight = 0; //weight of the item, e.g. throwing distance depends on it
    showCount = true;
    weaponType = WEAPON_NONE;
    slotPosition = SLOTP_HAND | SLOTP_AMMO;
    wieldPosition = SLOT_HAND;
    ammoType = AMMO_NONE;
    ammoAction = AMMOACTION_NONE;
    shootType = (ShootEffect_t)0;
    magicEffect = MAGIC_EFFECT_NONE;
    attack = extraAttack = 0;
    defense = extraDefense = 0;
    attackSpeed = 0;
    armor = 0;
    decayTo = -1;
    decayTime = 0;
    stopTime = false;
    corpseType = RACE_NONE;
    fluidSource = FLUID_NONE;
    allowDistRead = false;

or this

C++:
            else if(tmpStrValue == "shoottype")
            {
                if(readXMLString(itemAttributesNode, "value", strValue))
                {
                    ShootEffect_t shoot = getShootType(strValue);
                    if(shoot != SHOOT_EFFECT_UNKNOWN)
                        it.shootType = shoot;
                    else
                        std::clog << "[Warning - Items::loadFromXml] Unknown shootType " << strValue << std::endl;
                }
            }

Cant find anything else under shoottype :'/
 
Solution
Back
Top