elite*gold: 0
Join Date: Aug 2011
Posts: 396
Received Thanks: 184
|
quest ride begin
state start begin
function Ride( vnum )
ride_info = {
[71114] = { 20116, "Keiler", 5*60,apply.DEF_GRADE_BONUS, 20,75, true }, --Keiler
[71116] = { 20118, "Wolf", 5*60,apply.DEF_GRADE_BONUS, 30,80, true }, --Wolf
[71118] = { 20117, "Feuer Tiger", 5*60,apply.DEF_GRADE_BONUS, 50,80, true }, ----Feuer Tiger
[71120] = { 20115, "Löwen", 5*60,apply.ATT_GRADE_BONUS, 100,85, true }, --Löwe
[71122] = { 20114, "Weißen Löwen", item.get_socket(2)*60,POINT_EXP_DOUBLE_BONUS,1,1, false }, ----Weißer Löwe
[71124] = { 20111, "Dämonenkeiler", 30*60,apply.ATTBONUS_MONSTER, 20,1, false }, --Dämonenkeiler
[71126] = { 20113, "Dämonenwolf", 30*60,apply.STEAL_HP, 13,1, false }, --Dämonenwolf
[71128] = { 20112, "Dämonentiger", 30*60,apply.HP_REGEN, 30,1, false }, --Dämonentiger
[71130] = { 20110, "Dämonenlöwen", 30*60,POINT_DEF_BONUS, 15,1, false }, --Dämonenlöwe
[71134] = { 20210, "Blutrotenkeiler", 60*60,apply.DEF_GRADE_BONUS, 75,1, false }, --Blutroterkeiler
[71137] = { 20212, "Blutrotenwolf", 60*60,apply.DEF_GRADE_BONUS, 100,1, false }, --Blutroterwolf
[71138] = { 20211, "Blutrotentiger", 60*60,apply.DEF_GRADE_BONUS, 125,1, false }, --Blutrotertiger
[71140] = { 20209, "Blutrotenlöwen", 60*60,apply.ATT_GRADE_BONUS, 200,1, false }, --Blutroterlöwe
[71154] = { 20206, "Verfluchten Keiler", 180*60,apply.ATTBONUS_MONSTER, 35,1, false }, ----Verfl Keiler
[71156] = { 20208, "Verfluchten Wolf", 60*60,apply.STEAL_HP, 20,1, false }, ----Verfl Wolf
[71158] = { 20207, "Verfluchten Tiger", 60*60,apply.HP_REGEN, 50,1, false }, ----Verfl Tiger
[71160] = { 20205, "Verfluchten Löwen", 60*60,POINT_DEF_BONUS, 20,1, false }, ----Verfl Löwe
[71161] = { 20228, "Schaf", item.get_socket(2)*60,POINT_EXP_DOUBLE_BONUS, 1,1, false }, --Schaf
}
if pc.level < ride_info[vnum][6] then
chat("Dein Level ist zu niedrig für dieses Reittier!")
chat("Du würdest es nicht zähmen können...")
return
elseif pc.is_polymorphed() then
chat("Du kannst nicht reiten, während du verwandelt bist.")
return
elseif pc.is_riding() then
chat("Du kannst kein Reittier beschwören, du reitest noch.")
return
else
if pc.get_map_index() == 1 then
if pc.get_empire() == 1 then
pc.mount( ride_info[vnum][1], ride_info[vnum][3] )
pc.mount_bonus( ride_info[vnum][4], ride_info[vnum][5], ride_info[vnum][3] )
if 20228 == ride_info[vnum][1] then
chat("Du hast dein ".. ride_info[vnum][2] .." gerufen!")
else
chat("Du hast deinen ".. ride_info[vnum][2] .." gerufen!")
end
else
syschat("Dir wurde das Reiten in diesem Gebiet verweigert.")
cmdchat("buffmount")
return
end
elseif pc.get_map_index() == 21 then
if pc.get_empire() == 2 then
pc.mount( ride_info[vnum][1], ride_info[vnum][3] )
pc.mount_bonus( ride_info[vnum][4], ride_info[vnum][5], ride_info[vnum][3] )
if 20228 == ride_info[vnum][1] then
chat("Du hast dein ".. ride_info[vnum][2] .." gerufen!")
else
chat("Du hast deinen ".. ride_info[vnum][2] .." gerufen!")
end
else
syschat("Dir wurde das Reiten in diesem Gebiet verweigert.")
cmdchat("buffmount")
return
end
elseif pc.get_map_index() == 41 then
if pc.get_empire() == 3 then
pc.mount( ride_info[vnum][1], ride_info[vnum][3] )
pc.mount_bonus( ride_info[vnum][4], ride_info[vnum][5], ride_info[vnum][3] )
if 20228 == ride_info[vnum][1] then
chat("Du hast dein ".. ride_info[vnum][2] .." gerufen!")
else
chat("Du hast deinen ".. ride_info[vnum][2] .." gerufen!")
end
else
syschat("Dir wurde das Reiten in diesem Gebiet verweigert.")
cmdchat("buffmount")
return
end
else
pc.mount( ride_info[vnum][1], ride_info[vnum][3] )
pc.mount_bonus( ride_info[vnum][4], ride_info[vnum][5], ride_info[vnum][3] )
if 20228 == ride_info[vnum][1] then
chat("Du hast dein ".. ride_info[vnum][2] .." gerufen!")
else
chat("Du hast deinen ".. ride_info[vnum][2] .." gerufen!")
end
return
end
if true == ride_info[vnum][7] then
pc.remove_item(vnum, 1)
end
end
end
when 71114.use or 71116.use or 71118.use or 71120.use ----Normale siegel
or 71122.use ----W Löwe Siegel
or 71124.use or 71126.use or 71128.use or 71130.use ----Dämonen Siegel
or 71134.use or 71137.use or 71138.use or 71140.use ----Blutrote Siegel
or 71154.use or 71156.use or 71158.use or 71160.use ----Verfl Siegel
or 71161.use begin ----Schaf Siegel
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
say("Du darfst das Reittier hier nicht rufen.")
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
say_title("Information:")
say("Du kannst das Rettier, nicht in diesem Gebiet rufen.")
cmdchat("buffmount")
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
versuchs mal jetzt
|