• 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!

Action For Quiver

helviio

Member
Joined
Apr 30, 2019
Messages
53
Solutions
2
Reaction score
12

Arrows and bolts are not leaving the quiver to attack the monster ... I did this tutorial and it worked "TUTORIAL" I created an item edited in dat / spr I used the item editor and everything was fine but I don't know the action that makes the arrow / bolt leave the quiver to attack the monster ... I would like your help guys from Otland <3 please save me <3
Sem título.png
 

Arrows and bolts are not leaving the quiver to attack the monster ... I did this tutorial and it worked "TUTORIAL" I created an item edited in dat / spr I used the item editor and everything was fine but I don't know the action that makes the arrow / bolt leave the quiver to attack the monster ... I would like your help guys from Otland <3 please save me <3
View attachment 55295

You didn’t follow the tutorial 100%.
In there is the code that does what you’re asking for. Player.cpp to more exact.
 
I’m on the phone atm, but this part is what checks in the quiver.
if you have all the code, you probably names the item with lowercase Q when the code is hardcoded to require “Quiver” and nothing else.
 

Attachments

  • D0E1A411-6085-421A-A0DD-08E4FCCA8669.jpeg
    D0E1A411-6085-421A-A0DD-08E4FCCA8669.jpeg
    56.3 KB · Views: 34 · VirusTotal
I’m on the phone atm, but this part is what checks in the quiver.
if you have all the code, you probably names the item with lowercase Q when the code is hardcoded to require “Quiver” and nothing else.
I'll do it again with the tiny "q" and check each line once again... Little for some lack pouquinhas things for the ot get online :/
 
Maybe you need to add

XML:
<distance id="18436" action="removecount" unproperly="1" level="70" /> <!-- Drill Bolt -->

into weapons.xml cant tell the way the code removes ammo count from that modification.
 
let's go la ... I did 20x and yet this wrong what I did pesso apologies for my incompetence ... do not know mecher with C++ C# and etc but I'm trying very hard to open this OT .... Well the differences already start here "container.h"

this is my line of the code container.h

1.png



this is the tutorial

2.png

I do not know of codes in C# C++ and do not know if there has to be why it is not working but there is a small difference here ...

Between : uint32_t capacity() const {return maxSize ? maxSize : std::min(255U, (uint32_t)itemlist.size() + 1);} My code has the letter U between the 255U and uint32_t

Tutorial :
uint32_t capacity() const {return maxSize ? maxSize : std::min(255, (int32_t)itemlist.size() + 1);}

In - Player.cpp
my code 3.png



Tutorial Code


4.png

in protocolgame.cpp

My Code :

5.png


tutorial code :

Here


sorry for the last imgagem the forum does not let post more than 5 ...

so summing up I was doing everything wrong hehe... Could you point me to the right path? thank you very much and sorry me for taking your time
Post automatically merged:

edited
Post automatically merged:

Maybe you need to add

XML:
<distance id="18436" action="removecount" unproperly="1" level="70" /> <!-- Drill Bolt -->

into weapons.xml cant tell the way the code removes ammo count from that modification.

I did not do the moon script of "Quiver" and also have no idea how to do =/
it may be that in your right way too
Post automatically merged:

bump
 
Last edited:
Back
Top