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

INN Keepers! (CS:DE)


Ariel
 Share

Recommended Posts

I Played in my game for a bit run around kill mobs and such and then i died. i just return to where i started the game and that was so boring and annoying.. and then i found about:

**(MUST HAVE BEFORE USING THIS GUIDE)** http://www.touchofdeathforums.com/smf2/index.php/topic,64302.msg687805.html#msg687805
Checkpoint was the sulution! but, it again was to boring just walking on tile. i want the player to exercise his free will, whether he want to make a new CP or not… So this will made a NPC type which will do that(INN), still i didnt mange to do that it will ask a Yes\No question before in a conv window so if anybody know how i want to hear! (CS:DE)

CLIENT and SERVER:

in modConstants add after
```
Public Const NPC_BEHAVIOUR_GUARD As Byte = 4
```
This
```
Public Const NPC_BEHAVIOUR_INN As Byte = 5
```
do that for Client and for Server.

SERVER ONLY:

In modCombat ind the sub "CanPlayerAttackNpc", search there for
```
' init conversation if it's friendly
```and just after the first end if
add
```
                    If Npc(npcNum).Behaviour = NPC_BEHAVIOUR_INN Then
                        'INN
                        SetCheckpoint attacker, MapNum, NpcX, NpcY - 1
                        CanPlayerAttackNpc = False
                    End If
```

CLIENT ONLY:
In frmEditor_NPC in cmbBehaviour (just next to the lable that said: "Behaviour:" add to her list "INN"
make sure its number 6 in the list!

And your done!:)

again, if anyone know how to add Yes\No before saving new CP please let me know how :P
Link to comment
Share on other sites

Why you dont added this to CS:DE convo? its surprisingly easy

to add it to convo find:
```
Public Sub sendChat(ByVal Index As Long)
```here find:
```
Case 3 ' Give Item
                    ' exit out early
                    ClosePlayerChat Index
                    Exit Sub
```add this under it:
```
Case 4 ' Set checkpoint
                    ' exit out early
                    SetCheckpoint Index, TempPlayer(Index).c_mapNum, GetPlayerX(Index), GetPlayerY(Index)
                    ClosePlayerChat Index
                    Exit Sub
```
Thats all and for execution of inn just use Unique in Convo editor
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...