Jump to content

simple functions request


kucingkucing

Recommended Posts

hi, sorry for my bad English,

currently, I need these functions:

(note: this code is writing using notepad, they just for references)

 

1. show message when combat started.

Event OnCombatStart()
    ShowMessage MessageCombatStart
EndEvent

2. show message when combat ends.

Event OnCombatEnd()
    ShowMessage MessageCombatEnd
EndEvent

3. Get RefID Current Humanoid Companion.

GetHumanoidCompanionRefID()  ;Craig Boone, Lily Bowen, etc

4. Get RefID Current NonHumanoid Companion.

GetNonHumanoidCompanionRefID()  ;Rex and ED-E

5. spell check, return true if the player has that (active?) spell.

IfPlayerHasAddiction(0006698C) ;0006698C is Alcohol addiction spell

6. get effect duration, let said player drink "Purified water", then the function will return the remaining duration of that effect. return 0 if the player does not have the drink "Purified water" effect

IfPlayerHasEffect(000151A3) ; 000151A3 is "Purified water" consumeable ID

if you know all of any of it please reply,

 

thanks for reading, have a nice day

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...