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

Just a little fix

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,857
Reaction score
96
Location
Brazil
How to make it work?

1. Will it work? Will it show that: "You have to go to Carlin Depot to participate"?
LUA:
place = Carlin Depot
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have to go to" .. place .. "to participate')
2. TP appears in tpto with aid
LUA:
	local tp = doCreateTeleport(1387, tpto)
	doItemSetAttribute(tp, "aid", actiontp)
 
Last edited:
Can you make an example?

LUA:
local place = Carlin Depot
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have to go to" .. place .. "to participate'
I really hope this is only part of the script because or else it will just send that right of the start.
(I suck at LUA)
 
1)
Code:
place = "Carlin Depot" --You need to write " " to make it accept as string, else it'll parse as a variable
doPlayerSendTextMessage[COLOR=#66CC66]([/COLOR]cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to go to " .. place .. " to participate.") --I always use " ", never use ' myself, so i dunno

2)
ur missing parameters in createTeleport
--doCreateTeleport(itemid, topos, createpos)
Code:
local tp = doCreateTeleport(1387, tpto, tpfrom)
    doItemSetAttribute(tp, "aid", actiontp)
local tp2 = doCreateTeleport(1387, tpfrom, tpto)
    doItemSetAttribute(tp, "aid", actiontp)

something like this?
 
Code:
local originpos = {x = 1000, y = 1000, z = 7}
local destinpos = {x = 2000, y = 2000, z = 7}
local aid = 1111

[FONT=monospace]local tp = doCreateTeleport(1387, destinpos, originpos)[/FONT][FONT=monospace]
[/FONT]doItemSetAttribute(tp, "aid", aid)

??
 
you should have said that in the first post -.-'
Code:
local originpos = {x = 1000, y = 1000, z = 7}
local aid = 1111

[FONT=monospace]local tp = doCreateItem(1387, originpos)[/FONT][FONT=monospace]
[/FONT]doItemSetAttribute(tp, "aid", aid)

??
 
Back
Top