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

Lua Help Me with this script

Nux

Yzeria Custom War
Joined
Jan 2, 2009
Messages
1,067
Reaction score
1
PHP:
local itemID = 426 -- The ID of the item
local teleport = {x=1824, y=1723, z=6} -- Position where they get teleported to
local voc = 1
local words = "You have become a Beginner Mage!" -- What the player will say when you step in the tile
local level = 10
local outfit =
    {
        lookType = 132,
        lookHead = 114,
        lookBody = 114,
        lookLegs = 114,
        lookFeet = 114,
        lookAddons = 0
    }
function onStepIn(cid, item, position, fromPosition)
if item.itemid == itemID and getPlayerLevel(cid) >= level then
    doSetCreatureOutfit(cid, outfit, -1)
    doPlayerSetVocation(cid, voc)
	doCreatureSay(cid, words, 18)
	doTeleportThing(cid, teleport)
else
doPlayerSendCancel(cid, "Sorry, you must be atleast level 10 to become a Beginner Mage.")
doSendMagicEffect(getCreaturePosition(cid), 2)
end
end
 
Code:
doCreatureSay(cid, words, 18)

Talktype 18 does not exist.

Here you go:
Code:
TALKTYPE_SAY = 1
TALKTYPE_WHISPER = 2
TALKTYPE_YELL = 3
TALKTYPE_PRIVATE_PN = 4
TALKTYPE_PRIVATE_NP = 5
TALKTYPE_PRIVATE = 6
TALKTYPE_CHANNEL_Y = 7
TALKTYPE_CHANNEL_W = 8
TALKTYPE_RVR_CHANNEL = 9
TALKTYPE_RVR_ANSWER = 10
TALKTYPE_RVR_CONTINUE = 11
TALKTYPE_BROADCAST = 12
TALKTYPE_CHANNEL_RN = 13
TALKTYPE_PRIVATE_RED = 14
TALKTYPE_CHANNEL_O = 15
TALKTYPE_CHANNEL_RA = 17
TALKTYPE_MONSTER = 19
TALKTYPE_MONSTER_YELL = 20
 
Back
Top