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

Killing Monsters Appear Teleport! HELP plz Screenshots

Fyruz

★★★★★
Joined
Feb 7, 2009
Messages
556
Reaction score
19
Location
127.0.0.1
Hello otlanders, fyruz again, I have an error creating my teleport, i've been testing alot of tutorials you never imagine! and the teleport never appear, says that i have 1 minute to get out but where is the teleport! look what its says:


Uploaded with ImageShack.us
look my scripts:
local m = {
["Ushuriel"] = {
message = "Escape through the teleport quickly before it closes!",
cfg = {
{
time = 15,
to = {x = 1185, y = 1067, z = 12},
tp = {x = 1097, y = 1214, z = 12}
},
}
},
["Zugurosh"] = {
message = "Escape through the teleport quickly before it closes!",
cfg = {
{
time = 10,
to = {x = 1112, y = 1253, z = 12},
tp = {x = 1149, y = 1213, z = 12}
},
}
}
}

function onKill(cid, target)
if isPlayer(target) then
return true
end
local monster = m[getCreatureName(target)]
if monster then
for i = 1, #monster.cfg do
local c = monster.cfg
local function deleteTeleport()
local teleport = getTileItemById(c.tp, 1387).uid
if(teleport > 0) then
doRemoveItem(teleport)
doSendMagicEffect(c.tp, CONST_ME_POFF)
end
return true
end
doCreateTeleport(1387, c.to, c.tp)
doSendMagicEffect(c.tp, CONST_ME_ENERGYAREA)
addEvent(deleteTeleport, c.time * 1000)
end
doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
end
return true
end

I dont have teleport on the map, i think would create automatically, or i put it? please help!! i put rep+++
Also if u can help me with the table :)
 
The script you posted and the script you are using are different. You can tell by the messages that appear after you kill the monster.
You are using the wrong script. The one you posted will work.
 
Code:
CREATE TABLE `z_ots_comunication` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `action` varchar(255) NOT NULL,
  `param1` varchar(255) NOT NULL,
  `param2` varchar(255) NOT NULL,
  `param3` varchar(255) NOT NULL,
  `param4` varchar(255) NOT NULL,
  `param5` varchar(255) NOT NULL,
  `param6` varchar(255) NOT NULL,
  `param7` varchar(255) NOT NULL,
  `delete_it` int(2) NOT NULL default '1',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;

>>lol

Also, Use Requests and Support board next time ;p
 
Back
Top