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

Ok, so I couldnt get this script to work, anyone wanna help?


Southern
 Share

Recommended Posts

```
Case "/colorz"
          If GetPlayerAccess(Index) = 0 Then
          call colorplayername(index, 12)
call sendplayerdata(index)
          Else
          Call playermsg(index, "You can't use this script", YELLOW)
          End if
          Exit sub
```
```
Case "/colorz"
          call colorplayername(index, 6)
call sendplayerdata(index)
          Exit sub
```
```
Case "/bebaz"
          baza = TextSay(1)
          If GetPlayerAccess(Index) > 3 Then
          call colorplayername(index, baza)
call sendplayerdata(index)
          Else
          Call playermsg(index, "You can't use this script", YELLOW)
          End if
          Exit sub
```
None of them seem to work….

Also tried it on scripted tile, scripted item, and even scripted npc xD
Link to comment
Share on other sites

    If GetPlayerLevel(Index) = 1 Then
        Call colorplayername(Index, 1)
    Exit Sub
  End If

    If GetPlayerLevel(Index) = 11 Then
        Call colorplayername(Index, 2)
    Exit Sub
  End If

    If GetPlayerLevel(Index) = 21 Then
        Call colorplayername(Index, 4)
    Exit Sub
  End If

    If GetPlayerLevel(Index) = 31 Then
        Call colorplayername(Index, 13)
    Exit Sub
  End If

Umm yea just add that to playerlevelup (still doesnt work…but work's if i change Call ColorPlayerName to Call PlayerMsg(Index, "Hello Jello-O")

I dont think Call ColorPlayerName(Index, Color) works >_>
Link to comment
Share on other sites

@Roujo:

> Well, I don't see it in the SadScript Database. I don't think it's a valid function… Maybe it'll be in EE3.0 XD
>
> Well, if ColorPlayerName doesn't exist, I don't know how you can do this short of editing the Source Code. Sorry!

DOnt want to sound rude, but if you type ctrl+F and search for colorplayername you will find it.

![](http://i293.photobucket.com/albums/mm49/Hatetherap/owned.jpg)
Link to comment
Share on other sites

Nice!! =) I'm gonna go and update my database =P

Well, if it's a function, then these are the possible errors I can think of:

* You have 2 /colorz commands
* In /baza, you call ColorPlayerName(index, _baza_). I don't know if you added that color as a constant, but in any case it's not in my Main.txt, so I'm not sure that works.

Do other slash commands like /warpto work? If they do, those are the only thing I see that would prevent your color commands from working.

If other slash commands don't work, you have an error somewhere in your Sub Commands… Good luck finding it! (^_^)

'Hope I helped!
Roujo

EDIT: I noted something on the top of the All Commands topic...

> 9/07/08 - Edit by Mellowz: Some commands are out-dated!

Maybe that's why it doesn't work. Just a thought.
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...