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

Need Help with Script!!!!!


coreybock
 Share

Recommended Posts

Hi Would This Work?

Sub ScriptedTile(Index, Script)
      Case 1
                  If PlayerGuild = "Guild Here" Then
                  Call PlayerWarp(Index, MAP, X, Y)
      Else
                  Call PlayerMsg("Your guild does not have a map")

Exit Sub?

Thanks you the Help!

{EDIT}

Sub ScriptedTile(Index, Script)
      Case 1
                  If PlayerGuild = "Game Moderators" Then
                  Call PlayerWarp(Index, 1, 1, 1)
      Else
                  Call PlayerMsg("Your guild does not have a map")

Exit Sub?
- Corza
Link to comment
Share on other sites

**Error 1:**
```
If PlayerGuild = "Guild Here" Then
```
**Fix:**
PlayerGuild is not a function, you will have to use GetPlayerGuild. Yet there isn't a function to determin what your guild map is.

**Error 2:**
```
Call PlayerMsg("Your guild does not have a map")
```
**Fix:**
The PlayerMsg sub should be used like this:
```
Call PlayerMsg(index, "Message", 2)
```
The number at the end is the colour of what the message will be.
Link to comment
Share on other sites

Thats an ide but i was like thinking…..:

Sub ScriptedTile(Index, Script)
      Case 1
                  If PlayerGuild = "Warriors" Then
                  Call PlayerWarp(Index, 51, 1, 1)
                  If PlayerGuild = "Wizards" Then
                  Call PlayerWarp(Index, 52, 1, 1)
      Else
                  Call PlayerMsg("Your guild does not have a map")
End If
End If
Exit Sub?
Link to comment
Share on other sites

@Corza:

> I am trying really hard with everything but…..
>
> it just doesn't measure up  :sad:
>
> - Corza

Well try reading some tutorials or checking out some already made scripts.Scripts could help,that's the way I've learned in kinda 1 week(I'm too lazy for tutorials :P)
Link to comment
Share on other sites

@Corza:

> Really…
>
> Well ive tried making my own scripts.
> i have a huge folder full of tutorials and commands
> and some of the scripts i wrote out but yet again
> i dont know what to do.
>
> - Corza

Relax man,its no the end of the world if you can't get scripting,You'll surely learn maybe not now though I'm sure you will :).

Sigait.
Link to comment
Share on other sites

@Corza:

> i can script (very basic) but its the simple stuff like my problem (PlayerGuild = GetPlayerGuild) and forgetting the color of the message and index that i forget  :embarrassed:
>
> - Corza

Download the Script editor with the commands and script using them It'll surely help you alot.
Link to comment
Share on other sites

dude i been here 2 almost 3 years now and i just learned how to script this year. im excelling now and its actually pretty simple. right now im working on source stuff. i guess my point is just keep working hard at it. and if you want to make good scripts you have to commit time to the cause. something that may help is to take a look at the commands thread, i believe its in announcements.
Link to comment
Share on other sites

@The:

> dude i been here 2 almost 3 years now and i just learned how to script this year. im excelling now and its actually pretty simple. right now im working on source stuff. i guess my point is just keep working hard at it. and if you want to make good scripts you have to commit time to the cause. something that may help is to take a look at the commands thread, i believe its in announcements.

Actually,thats what i said!!
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...