Vanitas
Anaerobe
- Joined
- Jul 7, 2008
- Messages
- 34
- Reaction score
- 0
I tried to make NPC selling houses but I want that player will be saying name of house which he want to buy.
I just don't know how to "change" name of house to his ID.
I have table of houses and IDs:
But I have no idea how to use it in NPC becouse NPC is using
and to read table I need
I just don't know how to "change" name of house to his ID.
I have table of houses and IDs:
PHP:
local houseName =
{
-- abdendriel
["Coastwood 1"] = 1,
["Coastwood 2"] = 2,
["Coastwood 3"] = 2,
["Coastwood 5"] = 4,
["Coastwood 5"] = 5,
["Coastwood 6"] = 6,
["Coastwood 7"] = 7,
["Coastwood 8"] = 8,
["Coastwood 9"] = 9,
["Coastwood 10"] = 10
}
PHP:
function onCreatureSay(cid, type, msg)
PHP:
function onSay(cid, words, param)