Conectarse
Buscar
Mejores posteadores
XxStroksxX (463) | ||||
~*~[:Đαяќ:]~[:тιβια:]~*~ (366) | ||||
spoor (83) | ||||
Dj Pacos (73) | ||||
God Skit (68) | ||||
GoD MexicanSoul (40) | ||||
fuzzy (35) | ||||
Eddie (31) | ||||
GOD Chimito (30) | ||||
conalep1996 (23) |
Últimos temas
Temas más activos
Miembros que empiezan más temas
XxStroksxX | ||||
~*~[:Đαяќ:]~[:тιβια:]~*~ | ||||
God Skit | ||||
spoor | ||||
GoD MexicanSoul | ||||
fuzzy | ||||
Eddie | ||||
conalep1996 | ||||
God Rakzzo | ||||
Cletus |
[Movement] Sqm Trainer!! :D
2 participantes
Página 1 de 1.
[Movement] Sqm Trainer!! :D
Bueno lo que hace este script es que te paras arriba de un sqm y ai empesas a entrenar como si estubieran con un training monk pero la subida de skill depende de la arma que uses
si es spear sube distance, shield y ml.
van hacia data/movements/scripts/y crear un archivo llamado sqtrain ahi le pones esto:
en movement.xml ponen:
data/creaturescrips/scripts/login.lua agregar esto:
si es spear sube distance, shield y ml.
van hacia data/movements/scripts/y crear un archivo llamado sqtrain ahi le pones esto:
- Código:
-- Config --
local skillTries = 10 -- Number of tries per skill
local t = 2 * 1000 -- Set the time before try is added to skills
local lock = 10 -- Time to wait before start again in seconds
-- Weapon Types --
local weaponTypes = {
{ 1, 2 }, -- Sword
{ 2, 1 }, -- Club
{ 3, 3 }, -- Axe
{ 4, 5 }, -- Shield
{ 5, 4 } -- Distance
}
function onStepIn(cid, item, pos, fromPos)
local p = {cid = cid, item = item, pos = pos}
if getPlayerStorageValue(p.cid, 18010) == 2 then
doTeleportThing(p.cid, fromPos, TRUE)
doPlayerSendTextMessage(p.cid,22,"You must wait "..lock.." seconds before you start again")
return false
end
setPlayerStorageValue(p.cid, 18010, 1)
if isPlayer(p.cid) and p.item.actionid == 900 then
doPlayerSendTextMessage(p.cid,22,"Your training session will now begin")
addEvent(trainMe, t, p)
end
return true
end
function onStepOut(cid, item)
if getPlayerStorageValue(cid, 18010) == 2 then
return false
end
setPlayerStorageValue(cid, 18010, 2)
addEvent(trainLock, lock * 1000, cid)
doPlayerSendTextMessage(cid,22,"Your training session has now ended")
return true
end
function trainLock (cid)
if isPlayer(cid) then
setPlayerStorageValue(cid, 18010, 0)
end
end
function trainMe(p)
if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 and p.item.actionid == 900 then
local weaponLeft = getPlayerSlotItem(p.cid, CONST_SLOT_LEFT)
local weaponRight = getPlayerSlotItem(p.cid, CONST_SLOT_RIGHT)
if weaponLeft.itemid ~= 0 then
weaponLeft = getItemWeaponType(weaponLeft.uid)
end
if weaponRight.itemid ~= 0 then
weaponRight = getItemWeaponType(weaponRight.uid)
end
for _, t in pairs(weaponTypes) do
if t[1] == weaponLeft or t[1] == weaponRight then
doPlayerAddSkillTry(p.cid, t[2], skillTries)
end
end
manaspent = getPlayerMana(p.cid)
doPlayerAddSpentMana(p.cid, manaspent)
doTargetCombatMana(0, p.cid, -manaspent, -manaspent, CONST_ME_NONE)
doSendMagicEffect(getPlayerPosition(p.cid),34)
addEvent(trainMe, t, p)
end
return true
end
en movement.xml ponen:
- Código:
<!-- Trainer Square -->
<movevent type="StepIn" actionid="900" script="sqtrainer.lua"/>
<movevent type="StepOut" actionid="900" script="sqtrainer.lua"/>
data/creaturescrips/scripts/login.lua agregar esto:
- Código:
setPlayerStorageValue(cid, 18010, 0)
Temas similares
» [Movement] Anti AFK
» [Movement] piso que quita sangre
» [Action, Movement] Tragaperras Casino (Slot Machine)
» [Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features)
» [Movement] piso que quita sangre
» [Action, Movement] Tragaperras Casino (Slot Machine)
» [Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features)
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.
Lun Jun 08, 2015 12:08 pm por keishmer91
» [ACTION] God/GM da item a un player
Mar Dic 02, 2014 12:53 pm por hecmanos
» [8.60] Nuevo War Thais By TheRobertxon
Vie Jun 20, 2014 10:56 am por luismc
» [7.92]Naruto Final Story!
Dom Mayo 26, 2013 2:40 am por ricardotuck
» [9.1] Fun Server
Mar Mayo 14, 2013 5:32 pm por skifer
» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
Mar Mayo 14, 2013 5:29 pm por skifer
» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
Mar Mayo 07, 2013 5:27 pm por tonyso
» Ocean Clasic Global Map 8.6
Miér Mayo 01, 2013 11:19 pm por maganiua
» ayuda a abrir puertos
Lun Abr 29, 2013 5:58 pm por XxStroksxX
» [8.60] Speedy War
Dom Abr 28, 2013 5:51 pm por Sunnade'Audio