-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 69 replies
- 28279 views
-
- 47 replies
- 24574 views
-
- 0 replies
- 1450 views
-
- 1 reply
- 798 views
-
- 7 replies
- 2088 views
-
Question
Tulio271 1
Mudei meu server pata TFS 1.2 versão 10.91 e esse script aqui nao funciona alguem poderia arrumar para min?
function onSay(cid, words, param)local config = {pz = false, -- players precisam estar em protection zone para usar? (true or false)battle = true, -- players deve estar sem battle (true or false)custo = false, -- se os teleport irão custa (true or false)need_level = false, -- se os teleport irão precisar de level (true or false)vip = false -- se precisa ser premium account (true or false)}--[[ Config lugares]]--local lugar = {["demolay"] ={ -- pos = {x=1229, y=990, z=7},level = 1,price = 0},["fidelitas"] ={ --pos = {x=1023, y=1026, z=7},level = 1,price = 0},["shopping"] ={ -- pos = {x=1044, y=1052, z=7},level = 1,price = 0},["tpfree"] = { --pos = {x=1108, y=998, z=7},level = 1,price = 0},["tpfree2"] = { --pos = {x=1248, y=1070, z=7},level = 1,price = 0},["tpvip2"] = { --pos = {x=1249, y=1064, z=7},level = 1,price = 0},["tpvip"] = { -- pos = {x=1108, y=1028, z=7},level = 1,price = 0},} local a = lugar[param]if not(a) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "As cidades que você pode ir são: demolay, fidelitas")doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Os lugares que você pode ir são: shopping, tpfree, tpfree2, tpvip, tpvip2")doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)return TRUEelseif config.vip == true and not isVip(cid) thendoPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas contas vip tem esse recurso.")return TRUEelseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE thendoPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não pode se teleportar em uma batalha.")return TRUEenddoSendMagicEffect(getPlayerPosition(cid),27)doTeleportThing(cid, a.pos)doSendMagicEffect(getPlayerPosition(cid),40)return TRUEend
Link to comment
https://xtibia.com/forum/topic/242905-ajuda/Share on other sites
22 answers to this question
Recommended Posts