笑谈学校吧 关注:1,398贴子:47,045

回复:笑谈学校修改法

只看楼主收藏回复

!= idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateend end#结束DEFend#结束CLASSclass Arrow_Actorif @self_alias == nilalias self_update update@self_alias = trueenddef updatemouse_x, mouse_y = Mouse.get_mouse_posif mouse_y > (480/2) and mouse_y <= (480) idx = 0for i in $game_party.actors doif i.exist?top_x = i.screen_x - self.oxtop_y = i.screen_y - self.oybottom_x = top_x + self.src_rect.widthbottom_y = top_y + self.src_rect.heightif (mouse_x > top_x - $角色选框扩大) and (mouse_y > top_y - $角色选框扩大) and(mouse_x < bottom_x + $角色选框扩大) and (mouse_y < bottom_y + $角色选框扩大)if @index != idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateelsif $shubiaoidx = 0for i in $game_troop.enemies doif i.exist?top_x = i.screen_x - self.oxtop_y = i.screen_y - self.oybottom_x = top_x + self.src_rect.widthbottom_y = top_y + self.src_rect.heightif (mouse_x > top_x - $敌人选框扩大) and (mouse_y > top_y - $敌人选框扩大) and(mouse_x < bottom_x + $敌人选框扩大) and (mouse_y < bottom_y + $敌人选框扩大)if @index != idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateendendend


33楼2011-12-03 21:00
回复
    / 2 and mouse_x < event.screen_x + event_width / 2 and mouse_y + 32 > event.screen_y + 32 - event_height and mouse_y + 32 < event.screen_y + 32for i in 0...event.list.sizereturn 1, event if ["Item", "Npc"].include?(event.list.parameters[0]) #返回存在自定义事件以及事件体endendendreturn 0, event #返回不存在自定义事件,以及事件体endend#=================以下两个用来调整战斗时的手感问题,可以自己试试。$敌人选框扩大 = 20$角色选框扩大 = 30
    #==============================================================================# ● API调用#==============================================================================$ShowCursor = Win32API.new("user32", "ShowCursor", 'i', 'l')$GetCursorPos = Win32API.new("user32", "GetCursorPos", 'p', 'i')$ScreenToClient = Win32API.new("user32", "ScreenToClient", 'ip', 'i')$GetActiveWindow = Win32API.new("user32", "GetActiveWindow", nil, 'l')$Window_HWND = $GetActiveWindow.call$GetKeyState = Win32API.new("user32", "GetKeyState", 'i', 'i')module Mouse LEFT = 0x01RIGHT = 0x02def self.init(sprite = nil)$ShowCursor.call(0)
    @show_cursor = false
    @mouse_ani_viewport = Viewport.new(0,0,640,480)@mouse_ani_viewport.z = 1@mouse_ani = RPG::Sprite.new(@mouse_ani_viewport)@mouse_ani.z = 1
    @mouse_bitmap = Bitmap.new('Menu/mouse/Mouse')#动态地址@mouse_sprite = Sprite.new@mouse_sprite.z = 99999@mouse_sprite.bitmap = Bitmap.new('Menu/mou****ouse_sprite.bitmap.fill_rect(Rect.new(0, 0, 32, 32), Color.new(0, 0, 0))
    $data_animations = load_data("Data/Animations.rxdata")@mouse_wait_count = $data_animations[204].frame_max * 2@mouse_wait = 0@b = 1@left_press = false@right_press = false@left_trigger = false@right_trigger = false@left_repeat = false@right_repeat = false@click_lock = false
    updateenddef self.exit@mouse_sprite.bitmap.dispose@mouse_sprite.dispose#..........................................................................@mouse_ani.dispose#..........................................................................@show_cursor = true$ShowCursor.call(1)enddef self.mouse_debugreturn @mouse_debug.bitmapend#.........................................................................def self.set_ani(x, y)@ani_x = x@ani_y = yx -= $game_map.display_x / 4y -= $game_map.display_y / 4@mouse_ani.x, @mouse_ani.y = x, y@mouse_ani.animation($data_animations[204],true)@mouse_wait = @mouse_wait_countenddef self.update_ani#if @mouse_wait > 0x = @ani_xy = @ani_yx -= $game_map.display_x / 4y -= $game_map.display_y / 4@mouse_ani.x, @mouse_ani.y = x, y@mouse_ani.update@mouse_wait -= 1endend#.........................................................................def self.update#.........................................................................update_ani#.........................................................................left_down = $GetKeyState.call(0x01)right_down = $GetKeyState.call(0x02)if Graphics.frame_count * 3 / Graphics.frame_rate != @total_sec@total_sec = Graphics.frame_count * 3 / Graphics.frame_rate@a = !@aendif @b >= 27@b = 0else@b += 1endif $scene.is_a?(Scene_Map) == false$mouse_icon_id = 0endif $mouse_icon_id != $mouse_icon_id_lastcase $mouse_icon_idwhen 1if @a@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/I')else@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/I2')endwhen 2if @a@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/N')else@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/N2')endwhen 11@mouse_sprite.


    35楼2011-12-04 05:24
    回复
      2026-02-19 05:23:42
      广告
      不感兴趣
      开通SVIP免广告
      bitmap = Bitmap.new('Menu/Mouse/M')when 12@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 13@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 14@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 16@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 17@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 18@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 19@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')when 0@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/M')end$mouse_icon_id_last = $mouse_icon_idelsecase $mouse_icon_idwhen 1if @a@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/I')else@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/I2')endwhen 2if @a@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/N')else@mouse_sprite.bitmap = Bitmap.new('Menu/Mouse/N2')endwhen 0x = @b % 4 * 32y = @b / 4 * 32@mouse_sprite.bitmap.clear@mouse_sprite.bitmap.stretch_blt(Rect.new(0,0,32,32),@mouse_bitmap,Rect.new(x,y,32,32))endend@click_lock = falsemouse_x, mouse_y = self.get_mouse_posif @mouse_sprite != nil@mouse_sprite.x = mouse_x@mouse_sprite.y = mouse_yendif left_down[7] == 1@left_repeat = (not @left_repeat)@left_trigger = (not @left_press)@left_press = trueelse@left_press = false@left_trigger = false@left_repeat = falseendif right_down[7] == 1@right_repeat = (not @right_repeat)@right_trigger = (not @right_press)@right_press = trueelse@right_press = false@right_trigger = false@right_repeat = falseendenddef self.get_mouse_pospoint_var = [0, 0].pack('ll')if $GetCursorPos.call(point_var) != 0if $ScreenToClient.call($Window_HWND, point_var) != 0x, y = point_var.unpack('ll')if (x < 0) or (x > 10000) then x = 0 endif (y < 0) or (y > 10000) then y = 0 endif x > 640 then x = 640 endif y > 480 then y = 480 endreturn x, yelsereturn 0, 0endelsereturn 0, 0endenddef self.press?(mouse_code)if mouse_code == LEFTif @click_lockreturn falseelsereturn @left_pressendelsif mouse_code == RIGHTreturn @right_presselsereturn falseendenddef self.trigger?(mouse_code)if mouse_code == LEFTif @click_lockreturn falseelsereturn @left_triggerendelsif mouse_code == RIGHTreturn @right_triggerelsereturn falseendenddef self.repeat?(mouse_code)if mouse_code == LEFTif @click_lockreturn falseelsereturn @left_repeatendelsif mouse_code == RIGHTreturn @right_repeatelsereturn falseendenddef self.click_lock?return @click_lockenddef self.click_lock@click_lock = trueenddef self.click_unlock@click_lock = falseend#endmodule Inputif @self_update == nil@self_update = method('update')@self_press = method('press?')@self_trigger = method('trigger?')@self_repeat = method('repeat?')enddef self.update@self_update.callMouse.updateenddef self.press?(key_code)if @self_press.call(key_code)return trueendif key_code == Creturn Mouse.press?(Mouse::LEFT)elsif key_code == Breturn Mouse.press?(Mouse::RIGHT)elsereturn @self_press.call(key_code)endenddef self.trigger?(key_code)if @self_trigger.call(key_code)return trueendif key_code == Creturn Mouse.trigger?(Mouse::LEFT)elsif key_code == Breturn Mouse.trigger?(Mouse::RIGHT)elsereturn @self_trigger.call(key_code)endenddef self.repeat?(key_code)if @self_repeat.call(key_code)return trueendif key_code == Creturn Mouse.repeat?(Mouse::LEFT)elsif key_code == Breturn Mouse.repeat?(Mouse::RIGHT)elsereturn @self_repeat.call(key_code)endendendclass Window_Selectableif @self_alias == nilalias self_update update@self_alias = trueenddef updateself_updateif self.active and @item_max > 0index_var = @indextp_index = @indexmouse_x, mouse_y = Mouse.get_mouse_posmouse_not_in_rect = truefor i in 0...@item_max@index = iupdate_cursor_recttop_x = self.cursor_rect.x + self.x + 16top_y = self.cursor_rect.y + self.y + 16bottom_x = top_x + self.cursor_rect.widthbottom_y = top_y + self.cursor_rect.heightif (mouse_x > top_x) and (mouse_y 


      36楼2011-12-04 05:24
      回复
        > top_y) and(mouse_x < bottom_x) and (mouse_y < bottom_y)mouse_not_in_rect = falseif tp_index != @indextp_index = @index$game_system.se_play($data_system.cursor_se)endbreakendendif mouse_not_in_rect@index = index_varupdate_cursor_rectMouse.click_lockelseMouse.click_unlock endendendendclass Window_InputNumberif @self_alias == nilalias self_update update@self_alias = trueenddef updateself_updatemouse_x, mouse_y = Mouse.get_mouse_posif self.active and @digits_max > 0index_var = @indexmouse_not_in_rect = truefor i in 0...@digits_max@index = iupdate_cursor_recttop_x = self.cursor_rect.x + self.x + 16bottom_x = top_x + self.cursor_rect.widthif (mouse_x > top_x) and (mouse_x < bottom_x)mouse_not_in_rect = falsebreakendendif mouse_not_in_rect@index = index_varupdate_cursor_rectMouse.click_lockelseMouse.click_unlockendendif @last_mouse_y == nil@last_mouse_y = mouse_yendcheck_pos = (@last_mouse_y - mouse_y).absif check_pos > 10$game_system.se_play($data_system.cursor_se)place = 10 ** (@digits_max - 1 - @index)n = @number / place % 10@number -= n * placen = (n + 1) % 10 if mouse_y < @last_mouse_yn = (n + 9) % 10 if mouse_y > @last_mouse_y@number += n * placerefresh@last_mouse_y = mouse_yendendendclass Scene_Fileif @self_alias == nilalias self_update update@self_alias = trueenddef updatemouse_x, mouse_y = Mouse.get_mouse_posMouse.click_lockidx = 0for i in @savefile_windowstop_x = i.x + 16top_y = i.y + 16bottom_x = top_x + i.widthbottom_y = top_y + i.heightif (mouse_x > top_x) and (mouse_y > top_y) and(mouse_x < bottom_x) and (mouse_y < bottom_y)i.selected = trueif @file_index != idx @file_index = idx$game_system.se_play($data_system.cursor_se)end Mouse.click_unlockelsei.selected = falseendidx += 1endself_updateendend
        class Arrow_Enemyif @self_alias == nilalias self_update update@self_alias = trueenddef updatemouse_x, mouse_y = Mouse.get_mouse_posif mouse_y >= (0) and mouse_y < (480/2)idx = 0for i in $game_troop.enemies doif i.exist?top_x = i.screen_x - self.oxtop_y = i.screen_y - self.oybottom_x = top_x + self.src_rect.widthbottom_y = top_y + self.src_rect.heightif (mouse_x > top_x - $敌人选框扩大) and (mouse_y > top_y - $敌人选框扩大) and(mouse_x < bottom_x + $敌人选框扩大) and (mouse_y < bottom_y + $敌人选框扩大)if @index != idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateelsif $shubiaoidx = 0for i in $game_party.actors doif i.exist?top_x = i.screen_x - self.oxtop_y = i.screen_y - self.oybottom_x = top_x + self.src_rect.widthbottom_y = top_y + self.src_rect.heightif (mouse_x > top_x - $角色选框扩大) and (mouse_y > top_y - $角色选框扩大) and(mouse_x < bottom_x + $角色选框扩大) and (mouse_y < bottom_y + $角色选框扩大)if @index


        37楼2011-12-04 05:24
        回复
          != idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateend end#结束DEFend#结束CLASSclass Arrow_Actorif @self_alias == nilalias self_update update@self_alias = trueenddef updatemouse_x, mouse_y = Mouse.get_mouse_posif mouse_y > (480/2) and mouse_y <= (480) idx = 0for i in $game_party.actors doif i.exist?top_x = i.screen_x - self.oxtop_y = i.screen_y - self.oybottom_x = top_x + self.src_rect.widthbottom_y = top_y + self.src_rect.heightif (mouse_x > top_x - $角色选框扩大) and (mouse_y > top_y - $角色选框扩大) and(mouse_x < bottom_x + $角色选框扩大) and (mouse_y < bottom_y + $角色选框扩大)if @index != idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateelsif $shubiaoidx = 0for i in $game_troop.enemies doif i.exist?top_x = i.screen_x - self.oxtop_y = i.screen_y - self.oybottom_x = top_x + self.src_rect.widthbottom_y = top_y + self.src_rect.heightif (mouse_x > top_x - $敌人选框扩大) and (mouse_y > top_y - $敌人选框扩大) and(mouse_x < bottom_x + $敌人选框扩大) and (mouse_y < bottom_y + $敌人选框扩大)if @index != idx$game_system.se_play($data_system.cursor_se)@index = idxendendendidx += 1endself_updateendendend


          38楼2011-12-04 05:24
          回复


            39楼2012-02-08 21:46
            回复
              各位大神,到底怎么修改,我不会复制,哪位大神教教我,给我个视频,各位大神,跪求


              40楼2012-08-11 13:59
              回复



                41楼2012-12-22 20:46
                回复
                  2026-02-19 05:17:42
                  广告
                  不感兴趣
                  开通SVIP免广告
                  大惊小怪的 不就是故意没放工程文件进去而已


                  IP属地:四川42楼2012-12-23 08:20
                  回复
                    等级咋修啊


                    43楼2013-07-03 09:11
                    收起回复
                      其实如果安装有RPGXP的话可以不用这么麻烦
                      直接在文件夹里面新建一个记事本
                      里面写入
                      RPGXP 1.03
                      记住。只有10个字符,然后把文件名改为
                      Game.rxproj
                      就OK了。


                      44楼2013-07-03 18:13
                      回复
                        挖坟


                        45楼2013-09-20 10:58
                        回复
                          假如你每天签到拿4经验,18级300000/4=75000天,如果从1岁开始签到,那100年=36500天,你差不多要活200年保持每天签到(谁知道200年后还有没有签到这玩意),如果你每天再水4经验,时间减半,但考虑现实,你不可能再活100年,取50年吧,你就要每天水16经验,可能你是个勤快的人,每天水32经验,那就需要25年!!!再如果你是个大水怪,每天水64经验,那就只要12.5年!!!还如果你个心急的人,每天水128经验,你只要6.25年!!!!假如你已经急不可耐了,每天水256经验,那你碉堡了,只要3.125年!!!当然,你会觉得3年还是太远了,每天你闲的蛋疼,忙忙碌碌的水512经验,碉堡了,你只需要1.5625年,只比1年半多一点!!!什么!!你还不满意,那你觉得你可能一天水1024经验吗,可能吗!!可能吗!!!据说回复100字或者一百字以上可以得到11~30经验,好心动的赶脚。。。。那么,按照队形,点击复制,吧我的话复制一片,拿经验妥妥的。
                          I


                          IP属地:山东46楼2013-09-20 18:37
                          回复
                            `


                            IP属地:山东47楼2014-02-08 17:41
                            回复
                              2026-02-19 05:11:42
                              广告
                              不感兴趣
                              开通SVIP免广告
                              `


                              IP属地:山东48楼2014-02-08 17:41
                              回复