Idéz
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[5] then
syschat(string.format("Nincs meg a szükséges szinted! (Lv.%d)",ride_info[5]))
return
elseif pc.is_polymorphed() then
syschat("Átváltozva nem lovagolhatsz!")
return
elseif pc.is_riding() then
syschat("Te jelenleg is lovagolsz!")
return
else
if r!= nil or r!=0 or r!='' then
pc.mount(ride_info[1], ride_info[2])
pc.mount_bonus(ride_info[3], ride_info[4], ride_info[2])
else
pc.mount(ride_info[1], r)
pc.mount_bonus(ride_info[3], ride_info[4], r)
end
if horse.is_summon() then
horse.unsummon()
end
if true == ride_info[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 lovagolhatsz!")
return
elseif pc.is_riding() then
syschat("Te jelenleg is lovagolsz!")
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 idézhetsz 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 idézhetsz 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
Van itt ez a quest. Rá kattintok a pecsétre és nem csinál semmit. Valakinek valami ötlete?
itemek type-ja 18?
Igen
Fel-le vehetősre a legegyszerűbb megírni a mountokat.
Szóval akkor ötlet.?
type : 16
subtype : 2
antiflag : 33024
flag : 9216
wearflag : 128
Value0-hoz:
pl.: 2 hónap: 5184000 sec
quest:
quest pecsetek begin
state start begin
when PECSETID.use begin
pc.mount(MOUNTID)
end
when PECSETID.use begin
pc.mount(MOUNTID)
end
when PECSETID.use begin
pc.mount(MOUNTID)
end
when PECSETID.use begin
pc.mount(MOUNTID)
end
when PECSETID.use begin
pc.mount(MOUNTID)
end
end
end
Syserrbe nem ít semmit? Biztos ezeken az id-ken vannak a mountok (nem a pecsétek)?
Idézetet írta: Akria Dátum 2014-02-18, 08:38:50
Syserrbe nem ít semmit? Biztos ezeken az id-ken vannak a mountok (nem a pecsétek)?
Igen minden stimmel, mégse reagál a quest semmire.
Amúgy, quest_listbe szerepel??
./qc-ztad??
Funkciók szerepelnek quest_functionsba??
Ha ezek mind megvannak, és mégse jó akkor egy kalap szar a quest ezért használd azt amit Pisti írt.
Próbáld meg hogy a for-os részeket kicseréled. Valahogy így:
Sok szerver nem szereti a for-t...
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[5] then
syschat(string.format("Nincs meg a szükséges szinted! (Lv.%d)",ride_info[5]))
return
elseif pc.is_polymorphed() then
syschat("Átváltozva nem lovagolhatsz!")
return
elseif pc.is_riding() then
syschat("Te jelenleg is lovagolsz!")
return
else
if r!= nil or r!=0 or r!='' then
pc.mount(ride_info[1], ride_info[2])
pc.mount_bonus(ride_info[3], ride_info[4], ride_info[2])
else
pc.mount(ride_info[1], r)
pc.mount_bonus(ride_info[3], ride_info[4], r)
end
if horse.is_summon() then
horse.unsummon()
end
if true == ride_info[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 lovagolhatsz!")
return
elseif pc.is_riding() then
syschat("Te jelenleg is lovagolsz!")
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 pc.get_map_index() == 113 or pc.get_map_index() == 118 or pc.get_map_index() == 119 or pc.get_map_index() == 120 or pc.get_map_index() == 122
or pc.get_map_index() == 123 or pc.get_map_index() == 124 or pc.get_map_index() == 126 or pc.get_map_index() == 127 or pc.get_map_index() == 128 and not pc.is_gm() then
--if i==disablemaps[p] and not pc.is_gm() then
syschat("Ezen a mapon nem idézhetsz 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 pc.get_map_index() == 113 or pc.get_map_index() == 118 or pc.get_map_index() == 119 or pc.get_map_index() == 120 or pc.get_map_index() == 122
or pc.get_map_index() == 123 or pc.get_map_index() == 124 or pc.get_map_index() == 126 or pc.get_map_index() == 127 or pc.get_map_index() == 128 and not pc.is_gm() then
--if i==disablemaps[p] and not pc.is_gm() then
--if pc.is_riding() then
syschat("Ezen a mapon nem idézhetsz 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
Ami még szemet szúrt, hogy a mount_bonus-nak is időt ad.
Én eddig csak a bónuszt, illetve a bónusz mennyiségét adtam meg és működött. Lehet az se tetszik neki.
Kicsit másképp megoldva, ezért zárom a témát!