Was willst du mit den Zutaten, Tränke oder was auch immer?
Bitte drücke dich verständlich, mit einer ordentlichen Rechtschreibung, aus.
mfg Kahmul
Bitte drücke dich verständlich, mit einer ordentlichen Rechtschreibung, aus.
mfg Kahmul
Ja hängt aber größtenteils mit AI zusammen, heißt du musst für jedes item was gekauft werden soll ein Package machen. Dann das Item dem NPC adden. Und eventuell auch Geld an den Händler. Was das bringen soll weiß ich aber nicht
scriptname GlarthirScript
; QUESTS:
; MS38
float timer
float looktimer
short looking
short speaking ; 0 when timer is for his last speech, 1 when timer is just waiting to speak again (delay)
short doonce
begin OnPackageStart GlarthirMeetPlayer
set ms38.contact to ms38.contact + 1
end
begin OnDeath player
; messagebox "DEBUG: Glarthir killed by the player"
if getstage ms38 == 80
setstage ms38 81
elseif getstage ms38 >= 5 && getstage ms38 <= 100
setstage ms38 82
endif
if doonce == 0
setstage 000Glatir 5
set doonce to 1
endif
end
begin OnDeath
; messagebox "DEBUG: Glarthir killed by someone"
if getstage ms38 == 80
setstage ms38 81
else
setstage ms38 100
endif
if doonce == 0
setstage 000Glatir 5
set doonce to 1
endif
end
begin OnPackageDone GlarthirRampageKillBP
if player.getlos GlarthirRef == 0 && getinsamecell player == 0
BernadettePenelesRef.kill GlarthirRef
endif
end
begin OnPackageDone GlarthirRampageKillTS
if player.getlos GlarthirRef == 0 && getinsamecell player == 0
ToutiusSextiusRef.kill GlarthirRef
endif
end
begin OnPackageDone GlarthirRampageKillDS
if player.getlos GlarthirRef == 0 && getinsamecell player == 0
DavideSurilieRef.kill GlarthirRef
endif
end
begin OnPackageDone GlarthirGetAxe
set MS38.gotAxe to 1
end
begin OnPackageDone GlarthirRampageGetAxe
set MS38.gotAxe to 1
end
begin gamemode
if getdead == 1
return
endif
if timer > 0
set timer to timer - getsecondspassed
endif
; when player gets close, Glarthir tries to contact him
if getiscurrentpackage GlarthirContactPlayer == 1
; don't do this if the player leaves the area
if player.getincell skingrad == 0 || player.getincell Skingradcastle == 1 || player.isininterior == 1
; messageBox "TEMP: Glarthir stop following"
evp
else
if getdistance player < 600 && getLOS player == 1
; if player turns to look at Glarthir, immediately approach if just waiting between speech
if getstage MS38 < 5 && speaking == 0 && player.getLOS GlarthirRef
set timer to 0
endif
if timer <= 0 && getstage MS38 < 5
if speaking == 0
; first contact with player
set timer to SayTo player, MS38Topic, 1
set speaking to 1
else
; finished talking, put delay in between speech
set timer to 10
set speaking to 0
endif
endif
endif
endif
endif
if MS38.rampage == 2 && getquestrunning MS38 == 1
if timer <= 0 && isincombat == 0
set timer to Say MS38Topic + 5
endif
endif
end
scn NPCSCRIPT
short doonce
Begin GameMode
if doonce == 0
if getLOS player == 1
startConversation player <Topic-ID>
set doonce to 1
endif
endif
end
player.removeAllItems <Container-Ref> 1
player.addItem <Bauernkleidung> 1