omegas7 Posted May 23, 2008 Author Share Posted May 23, 2008 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 thenIf GetPlayerClass(Index)=0 then '0 is the number of "Warrior" class.If GetPlayerSTR(Index)>=20 thenCall 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 IfEnd IfEnd 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 TIMEIf TIME=1 thenCall 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=0If GetPlayerLevel(Index)>=20 thenIf GetPlayerClass(Index)=0 then '0 is the number of "Warrior" class.If GetPlayerSTR(Index)>=20 thenCall 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=1End IfEnd IfEnd If```I hope I made it something good.Have a good day.Omegas7. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now