Ride hiba

Started by _Luc1fer_, 2016-08-21, 20:46:22

Sziasztok!
Adott egy ItemVnum (71124), nos ugye ha rákattolok simán felül rá a karakter.
Alatta a következő Vnum-k (71125-26-27-28) valamiért nem müködnek! Felül rá és azonnal le is száll, de a pecsét fent marad.
Costume mount van betéve és minden remekül müködik csak ez nem, szerintem quest-el van valami gondja :c
Esetleg valaki tudna rá megoldást?

Quest:
quest ride begin
state start begin
function Ride(i,r)
ride_info = {
-- [iVnum] = { mVnum, time, bonus_name, bonus_value, level_limit, remove_item},
[71114] = { 20110, 5*60, apply.DEF_GRADE_BONUS,  70, 75, true }, --sárga
[71115] = { 20110, 5*60, apply.DEF_GRADE_BONUS, 100, 85, true }, --kék
[71116] = { 20111, 5*60, apply.DEF_GRADE_BONUS, 100, 80, true }, --sárga
[71117] = { 20111, 5*60, apply.DEF_GRADE_BONUS, 150, 90, true }, --kék
[71118] = { 20112, 5*60, apply.DEF_GRADE_BONUS, 125, 80, true }, --sárga
[71119] = { 20112, 5*60, apply.DEF_GRADE_BONUS, 200, 90, true }, --kék
[71120] = { 20113, 5*60, apply.ATT_GRADE_BONUS, 200, 85, true }, --sárga
[71121] = { 20113, 5*60, apply.ATT_GRADE_BONUS, 400, 95, true }, --kék

[71124] = { 20114, item.get_socket(2)*60, POINT_EXP_DOUBLE_BONUS,  1, 1, false }, --Fehér oroszlán pecsét
[71125] = { 20115, item.get_socket(2)*60, apply.ATTBONUS_MONSTER, 20, 1, false }, --Harci vadkan pecsét
[71126] = { 20116, item.get_socket(2)*60, apply.STEAL_HP,  15, 1, false }, --Harci farkas pecsét
[71127] = { 20117, item.get_socket(2)*60, apply.HP_REGEN,  50, 1, false }, --Vihar tigris pecsét
[71128] = { 20118, item.get_socket(2)*60, POINT_DEF_BONUS, 15, 1, false }, --Harci oroszlán pecsét

-- [71131] = { 20119,  30*60, apply.SKILL, 1 ,1, false }, --Horse_event
-- [71132] = { 20119,  60*60, apply.SKILL, 1, 1, false }, --Horse_event
-- [71133] = { 20119, 120*60, apply.SKILL, 1, 1, false }, --Horse_event
-- [71134] = { 20119, 180*60, apply.SKILL, 1, 1, false }, --Horse_event

-- [71137] = { 20120, item.get_socket(2)*60, PREMIUM_EXP, 30, 100, false }, --Királytigris
}
if pc.get_level() < ride_info[i][5] then
syschat(string.format("Nincs meg a szükséges szinted! (Lv.%d)",ride_info[i][5]))
return
elseif pc.is_polymorphed() then
syschat("Átváltozva nem használhatod!")
return
elseif pc.is_riding() then
return
else
if r!= nil or r!=0 or r!='' then
pc.mount(ride_info[i][1], ride_info[i][2])
pc.mount_bonus(ride_info[i][3], ride_info[i][4], ride_info[i][2])
else
pc.mount(ride_info[i][1], r)
pc.mount_bonus(ride_info[i][3], ride_info[i][4], r)
end
if horse.is_summon() then
horse.unsummon()
end
if true == ride_info[i][6] then
pc.remove_item(i, 1)
end
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 --Normál pecsétek(s&k)
or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use --480H felrakható pecsétek
-- or 71131.use or 71132.use or 71133.use or 71134.use --Event lovak
-- or 71137.use --Királytigris
begin
if pc.is_polymorphed() then
syschat("Átváltozva nem használhatod!")
return
elseif pc.is_riding() then
return
else
local i = pc.get_map_index()
local disablemaps = { 113, 118, 119, 120, 122, 123, 124, 126, 127, 128 }
for p=1, table.getn(disablemaps),1 do
if i==disablemaps[p] and not pc.is_gm() then
syschat("Ezen a mapon nem használhatsz mountokat!")
return
end
end
ride.Ride(item.get_vnum())
end
end
when login begin
local i = pc.get_map_index()
local disablemaps = { 113, 118, 119, 120, 122, 123, 124, 126, 127, 128 }
for p=1, table.getn(disablemaps),1 do
if i==disablemaps[p] and not pc.is_gm() then
if pc.is_riding() then
syschat("Ezen a mapon nem használhatsz mountokat!")
pc.unmount()
end
end
end
local vnum, remain_time = pc.get_special_ride_vnum()
if 0 != vnum then
if pc.is_polymorphed() then
return
elseif pc.is_riding() then
return
else
ride.Ride(vnum, remain_time)
end
end
end
end
end
A kudarc olykor sikerhez vezet!

Szia a root.eix epk-ba npclist.txt be más az elérése ezért meg kell ott keresni az adott mountot /poly-val vagy /m-el megnézed és beírod a questbe.

" Az akadály az, amit akkor látsz, ha leveszed a szemed a célról. "

Átírtam más id-re a questben, de ugyanaz a hiba :/
A kudarc olykor sikerhez vezet!

Quoteitem.get_socket(2)
vagy írj normális értéket mob_proto->socket2-be, vagy ne ezt használd, hanem írj fix időt a questbe.

Átírtam normális időre és megy!
Pedig többször is átírtam már, de akkor kevés időt írtam neki vagy nemtudom.

Köszönöm a segítséget!
A kudarc olykor sikerhez vezet!