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

[TFS]Latest Rev

squall14

New Member
Joined
Dec 28, 2007
Messages
34
Reaction score
0
well i have been messing around with tibia.dat and spr and i found a cool distance effect and supposedly i added this effect in const.h and in tools.cpp then i try to use it and the distance effect doesnt show up.


If this is the wrong section please move my post




thanks~~
 
here is what i did tell me if i am mistaken :)

-Added the Distance Effect by using dateditor 4.0
-went into const.h and added in
HTML:
enum ShootType_t
Code:
NM_SHOOT_GARROW     = 0x2A, //42
-then in tools.cpp added in
HTML:
ShootTypeNames shootTypeNames[] =
Code:
 {"garrow",		NM_SHOOT_GARROW}
-then still in tools.cpp added in
HTML:
AmmoTypeNames ammoTypeNames[] =
Code:
{"garrow",	        AMMO_ARROW}

-then in global.lua added
Code:
CONST_ANI_GOLDENARROW = 42

As you can see the new distance effect is an arrow and i want it to be shown when i use that arrow according to me these are the steps unless i am mistaken :(
 
This shoud be in OtLand > Resources > C++ Codes ?
 
Back
Top