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

Class change w/ requirments


chamster
 Share

Recommended Posts

Well, in pseudocode..

```
If MyValue => MyRequirement (=> meaning equal to or above) Then
    Player(Index).Class = ClassIWantToProgressTo
End if
```
Pretty much like that. Your question is very vague, so I can't really make it any more detailed or tailored to your plans :P
Link to comment
Share on other sites

Well, I will just expand what Joyce said:

1\. If you want to make a specific location to change class:

If GetPlayerX(Index) = (your X coordinate) and GetPlayerY(index) = (your Y coordinate) and GetPlayerMap(index) = (map number here)
Player(Index).class = stuff.

2\. If you want to make a specific level to change class:
If GetPlayerLevel(Index) = Levelrequirement
Player(Index).class = stuff

There are lots of thing that you can set requirement to. Take a look at modPlayer in the server. There are lots of function that return a value that can be used as a requirement.

And oh, you cant just smack this code into the game and expect it to work, you whether need to use a scripted NPC, or, use an event system to add code, or, of course, code a sub your own, then call the command when you need it
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...