Sziasztok!
1,Nem akar menni a hátas a quest miatt..
quest:
quest ride begin
state start begin
function Ride( vnum )
ride_info = {
[71114] = { 20110, 5*60,apply.DEF_GRADE_BONUS, 70,75, true }, --gelb
[71115] = { 20110, 5*60,apply.DEF_GRADE_BONUS, 100,100, true }, --blau
[71116] = { 20111, 5*60,apply.DEF_GRADE_BONUS, 100,80, true }, --gelb
[71117] = { 20111, 5*60,apply.DEF_GRADE_BONUS, 150,100, true }, --blau
[71118] = { 20112, 5*60,apply.DEF_GRADE_BONUS, 125,80, true }, --gelb
[71119] = { 20112, 5*60,apply.DEF_GRADE_BONUS, 200,100, true }, --blau
[71120] = { 20113, 5*60,apply.ATT_GRADE_BONUS, 200,85, true }, --gelb
[71121] = { 20113, 5*60,apply.ATT_GRADE_BONUS, 400,110, true }, --blau
[52026] = { 20210, 5*60,apply.ATTBONUS_MONSTER, 5,1, false }, --blau
[52027] = { 20210, 5*60,apply.EXP_DOUBLE_BONUS, 1,1, false }, --blau
[52028] = { 20210, 5*60,apply.MAX_HP, 500,1, false }, --blau
[52029] = { 20210, 5*60,apply.DEF_GRADE_BONUS, 150,1, false }, --blau
[52030] = { 20210, 5*60,apply.ATT_GRADE_BONUS, 100,1, false }, --blau
[52056] = { 20211, 5*60,apply.ATTBONUS_MONSTER, 5,1, false }, --blau
[52057] = { 20211, 5*60,apply.EXP_DOUBLE_BONUS, 1,1, false }, --blau
[52058] = { 20211, 5*60,apply.MAX_HP, 500,1, false }, --blau
[52059] = { 20211, 5*60,apply.DEF_GRADE_BONUS, 150,1, false }, --blau
[52060] = { 20211, 5*60,apply.ATT_GRADE_BONUS, 100,1, false }, --blau
[52041] = { 20212, 5*60,apply.ATTBONUS_MONSTER, 5,1, false }, --blau
[52042] = { 20212, 5*60,apply.EXP_DOUBLE_BONUS, 1,1, false }, --blau
[52043] = { 20212, 5*60,apply.MAX_HP, 500,1, false }, --blau
[52044] = { 20212, 5*60,apply.DEF_GRADE_BONUS, 150,1, false }, --blau
[52045] = { 20212, 5*60,apply.ATT_GRADE_BONUS, 100,1, false }, --blau
[71124] = { 20114, item.get_socket(2)*100,POINT_EXP_DOUBLE_BONUS,1,1, true }, ----Weißer Löwe
[71125] = { 20115, item.get_socket(2)*60,apply.ATTBONUS_MONSTER,20,1, true }, --Kriegskeiler
[71126] = { 20116, item.get_socket(2)*60,apply.STEAL_HP,15,1, true }, --Streitwolf-Siegel
[71127] = { 20117, item.get_socket(2)*60,apply.HP_REGEN,50,1, true }, --Sturmtiger-Siegel
[71128] = { 20118, item.get_socket(2)*60,POINT_DEF_BONUS,15,1, true }, --Schlachtenlöwen-Siegel
[52066] = { 20215, item.get_socket(2)*50,ATTBONUS_MONSTER,15,1, true }, --Schlachtenlöwen-Siegel
[71124] = { 20114, item.get_socket(2)*100,POINT_EXP_DOUBLE_BONUS,1,1, true }, ----Weißer Löwe
[71126] = { 20116, item.get_socket(2)*100,POINT_EXP_DOUBLE_BONUS,1,1, true }, --Streitwolf-Siegel
[71127] = { 20117, item.get_socket(2)*60,apply.HP_REGEN,50,1, true }, --Sturmtiger-Siegel
[71128] = { 20118, 180*60,apply.ATT_GRADE_BONUS,10,20, true },
[71131] = { 20221, 180*60,apply.DEF_GRADE_BONUS,100,100, true },
[71137] = { 20120, item.get_socket(2)*60,PREMIUM_EXP,30,100, false }, --Horse_event
}
if pc.level < ride_info[vnum][5] then
say_title("Informa?ie:")
say("Nu ai nivelul necesar pentru a îmblânzi acest")
say("mount, înearca mai târziu.")
return
elseif pc.is_polymorphed() then
say_title("Informa?ie:")
say("Nu po?i face aoa ceva cât timp eoti transformat.")
return
elseif pc.is_riding() then
say_title("Informa?ie:")
say("Nu po?i face aoa ceva, deoarece eoti")
say("deja pe un mount..")
return
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] )
if true == ride_info[vnum][6] then
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 --normal pecsét
or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use begin --specialis pecsét
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
return
end
ride.Ride(item.get_vnum())
end
when login begin
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
return
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
így csak gm tud rá ülni ??? a playereknél kiadja ezt a részt:
if pc.level < ride_info[vnum][5] then
say_title("Informa?ie:")
say("Nu ai nivelul necesar pentru a îmblânzi acest")
say("mount, înearca mai târziu.")
return
elseif pc.is_polymorphed() then
say_title("Informa?ie:")
say("Nu po?i face aoa ceva cât timp eoti transformat.")
return
elseif pc.is_riding() then
say_title("Informa?ie:")
say("Nu po?i face aoa ceva, deoarece eoti")
say("deja pe un mount..")
return
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] )
if true == ride_info[vnum][6] then
end
hogy lehetne kiszedni és rátudjon ülni meg leszálni??
2, Hogy tudom megcsinálni azt hogy csak 15 napig lehessen használni?
És ezt kliensben is kiírja és a bónuszokat is.
Előre is köszi a segítséget.
csak GM tud ráülni:
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
az itt felsorolt mappokon csak GM tud mountra ülni
a második hogy kiír egy szöveget ezzel kapcsolatos lehet, bár nem tudok külföldiül és lusta vagyok lefordítani
ha ezt vesszük alapul:
[71114] = { 20110, 5*60,apply.DEF_GRADE_BONUS, 70,75, true },
71114 -> hívó id
20110 -> mob id
5*60 -> 5 percig ülhetsz rajta
apply.DEF_GRADE_BONUS, 70 -> 70 védelmet ad ha rajta ülsz
75 -> lvl 75-től használható
2, Hogy tudom megcsinálni azt hogy csak 15 napig lehessen használni?
- item protoban LIMIT_NONE -> LIMIT_REAL_TIME majd utána kiszámolod a 15 napot másodpercben és beírod a következő oszlopba
bónusz értékét pedig item_desc txt