Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Lots of requests


dao
 Share

Recommended Posts

- fixing chest attribute
- New funtion
- Gfx

Chest attribute
I 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 Function
i want it so i add a function or script that's
Call spellonplayer(1(index)
Spell number
and it appears right were the player is standing
like this
![](http://i617.photobucket.com/albums/tt251/Zultar/Untitled-6.gif)
Link to comment
Share on other sites

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

@Zultar:

> like i said i want it to play the spell on the player right were he is standing on his coordinates just right there

When 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

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 Sub

Then 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 i
i = 0
Do 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...