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

[HELP]Additional effects

Status
Not open for further replies.

felzan

Caos manager
Joined
Dec 19, 2009
Messages
38
Reaction score
8
Well, trying to make a pokemon server, with the sprites of the Pokemon that already exists.
know he has 221 effects effects (spells) in the tibia overall has 69 8:57
I already put these effects in the lib and compiled the server to bear 221 q effects.
but I do not know q to q they appear in the game, qnd the command

! Z 221

the sprite that is configured in the data base (. dat) does not appear, but not of any error message.
qnd I

! Z 222

aparcar a message that can only run from 0 (zero) to 221, q tb was I configured it.

is there any other place q has q edit the sources?
I edited only

const.h

if they have doubts that I'll get to post or reply

8:42 is ...

.::translated by google translator::.
 
magiceffect.lua (in talkactions)
Code:
		doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than " .. CONST_ME_LAST .. ".")

So... lib/00-constant.lua (or like this file) you must edit like this:
Code:
...
CONST_ME_INSECTS = 68
CONST_ME_DRAGONHEAD = 69 // <-last m-effect
CONST_ME_NONE = 255
CONST_ME_LAST = CONST_ME_DRAGONHEAD // <-last m-effect

and source const.h
Code:
	MAGIC_EFFECT_INSECTS		= 0x44, //68
	MAGIC_EFFECT_DRAGONHEAD		= 0x45, //68// <-last m-effect
	MAGIC_EFFECT_LAST		= MAGIC_EFFECT_DRAGONHEAD,// <-last m-effect

	//for internal use, dont send to client
	MAGIC_EFFECT_NONE		= 0xFF,
	MAGIC_EFFECT_UNKNOWN		= 0xFFFF
If you do that and not working, go to "source directory"/dev-cpp/obj and delete all files...
When you do that, start compiling your Ot...
 
Status
Not open for further replies.
Back
Top