Mountok.

Indította xxxczoszkexxx, 2017-01-11, 18:24:54

Sziasztok! Olyan kérdésem lenne, hogy egy adott mounthoz, hogyan tudok bónuszt hozzá rendelni illetve, hogyan tudom időkorlátossá tenni? tehát pl 3 napig használható utánna eltűnjön?

2017-01-11, 20:25:46 #1 Utolsó szerkesztés: 2017-01-11, 20:39:35 Szerző: fabtam11
item_proto séma
20 napos esetén a value0=28800 (20*60*24)
Példa quest VZ-ből
quest ride begin
state start begin
function Ride( vnum, remain_time )
ride_info = {
[71114] = { 20110, 60*60, apply.DEF_GRADE_BONUS, 75, 1, true, false, false},
[71115] = { 20110, item.get_socket(2)*60, apply.DEF_GRADE_BONUS, 100, 1, false, false, false },
[71116] = { 20111, 60*60, apply.DEF_GRADE_BONUS, 100, 1, true, false, false },
[71117] = { 20111, item.get_socket(2)*60, apply.DEF_GRADE_BONUS, 150, 1, false, false, false },
[71118] = { 20112, 60*60, apply.DEF_GRADE_BONUS, 125, 1, true, false, false },
[71119] = { 20112, item.get_socket(2)*60, apply.DEF_GRADE_BONUS, 200, 1, false, false, false },
[71120] = { 20113, 60*60, apply.ATT_GRADE_BONUS, 200, 1, true, false, false },
[71121] = { 20113, item.get_socket(2)*60, apply.ATT_GRADE_BONUS, 300, 1, false, false, false },
-- new mount                                                                                       
[71124] = { 20114, item.get_socket(2)*60, apply.ATTBONUS_MONSTER, 20, 1, false, false, false },
[71125] = { 20115, item.get_socket(2)*60, apply.ATTBONUS_MONSTER, 20, 1, false, false, false},
[71126] = { 20116, item.get_socket(2)*60, apply.ATTBONUS_MONSTER, 20, 1, false, false, false},
[71127] = { 20117, item.get_socket(2)*60, apply.ATTBONUS_MONSTER, 20, 1, false, false, false},
[71128] = { 20118, item.get_socket(2)*60, apply.ATTBONUS_MONSTER, 20, 1, false, false, false},
[71131] = { 20119, item.get_socket(2)*60, apply.MAX_HP, 500, 1, false, false, false},
[71132] = { 20119, item.get_socket(2)*60, apply.MAX_HP, 1000, 1, false, false, false},
[71133] = { 20119, item.get_socket(2)*60, apply.MAX_HP, 1500, 1, false, false, false},
[71134] = { 20119, item.get_socket(2)*60, apply.MAX_HP, 2000, 1, false, false, false},
[71161] = { 20159, item.get_socket(2)*60, apply.MOV_SPEED, 60, 1, false, false, false},
                                                           

[52001] = { 20141, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52002] = { 20141, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52003] = { 20141, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52004] = { 20141, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52005] = { 20141, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52006] = { 20145, 60*60*24*365, apply.ATTBONUS_MONSTER, 3, 1, false, true },
[52007] = { 20145, 60*60*24*365, apply.MALL_EXPBONUS, 3, 1, false, true },
[52008] = { 20145, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52009] = { 20145, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52010] = { 20145, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52011] = { 20149, 60*60*24*365, apply.ATTBONUS_MONSTER, 5, 1, false, true },
[52012] = { 20149, 60*60*24*365, apply.MALL_EXPBONUS, 5, 1, false, true },
[52013] = { 20149, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52014] = { 20149, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52015] = { 20149, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },

[52016] = { 20142, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52017] = { 20142, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52018] = { 20142, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52019] = { 20142, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52020] = { 20142, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52021] = { 20146, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52022] = { 20146, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52023] = { 20146, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52024] = { 20146, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52025] = { 20146, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52026] = { 20150, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52027] = { 20150, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52028] = { 20150, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52029] = { 20150, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52030] = { 20150, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },


[52031]= { 20144, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52032]= { 20144, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52033]= { 20144, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52034]= { 20144, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52035]= { 20144, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52036]= { 20148, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52037]= { 20148, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52038]= { 20148, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52039]= { 20148, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52040]= { 20148, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52041]= { 20152, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52042]= { 20152, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52043]= { 20152, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52044]= { 20152, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52045]= { 20152, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },


[52046]= { 20143, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52047]= { 20143, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52048]= { 20143, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52049]= { 20143, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52050]= { 20143, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52051]= { 20147, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52052]= { 20147, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52053]= { 20147, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52054]= { 20147, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52055]= { 20147, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52056]= { 20151, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52057]= { 20151, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52058]= { 20151, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52059]= { 20151, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52060]= { 20151, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },


[52061]= { 20153, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52062]= { 20153, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52063]= { 20153, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52064]= { 20153, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52065]= { 20153, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52066]= { 20154, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52067]= { 20154, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52068]= { 20154, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52069]= { 20154, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52070]= { 20154, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52071]= { 20155, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52072]= { 20155, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52073]= { 20155, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52074]= { 20155, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52075]= { 20155, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },

-- Àü°©¾Ï¼ø·Ï
[52076]= { 20156, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52077]= { 20156, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52078]= { 20156, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52079]= { 20156, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52080]= { 20156, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52081]= { 20157, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52082]= { 20157, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52083]= { 20157, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52084]= { 20157, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52085]= { 20157, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52086]= { 20158, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52087]= { 20158, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52088]= { 20158, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52089]= { 20158, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52090]= { 20158, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },

-- Dragor
[52091]= { 20180, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52092]= { 20180, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52093]= { 20180, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52094]= { 20180, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52095]= { 20180, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52096]= { 20181, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52097]= { 20181, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52098]= { 20181, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52099]= { 20181, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52100]= { 20181, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52101]= { 20182, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52102]= { 20182, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52103]= { 20182, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52104]= { 20182, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52105]= { 20182, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },

-- moa
[52106]= { 20160, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 1, false, true },
[52107]= { 20160, 60*60*24*365, apply.MALL_EXPBONUS, 0, 1, false, true },
[52108]= { 20160, 60*60*24*365, apply.MAX_HP, 0, 1, false, true },
[52109]= { 20160, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 1, false, true },
[52110]= { 20160, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 1, false, true },
[52111]= { 20161, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 1, false, true },
[52112]= { 20161, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 1, false, true },
[52113]= { 20161, 60*60*24*365, apply.MAX_HP, 250, 1, false, true },
[52114]= { 20161, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 1, false, true },
[52115]= { 20161, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 1, false, true },
[52116]= { 20162, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 1, false, true },
[52117]= { 20162, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 1, false, true },
[52118]= { 20162, 60*60*24*365, apply.MAX_HP, 500, 1, false, true },
[52119]= { 20162, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 1, false, true },
[52120]= { 20162, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 1, false, true },

--Karácsonyi szarvas, jegesmedve és panda mount
[71164]= { 20220,   item.get_socket(2)*60,  apply.MOV_SPEED,    60,     1,  false,  false,  false},
[71165]= { 20221,   item.get_socket(2)*60,  apply.MOV_SPEED,    60,     1,  false,  false,  false},
[71166]= { 20222,   item.get_socket(2)*60,  apply.MOV_SPEED,    60,     1,  false,  false,  false},


--király tigris
[71137]= { 20120,   item.get_socket(2)*60,  apply.MALL_EXPBONUS,    20,     1,  false,  false,  false},
[71138]= { 20121,   item.get_socket(2)*60,  apply.MALL_EXPBONUS,    20,     1,  false,  false,  false},
[71139]= { 20122,   item.get_socket(2)*60,  apply.MALL_EXPBONUS,    20,     1,  false,  false,  false},
[71140]= { 20123,   item.get_socket(2)*60,  apply.MALL_EXPBONUS,    20,     1,  false,  false,  false},
[71141]= { 20124,   item.get_socket(2)*60,  apply.MALL_EXPBONUS,    20,     1,  false,  false,  false},
[71142]= { 20125,   item.get_socket(2)*60,  apply.MALL_EXPBONUS,    20,     1,  false,  false,  false},

--Dragor test és Tûz, jég unikornis
[71180] = { 20180, item.get_socket(2)*60, apply.DEF_GRADE_BONUS, 150, 1, false, false, false},
[71181] = { 20181, item.get_socket(2)*60, apply.DEF_GRADE_BONUS, 175, 1, false, false, false},
[71182] = { 20182, item.get_socket(2)*60, apply.DEF_GRADE_BONUS, 200, 1, false, false, false},
[71183] = { 20184, item.get_socket(2)*60, apply.ATT_GRADE_BONUS, 100, 1, false, false, false},
[71184] = { 20183, item.get_socket(2)*60, apply.ATT_GRADE_BONUS, 100, 1, false, false, false},
}

if pc.level < ride_info[vnum][5] then
syschat("Még nincs meg a szinted.")
else
if ride_info[vnum][2] == 0 and remain_time != 0 then
pc.mount( ride_info[vnum][1], remain_time*60 )
pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 )
else
pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] )
end

if true == ride_info[vnum][6] then
pc.remove_item(vnum, 1)
end
end
end

when login begin
local vnum, remain_time = pc.get_special_ride_vnum()

if 0 != vnum then
ride.Ride(vnum, remain_time)
end
end

when 71114.use or 71115.use or 71116.use or 71117.use or
71118.use or 71119.use or 71120.use or 71121.use or 71124.use or
71125.use or 71126.use or 71127.use or 71128.use or
     71161.use or
52001.use or 52002.use or 52003.use or 52004.use or 52005.use  or 52006.use or 52007.use or 52008.use or 52009.use or 52010.use  or 52011.use or 52012.use or 52013.use or 52014.use or 52015.use or
  52016.use or 52017.use or 52018.use or 52019.use or 52020.use  or 52021.use or 52022.use or 52023.use or 52024.use or 52025.use  or 52026.use or 52027.use or 52028.use or 52029.use or 52030.use or
  52031.use or 52032.use or 52033.use or 52034.use or 52035.use  or 52036.use or 52037.use or 52038.use or 52039.use or 52040.use  or 52041.use or 52042.use or 52043.use or 52044.use or 52045.use or
  52046.use or 52047.use or 52048.use or 52049.use or 52050.use  or 52051.use or 52052.use or 52053.use or 52054.use or 52055.use  or 52056.use or 52057.use or 52058.use or 52059.use or 52060.use or
52061.use or 52062.use or 52063.use or 52064.use or 52065.use or 52066.use or 52067.use or 52068.use or 52069.use or 52070.use or 52071.use or 52072.use or 52073.use or 52074.use or 52075.use or
52076.use or 52077.use or 52078.use or 52079.use or 52080.use or 52081.use or 52082.use or 52083.use or 52084.use or 52085.use or 52086.use or 52087.use or 52088.use or 52089.use or 52090.use or 71164.use or 71180.use or 71181.use or 71182.use or 71183.use or 71184.use
or 71165.use or 71166.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 71131.use or 71132.use or 71133.use or 71134.use or
52091.use or 52092.use or 52093.use or 52094.use or 52095.use or 52096.use or 52097.use or 52098.use or 52099.use or 52100.use or 52101.use or 52102.use or 52103.use or 52104.use or 52105.use or
52106.use or 52107.use or 52108.use or 52109.use or 52110.use or 52111.use or 52112.use or 52113.use or 52114.use or 52115.use or 52116.use or 52117.use or 52118.use or 52119.use or 52120.use begin
if pc.is_polymorphed() then
syschat("Próbáld újra ha nem vagy átváltoztva.")
elseif false == pc.is_riding() then
if true == horse.is_summon() then
horse.unsummon()
end

-- ¹«ÇÑ´ë·Î ¼³Á¤(60³â)
-- item.set_socket(2, 60*24*365*60)
ride.Ride(item.vnum, 0)
else
pc.unmount()
--say("ÀÌ¹Ì Å»°ÍÀ» ÀÌ¿ëÁßÀÔ´Ï´Ù.")
--say("")
end
end
end
end