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

Having A Scripted Tile Problem.. Its Simple I Think.. Please Help


Braydo25
 Share

Recommended Posts

hi i wanted to make a tile that heals both hp and mp, but what i made doesnt seem to be working. i place tile 0 and it doesnt work on a map, then i tried tile 1 and it doesnt work. whats going wrong. please help

Sub ScriptedTile(index, Script)
Select Case Script
Dim Q
Dim W
Dim Z
Q=GetPlayerClass(Index)
W=GetClassMaxMP(Q)
Z=GetClassMaxHP(Q)

Case 0
Call SetPlayerMP(Index,W)
Call SetPlayerHP(Index,Z)
Call Playermsg(index,"Your Mana And Health Has Been Restored!",3)
End Sub
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...