adr990 Posted May 29, 2011 Share Posted May 29, 2011 Cool! I saw this in some game before, and I thought it was a pretty cool addition to show how rich and stuff you are.I'll try this, and eventually face the same problems as posts above. Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 30, 2011 Share Posted May 30, 2011 O.o it worked for me… As a matter a fact I even moded my ove version off of it =P Link to comment Share on other sites More sharing options...
Suppositoire Posted May 30, 2011 Share Posted May 30, 2011 He work also for me, I found the error :cheesy:But I shall like(love) added an exception, I shall want that the sprite number 1 is freeHow can it be done? Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 31, 2011 Share Posted May 31, 2011 if(spriteNum > 1)thentakeItem(YOUR STUFF)end if(oviously its just the outline) Link to comment Share on other sites More sharing options...
Suppositoire Posted May 31, 2011 Share Posted May 31, 2011 @RyokuHasu:> if(spriteNum > 1)then> takeItem(YOUR STUFF)> end ifWhere to place it? And be you safe that with this code the sprite number 1 will be free? Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 31, 2011 Share Posted May 31, 2011 you place it where you take the money. you add the if arround the money taking statmentand yes.. if made corectly… it should leave sprite 1 free. Link to comment Share on other sites More sharing options...
Suppositoire Posted May 31, 2011 Share Posted May 31, 2011 ``` If (SpriteNum > 1) Then Call TakeInvItem(index, 1, 0) Call PlayerMsg(index, "blabla.", Yellow) End If```Variable not defined Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 1, 2011 Share Posted June 1, 2011 -_-…... one sec...EDITED:DONE i did say it was the outline. ... spritenum is "amount" in this sub now try it.```if( amount > 1)then TakeInvItem (Index, x, y)end if``` Link to comment Share on other sites More sharing options...
Suppositoire Posted June 1, 2011 Share Posted June 1, 2011 ``` 'Checks for sprite tile If .Type = TILE_TYPE_SPRITE Then amount = .Data1 If CheckCash(index, 1, 200) = True Then 'x=itemnum of your cash y=amount you want sprites to cost Call TakeInvItem(index, 1, 100) 'x=itemnum of your cash y=amount you want sprites to cost Call SetPlayerSprite(index, amount) Call SendPlayerData(index) Moved = YES Else Call PlayerMsg(index, "Vous n'avez pas l'argent requis.", Yellow) Moved = NO End If End If```And how blocked the tuile if the player cannot buy the sprite? I tried that but he not working Link to comment Share on other sites More sharing options...
cvsnowy Posted November 7, 2011 Share Posted November 7, 2011 I can't open frmEditorMap, what am i suppose to do? Link to comment Share on other sites More sharing options...
Justn Posted November 8, 2011 Share Posted November 8, 2011 Do you have Visual Basic 6? Link to comment Share on other sites More sharing options...
xxXReichoXxx Posted December 18, 2011 Share Posted December 18, 2011 ``` 'Checks for sprite tile If .Type = TILE_TYPE_SPRITE Then amount = .Data1 ``` hightlighted = .typeerror compile error: ivnalid or unqualified reference.server side erroredit: i get this error when server is running and client tryes to move at any tile. Link to comment Share on other sites More sharing options...
renn Posted March 24, 2012 Share Posted March 24, 2012 sorry if this is an obvious question,(im new to this) but what did you use to open frmmapeditor. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 24, 2012 Share Posted March 24, 2012 @renn:> sorry if this is an obvious question,(im new to this) but what did you use to open frmmapeditor.You need Visual Basic 6 to install any modifications in the Source Tutorials section. Link to comment Share on other sites More sharing options...
renn Posted March 26, 2012 Share Posted March 26, 2012 Ok, thanks. Do you know where i could get it by chance? Link to comment Share on other sites More sharing options...
Zopto Posted March 27, 2012 Share Posted March 27, 2012 Grate code now how can i make it to sprite chage automaticly on lvl 16 exeple like if player got lvl 16 sprite chage automaticly but on easy way to i dont need to do this 496 times ??Function GetPlayerSprite(ByVal Index As Long) As Long ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler If Index > MAX_PLAYERS Then Exit FunctionFunction GetPlayerSprite(ByVal Index As Long) As Long If Player(Index).Level > 16 Then If Player(Index).Sprite = 1 Then Player(Index).Sprite = 2 End IfElseEnd Ifhow to make like some button if sprite 1 got lvl 16 then sprite 1 chage sprite in 2 that somting?? Link to comment Share on other sites More sharing options...
Dr.House Posted March 28, 2012 Share Posted March 28, 2012 That's very cool,but an interesting idea/feature to that would be that when you walk trough that Tile again you change back to Normal sprite.Why ?I just think of SwimmingExample :Normal Sprite![](http://s18.postimage.org/u8gkvb16d/water2.png)and When you walk to that Tile in my case of what i'm thinking (water) you change to this:Swimming Sprite![](http://s13.postimage.org/7hdxs518j/water.png) 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