Kite Posted January 9, 2010 Author Share Posted January 9, 2010 [Intro]Well I for one hate that the npc avoid let's arrows go through….Makes it easy for people to level up that way :PAnyway onto the code.```First off open up VB6.Make your way to modgamelogic, and find this code.[code]If .Type = TILE_TYPE_NPCAVOID Then Call DrawText(TexthDC, X * PIC_X + sx + 8 - (NewPlayerX * PIC_X) - NewXOffset, y * PIC_Y + sx + 8 - (NewPlayerY * PIC_Y) - NewYOffset, "N", QBColor(WHITE)) End If[/code]Change it to look like this.[url][img]http://www.freemmorpgmaker.com/files/imagehost/pics/cd4d5420a7b330b875b928d293fb5a49.PNG[/img][/url][code]If .Type = TILE_TYPE_NPCAVOID Then Call DrawText(TexthDC, X * PIC_X + sx + 8 - (NewPlayerX * PIC_X) - NewXOffset, y * PIC_Y + sx + 8 - (NewPlayerY * PIC_Y) - NewYOffset, "AB", QBColor(CYAN)) End If[/code]Next goto ModDirectX, and find this bit of code.[url][img]http://www.freemmorpgmaker.com/files/imagehost/pics/4be048f36903c04d6c5a42440897145a.PNG[/img][/url][code]If X >= 0 And X <= MAX_MAPX Then If y >= 0 And y <= MAX_MAPY Then If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_BLOCKED Then Player(Index).Arrow(Z).Arrow = 0 End If End If End If[/code]Thats the block code copy it, and put under it, like in the pic.[code]'Arrow Block If X >= 0 And X <= MAX_MAPX Then If y >= 0 And y <= MAX_MAPY Then If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_NPCAVOID Then Player(Index).Arrow(Z).Arrow = 0 End If End If End If[/code]That's it, hope it helps :P[Close]It works, 100% in 2.7, I have not tested in any other EE, or ES.``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now