dao Posted May 7, 2009 Author Share Posted May 7, 2009 - fixing chest attribute- New funtion- GfxChest attributeI need a vb6 take item command for fixing the chest attribute if you know how i can fix it or know the command pm me!New Functioni want it so i add a function or script that'sCall spellonplayer(1(index)Spell numberand it appears right were the player is standinglike this![](http://i617.photobucket.com/albums/tt251/Zultar/Untitled-6.gif) Link to comment Share on other sites More sharing options...
The Oracle Posted May 8, 2009 Share Posted May 8, 2009 this is source QUESTIONS not request… Link to comment Share on other sites More sharing options...
dao Posted May 8, 2009 Author Share Posted May 8, 2009 omg is there a request section?! Link to comment Share on other sites More sharing options...
The Oracle Posted May 8, 2009 Share Posted May 8, 2009 nope Link to comment Share on other sites More sharing options...
Kirby Lord Posted May 8, 2009 Share Posted May 8, 2009 Also NPC's and tilesets aren't source. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 8, 2009 Share Posted May 8, 2009 Good luck finding zombie sprites; I couldn't even get any for my zombie game =/As for the spell thing, do you just want it to actually call a spell, or just the spell animation? (because It'd take me about 30 seconds to write up a SpellOnPlayer(index, spellnum) sub in sadscript if it's meant to just do the spell animation). Link to comment Share on other sites More sharing options...
dao Posted May 8, 2009 Author Share Posted May 8, 2009 like i said i want it to play the spell on the player right were he is standing on his coordinates just right there Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 8, 2009 Share Posted May 8, 2009 @Zultar:> like i said i want it to play the spell on the player right were he is standing on his coordinates just right thereWhen you say "play" the spell, it sounds like you mean you want the animation of the spell to play; is that what you mean (also, as in that pic you provided, the animation is looping over and over) Link to comment Share on other sites More sharing options...
dao Posted May 8, 2009 Author Share Posted May 8, 2009 ya i want it to be like the regular call spell command but i want it to play right on the player like for this:call playerwarp (bla bla)call spellonplayer (bla bla) Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 8, 2009 Share Posted May 8, 2009 Okay…As far as animation, you can already create a sub (it won't be a function) in sadscript so you just do "Call spellonplayer(index, 1)"; it's actually pretty easy.This is off the top of my head:Sub SpellOnPlayer(index, spellnum) Dim map Dim x Dim y map = GetPlayerMap(index) x = GetPlayerX(index) y = GetPlayerY(index) Call SpellAnim(spellnum, map, x, y)End SubThen to call it, you just say "Call SpellOnPlayer(index, spellnum)" (replace "Spellnum" with the spell).So say you want to teleport the player, and show that animation, you'd go:call playerwarp (bla bla)call spellonplayer(index, 2)(then it would show the spell animation on the player)You could always loop it for a certain amount of time too, eg:Dim ii = 0Do While i < 5 call spellonplayer(index, 2)Loop(I forget the loop syntax, I think that's it, but you get the point).But yea, so you just throw "call spellonplayer(index, spellnum)" into whatever script you want SpellNum's animation to show. Link to comment Share on other sites More sharing options...
dao Posted May 8, 2009 Author Share Posted May 8, 2009 it wont work lol im confused Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 8, 2009 Share Posted May 8, 2009 @Zultar:> it wont work lol im confusedWhat happens when you try it? It's sadscript, so Sub SpellOnPlayer will go at the bottom of your main.txt, and you'll actually have a make a spell (eg, if SpellNum is "2", you make a spell in shot 2, and set the animation). Link to comment Share on other sites More sharing options...
dao Posted May 8, 2009 Author Share Posted May 8, 2009 ok there we go thanks admiral u rock it works added to credits. 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