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

Does this script work? [Training Dummy]


HappyBoy
 Share

Recommended Posts

Heey all :)
I tried to make a script which makes you able to train against a dummy or so…
(It's my first real script, so it might be really bad...)

Place underneath Sub ScriptedTile

```
Case #
If GetPlayerLevel(Index) =< L then
CallPlayerWarp(index, Map, X, Y)
Call SetTimer("TmrTest") & Index & "," & 1, 1500)
End If
End Select
```
Place underneath Sub TmrTest

```
Case 1
Call SetPlayerXP(Index, GetPlayerXP(index) + N)
Call PlayerWarp(Index, Map, X, Y)
Call Remove Timer("TmrTest" & index & "," & 1)
End Select
```
How does it work?  :huh:

- Well, first you have to choose a free case in the scripted tiles… change the # to that case.

- Than you have to put in the max level you can be to use a training dummy.

- The CallPlayerWarp is to warp the person to a room with a background of a dummy or so, which has block around the character and fringe tiles on top of him.

-Map = map of this room, X = the X where you have to go to, Y = same as X, but than with Y

-the timer is set to 1500 so it'll be 15 seconds to train.

-N = the number input of the XP amount.

-Warp = the Map+X+Y where to come after training

It is a self thought of system which I think works, please tell me what does and what doesn't work...

remember, this is my first made script... I  have made a Map thing, but that's easy :p
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...