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

How to make commands.


Dragonz1469
 Share

Recommended Posts

put this under commands in your main.ess/main.text or if youre using eclipse stable 1.1 command.ess

```
case "/spawn"

itemz = TextSay(1)
          itemz2 = TextSay(2)
          If GetPlayerAccess(Index) = 5 Then
          Call SpawnItemOnMap(GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index), itemz, itemz2, -1)
        Else
        Call playermsg(index, "You can't use this script", YELLOW)
        end if
        exit sub
```
use as: /spawn
Link to comment
Share on other sites

You will need [Godlord's Inventory](http://www.touchofdeathforums.com/smf/index.php/topic,51481.0.html) and [Godlord's Main](http://www.touchofdeathforums.com/smf/index.php/topic,51143.0.html)

```
      Case "/spawn"

        itemz = TextSay(1)
        itemz2 = TextSay(2)
            If GetPlayerAccess(Index) = 5 Then
            If GetFreeSlots(Index) >= 1 Then
                Call GiveItem(Index, itemz, itemz2)
            Else
              Call PlayerMsg(index, "You can't use this script or inventory is full.", YELLOW)
              End If
              End If
              Exit Sub
```
K now call it like this: /spawn
Link to comment
Share on other sites

```
      Case "/spawn"

        itemz = TextSay(1)
        itemz2 = TextSay(2)
            If GetPlayerAccess(Index) = 5 Then
            If GetFreeSlots(Index) >= 1 Then
                Call GiveItem(Index, itemz, itemz2)
            Else
              Call PlayerMsg(index, "You can't use this script or inventory is full.", YELLOW)
              End If
              End If
              Exit Sub

```
Give_Item is Baron's command (or so I've heard) Godlord's is GiveItem.
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...