OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[Script] De Pesca :D 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
spoor (83)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
Dj Pacos (73)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
God Skit (68)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
GoD MexicanSoul (40)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
fuzzy (35)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
Eddie (31)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
GOD Chimito (30)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 
conalep1996 (23)
[Script] De Pesca :D Vote1111[Script] De Pesca :D Vote2111[Script] De Pesca :D Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[Script] De Pesca :D Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[Script] De Pesca :D Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[Script] De Pesca :D Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[Script] De Pesca :D Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[Script] De Pesca :D Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[Script] De Pesca :D Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[Script] De Pesca :D Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[Script] De Pesca :D Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[Script] De Pesca :D Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[Script] De Pesca :D Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[Script] De Pesca :D

Ir abajo

[Script] De Pesca :D Empty [Script] De Pesca :D

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Sáb Ene 29, 2011 3:13 pm

crean un archivo.lua lo llaman pesca.lua lo ponen en data/action/scripts :



Código:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625},
rateSkill = getConfigValue("rateSkill"),
allowFromPz = false,
useWorms = true
}

local monsters = {'Quara Hydromancer', 'Quara Constrictor', 'Quara Mantassin', 'Quara Pincher', 'Quara Predator', 'Serpent Spawn', 'Wyrm', 'Sea Serpent', 'Titan Goddess of Water'}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isInArray(config.waterIds, itemEx.itemid)) then
return false
end

if((config.allowFromPz or not getTileInfo(getCreaturePosition(cid)).protection) and itemEx.itemid ~= 493 and math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) < getPlayerSkill(cid, SKILL_FISHING) and (not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and doPlayerRemoveItem(cid, ITEM_WORM, 1)))) then
if getPlayerLevel(cid) >= 5000 and getPlayerSkillLevel(cid, SKILL_FISHING) >= 100 then
randsummon = math.random(0,9)
elseif getPlayerLevel(cid) >= 5000 then
randsummon = math.random(0,5)
elseif getPlayerLevel(cid) >= 3000 then
randsummon = math.random(0,6)
elseif getPlayerLevel(cid) >= 1500 then
randsummon = math.random(0,4)
elseif getPlayerLevel(cid) >= 500 then
randsummon = math.random(0,2)
else
doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill)
end

if randsummon == 0 then
doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill)
else
doSummonMonster(monsters[randsummon], getCreaturePosition(cid))
doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill)
end
end

doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
return true
end

ahora en action.xml agregan lo siguiente:

Código:
<action itemid="id de la caña de pescar" event="script" value="pesca.lua"/>

~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.