- 0
pedido scripts editar script
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 5 answers
- 1861 views
-
- 1 answer
- 1378 views
-
- 1 answer
- 1451 views
-
- 0 answers
- 1425 views
-
- 0 answers
- 1370 views
-
Question
carlinhoo0ww 0
olá galerinha do xtibia.
alguem poderia editar um script pra mim pf ?
adicionar umas msg para o movements [2392] = 2
o script é esse.
esse é o LIB
cityMonsters = {
--["monster_name"] = recomendo número anterior + 1,
["Chanceler Carlin"] = 1,
["Chanceler Kazz"] = 2,
["Chanceler Ab"] = 3,
--etc
}
DEFAULT_STORAGE = 49198
function setGuildExperience(guildId, exp)
for _, pid in pairs(getPlayersOnline()) do
if getPlayerGuildId(pid) == guildId then
doPlayerSetExperienceRate(pid, exp)
end
end
end
function getGuildExpRate(guildId)
for _, pid in pairs(getPlayersOnline()) do
local playerRate = getPlayerRates(pid)[8]
if getPlayerGuildId(pid) == guildId and playerRate > 1 then
return playerRate
end
end
return 1.0
end
function getGuildName(guild_id) --Omega
local query = db.getResult("SELECT name FROM guilds WHERE id = "..guild_id)
local ret = query:getID() == -1 and false or query:getDataString("name")
query:free()
return ret
end
e esse o movements dele
local guilds = {
--[actionid] = número da cidade configurado em cityMonsters,
[2391] = 1,
[2392] = 2,
[2393] = 3,
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then return true end
local guildId = getGlobalStorageValue(guilds[item.actionid] + DEFAULT_STORAGE)
if getPlayerGuildId(cid) ~= guildId then
doTeleportThing(cid, fromPosition)
end
return true
end
Link to comment
Share on other sites
0 answers to this question
Recommended Posts