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

My fourth script, is it ok?


omegas7
 Share

Recommended Posts

Hello, this is my fourth Sadscript script for the Eclipse Evolution 1.0.
This time I will try to make no mistakes in this script.

This script will be about that only "Warrior" class players, with higher levels than 20, and with higher level than 20 of strengh could get the reward of a powerful weapon.

Oh well, here I go.

```

Call Playermsg(Index, "If you are a good enough warrior, I will give you a great weapon.", 15)

If GetPlayerLevel(Index)>=20 then
If GetPlayerClass(Index)=0 then      '0 is the number of "Warrior" class.
If GetPlayerSTR(Index)>=20 then

Call Playermsg(Index, "Well, you seem to cover all the requirements, here is your weapon.", 15)

'Oh... I don't know how to give an item... Nooo! My script failed... Someone tell me please.

End If
End If
End If

```
And I wanted to know how to make for a script that once have already run 1 time then send another message different, for example, "I already gave you a great weapon".

I was thinking something like this:

```

Dim TIME

If TIME=1 then
Call Playermsg(Index, "I already gave you a great weapon.", 15)
Exit Sub          'Or Exit If? Something for ending the processing of this script.

Call Playermsg(Index, "If you are a good enough warrior, I will give you a great weapon.", 15)

TIME=0

If GetPlayerLevel(Index)>=20 then
If GetPlayerClass(Index)=0 then      '0 is the number of "Warrior" class.
If GetPlayerSTR(Index)>=20 then

Call Playermsg(Index, "Well, you seem to cover all the requirements, here is your weapon.", 15)

'Oh... I don't know how to give an item... Nooo! My script failed... Someone tell me please.

TIME=1

End If
End If
End If

```

I hope I made it something good.

Have a good day.
Omegas7.
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...