• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[help] Npc say multi texts

Serginov

Onkonkoronkonk
Joined
Jun 28, 2008
Messages
1,321
Reaction score
18
Location
Sweden - Dalarna
Okay, I need help with NPCs

How do I make them say multi texts?

Example:
Player: Hi
NPC: Hello, Player!
Player: City
NPC: Ah, this city is old. ...
NPC: It is haunted by ghosts. ...
NPC: Could you help us with this problem?


And one more thing :p

How to use this?
doPlayerAddMapMark(cid, pos, type[, description])

doPlayerAddMapMark(cid, 1000 1000 7, 1[, test]) Like that <--?
 
Last edited:
Nope, it should be like this.
PHP:
local pos = {x=1000, y=1000, z=7}
local descrip1 = "Rune Shop"

doPlayerAddMapMark(cid, pos, 1, descrip1)

Thsi pos, "1" this means the id of the mark theres alot.

@edit
ooh Marcinek did it 1 second before me;)
 
Eh, that's exactly how Rudolf did it, but he put everything in one line :x
EDIT: LOL, didn't see you already noticed.

@ontopic:
I'm working on a system for 'stories' although I'm currently encountering a problem, ANY npc at the map may answer lmao.
 
but you have made something like this:

Code:
selfSay('I went to..', cid)
selfSay('..toilet, when..', cid)
selfSay('..some idiot..', cid)

?
 
Code:
time = os.time()

say bla bla
for i = time, tibia + 10 do
if time + 3 then
     say blablabla
elseif time + 6 then
     say blabla bla
elseif time + 10 then
     say bla
end 
end

Did that make som sence?

o_O
 
Back
Top