Invisible/Immortal Drugs

stoparek

LOMCN n00bie
Sep 22, 2007
7
0
32
Hi
Anybody knows can as make Invisible/Immortal Drugs in SQL ?
Invisible/Immortal drug is on polish server...
how to make ?
sorry for my english :)
 

budyniowski

Dedicated Member
Dedicated Member
Dec 16, 2007
149
0
63
Warsaw, Poland
hmm I see one of Mordor members here? ;d
I think U must use itemevents for It but dunno what is a NPCcommand for hide and observer;p
If any one know plz post it here it will helpfull for me 2.
 
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
It wouldhelp if you said what they were? If there jsut liqours then u can easily do it using an existing liqour in SQL and changing the stats if its not then you must tell us what it is
 
Upvote 0

budyniowski

Dedicated Member
Dedicated Member
Dec 16, 2007
149
0
63
Warsaw, Poland
[@Immortaldrug_item]
{
#ACT
SetItemEvent 1 25 @Drag_main

[@Drag_main]
#IF
#ACT
HLSCRIPTCMD SUPERMAN
sysmsg "You are Immortal"
DELAYGOTO [local] 30 @koniec

[@koniec]
#IF
#ACT
HLSCRIPTCMD SUPERMAN
sysmsg "GOD mode off"
break

I think for invisibledrugs comand is: HLSCRIPTCMD HIDE (or OBSERVER) but not tested yet
 
Last edited:
Upvote 0

budyniowski

Dedicated Member
Dedicated Member
Dec 16, 2007
149
0
63
Warsaw, Poland
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.
 
Last edited:
Upvote 0