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

A question about the start up item script


Sakis
 Share

Recommended Posts

@samdeath:

> First add this to your Sub JoinGame
>
> ```
> 'Adds starting items to Class 0
> If GetPlayerLevel(index) = 1 Then
> If GetPlayerEXP(index) = 0 Then
> If GetPlayerClass(index) = 0 Then
> Call SetPlayerInvItemNum(index, , )
> End If
> End If
> End If
>
> 'Adds starting items to Class 1
> If GetPlayerLevel(index) = 1 Then
> If GetPlayerEXP(index) = 0 Then
> If GetPlayerClass(index) = 0 Then
> Call SetPlayerInvItemNum(index, , )
> End If
> End If
> End If
>
> 'Adds starting items to Class 2
> If GetPlayerLevel(index) = 1 Then
> If GetPlayerEXP(index) = 0 Then
> If GetPlayerClass(index) = 0 Then
> Call SetPlayerInvItemNum(index, , )
> End If
> End If
> End If
>
> 'Adds starting items to Class 3
> If GetPlayerLevel(index) = 1 Then
> If GetPlayerEXP(index) = 0 Then
> If GetPlayerClass(index) = 0 Then
> Call SetPlayerInvItemNum(index, , )
> End If
> End If
> End If
>
> 'Adds starting items to Class 4
> If GetPlayerLevel(index) = 1 Then
> If GetPlayerEXP(index) = 0 Then
> If GetPlayerClass(index) = 0 Then
> Call SetPlayerInvItemNum(index, , )
> End If
> End If
> End If

> ```
> Basically set the required numbers and for any other items just add another
> ```
> Call SetPlayerInvItemNum(index, , )
> ```

what should I place in the iventroy slot number…do i place something like this:

Call SetPlayerInvItemNum(1, 1, 1000) to give them gold in the 1st slot?
Link to comment
Share on other sites

@ÅÐмiядζ:

> I'd recomend this one:
> http://www.touchofdeathforums.com/smf/index.php/topic,15331.0.html
>
> It uses inis in the class.ini files, which makes things alot more simple.

i tried that one before and i had some difficulties with it so i decided to actually just do this one since i only have 12 real classes to actually start with and stuff…plus i can do this one quicker since it actually seems like it will not cause any real bugs and stuff to my game characters and stuff
Link to comment
Share on other sites

@Bobosk:

> you never know, even the simplest of scripts can go awry

yeah i just need someone to help start it off for me and then let me go from there because if I had some scripter to help me then I would be able to do the other script code for it even better…thats what i really need though
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...