Jump to content

Need Help With sword script


Recommended Posts

i want to make a script were if you drop or lose this sword that after a few seconds it returns back to your inventory only if it is not there, and says like " this sword has returned" i made a script but i cant get it to return back to my inventory and i also want it to not duplicate( like after it returns to your inventory theres not an exact same sword on the ground, no duplication, just it returning back to the players inventory) here is the QUEST script that i made for it as making a OBJECT script didnt seem to work at all

 

ScriptName ABA
begin GameMode

short doOnce
float timer
float fQuestdelaytime
short do

if player.GetItemCount 00WeapSteelLongswordFine == 1
SetStage 00ANACL 2
Set doOnce to 1
endif

if player.GetStageDone 00ANACL 2
player.removeitem 00WeapSteelLongswordFine 1
player.additem 00anna 1
Setstage 00ANACL 10
endif

if player.GetItemCount 00anna < 1 && player.GetStageDone 00ANACL 10
set timer to 5	; Initialize the timer variable
set do to 1
endif

if	( timer > 0 )
set timer to timer - getSecondsPassed
else
message "Anaklusmos has returned to you safely"
else
player.additem 00anna 1
endif
end	

 

please help me... all i want is a sword thats magic and if it is every taken out of the players inventory, after 5 seconds it will return, with NO copy of the same sword sitting were it fell before another one just spawned in your inventory,

Link to comment
Share on other sites

  • Recently Browsing   0 members

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