nice! never knew you could use GM commands int his way
Not all commands only few i think.
Here i post full invisible and immortal drugs script:
You need add in your 00default.txt :
[@main]
#ACT
...
...
goto @ImmortalDrug
goto @InviDrug
...
...
[@ImmortalDrug]
#CALL [System\ItemEvents.txt] @Immortaldrug_item
[@InviDrug]
#CALL [System\ItemEvents.txt] @Invidrug_item
And you need add in your QuestDiary\System\ItemEvents.txt (if you havent ItemEvent.txt - make it now) :
;-----------------------------------------
[@Immortaldrug_item]
{
#ACT
SetItemEvent 1 25 @IMMO_main
[@IMMO_main]
#IF
#ACT
HLSCRIPTCMD SUPERMAN
sysmsg "You are immortal!"
DELAYGOTO [local] 30 @koniecimmo
[@koniecimmo]
#IF
#ACT
HLSCRIPTCMD SUPERMAN
sysmsg "ImmortalDrug finished its work"
break
}
;-----------------------------------------
[@Invidrug_item]
{
#ACT
SetItemEvent 1 26 @INVI_main
[@INVI_main]
#IF
#ACT
HLSCRIPTCMD INSPECTOR
sysmsg "You are invisible!"
DELAYGOTO [local] 30 @koniecinvi
[@koniecinvi]
#IF
#ACT
HLSCRIPTCMD INSPECTOR
sysmsg "InvisibleDrug finished its work"
break
}
And also You must create 2 items in your data base:
with stdmode 1 and shape 25 (immortaldrug)
and with stdmode 1 and shape 26 (invisibledrug)
ofcours You can change this in setitemevent to what you want
This only 30 sec invisible/immortal but you can change it in delaygoto from 30 to what you want.
Edit:
I think it should land in the NPC/Script thread.