Edit: Wir haben was übersehen:
Code:
begin "ET_ghostbookscript_01"
if ( player->GetItemCount "ET_ghostbook_01" == 1 )
enable
endif
if ( GetCollidingPC == 1 )
Player-> RemoveItem "ET_ghostbook_01" 1
Player-> Additem "ET_ghostbook_02" 1
disable
MessageBox, "soundso", "Ok"
Journal "soundso"
endif
end "ET_ghostbookscript_01"
Wäre das nich "Showrestmenu"?
Und würde das denn nicht nur die Möglichkeit zum Rasten geben? Er wollte doch den Spieler zum Rasten zwingen...
mfg erc
begin Zugbruecke
short BS_start
if ( MenuMode == 1 )
return
endif
if ( OnActivate == 1)
if ( BS_start == 0 )
set BS_start to 1
Playsound "Sound"
endif
endif
if ( BS_start == 1 )
PlaySound "Sound2"
BS_Zugbridge->Rotate X 90, 9
BS_Gewinde->Rotate Z 360, 36
Set BS_start to 2
endif
if ( OnActivate == 1)
if ( BS_start == 2 )
set BS_start to 3
Playsound "Sound"
endif
endif
if ( BS_start == 3 )
PlaySound "Sound2"
BS_Zugbridge->Rotate X -90, 9
BS_Gewinde->Rotate Z -360, 36
Set BS_start to 0
endif
end
begin BS_Zugbruecke
short BS_start
if ( OnActivate == 1)
if ( BS_start == 0 )
Playsound "Zugbruecke"
if ( GetAngle, x != 0 )
BS_Zugbridge->Rotate X 9
endif
if ( GetAngle, x != 280 )
BS_Gewinde->Rotate X 28
endif
set BS_start to 1
endif
endif
if ( OnActivate == 1)
if ( BS_start == 1 )
Playsound "Zugbruecke"
if ( GetAngle, x != 90 )
BS_Zugbridge->Rotate X -9
endif
if ( GetAngle, x != 0 )
BS_Gewinde->Rotate X -28
endif
Set BS_start to 0
endif
endif
end
begin my_door_unlock
If (OnActivate == 1 )
If ( getitemcount " mein_schlüssel" >= 0)
Messagebox "Ihr habt nicht den benötigten Schlüssel"
endif
If (OnActivate == 1 )
If ( getitemcount " mein_schlüssel" >= 1)
meine_tür->Unlock
endif
endif
begin my_door_unlock
If (OnActivate == 1 )
If ( getitemcount " mein_schlüssel" >= 0)
Messagebox "Ihr habt nicht den benötigten Schlüssel"
endif
If (OnActivate == 1 )
If ( getitemcount " mein_schlüssel" >= 1)
[b]activate[/b]
endif
endif