Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest ride begin
- state start begin
- function Ride( vnum, remain_time )
- ride_info = {
- [71220] = { 20243, 60*60*1, apply.DEF_GRADE_BONUS, 50, 1, true },
- [71222] = { 20244, 60*60*1, apply.ATTBONUS_MONSTER, 15, 1, false },
- [71223] = { 20245, 60*60*1, apply.ATTBONUS_MONSTER, 15, 1, true },
- [71192] = { 20240, 60*60*1, apply.ATT_GRADE_BONUS, 70, 1, false },
- [71193] = { 20239, 60*60*1, apply.ATT_GRADE_BONUS, 100, 1, true },
- [71124] = { 20114, 60*60*1, apply.MAX_HP, 3000, 1, false },
- [71131] = { 20222, 60*60*1, apply.ATTBONUS_MONSTER, 15, 1, true },
- [71171] = { 20227, 60*60*1, apply.MOV_SPEED, 40, 1, false, false, false},
- [71172] = { 20226, 60*60*1, apply.MOV_SPEED, 40, 1, false, false, false},
- }
- if pc.level < ride_info[vnum][5] then
- syschat("Nu ai nivelul necesar pentru a folosi acest mount.")
- else
- if 112 == pc.get_map_index() then
- return
- end
- 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 vnum <= 71113 or vnum >71121 then
- return
- end
- if 0 != vnum then
- ride.Ride(vnum, remain_time)
- end
- end
- when 71220.use or 71222.use or 71223.use or 71192.use or 71193.use or 71124.use or 71131.use
- or 71171.use or 71172.use begin
- if pc.is_polymorphed() then
- syschat("Nu poti folosi un mount cand esti transformat..")
- elseif false == pc.is_riding() then
- if true == horse.is_summon() then
- horse.unsummon()
- end
- ride.Ride(item.vnum, 0)
- else
- syschat("Calaresti un mount puternic.")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment