Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest wierzchowce begin
- state start begin
- function mounts_data( vnum, remain_time )
- ride_info = {
- [52001] = { 20201, 5*60, apply.MOV_SPEED, 0, apply.MOV_SPEED, 0, 1, false },
- }
- if pc.level < ride_info[vnum][5] then
- syschat("Twoja postać posiada za mały poziom aby użyć tego wierzchowca.")
- else
- 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 )
- pc.mount_bonus( ride_info[vnum][5], ride_info[vnum][6], 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] )
- pc.mount_bonus( ride_info[vnum][5], ride_info[vnum][6], 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 0 != vnum then
- wierzchowce.mounts_data(vnum, remain_time)
- end
- end
- when 52001.use begin
- if pc.is_polymorphed() then
- syschat("Nie możesz użyć wierzchowca ponieważ jesteś przemieniony.")
- elseif false == pc.is_riding() then
- if true == horse.is_summon() then
- horse.unsummon()
- end
- wierzchowce.mounts_data(item.vnum, 0)
- else
- pc.unmount()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement