can i use lua script functions in .npc or create array and doing for there? Im reading behaviors but i need time to learn all.
#edit
im doing tasks with npc and i resolve it like this
but i want to get storage value from my lua object. Its possible? Thanks for answer
#edit
im doing tasks with npc and i resolve it like this
Code:
#TASKS
#REWARD
"task",QuestValue(6522002)>0 -> Amount=QuestValue(6522000),"I have something for you, would you like to get a reward? %A", Topic=10
Topic=10,"yes",QuestValue(6522000)=1 -> Amount=10, Create(3043), SetQuestValue(6522000,0), SetQuestValue(6522002,0), SetQuestValue(6522003,1), "Here you go!"
Topic=10,"yes",QuestValue(6522000)=2 -> Amount=50, Create(3043), SetQuestValue(6522000,0), SetQuestValue(6522002,0), SetQuestValue(6522003,2), "Here you go!"
Topic=10,"yes",QuestValue(6522000)=3 -> Amount=100, Create(3043), SetQuestValue(6522000,0), SetQuestValue(6522002,0), SetQuestValue(6522003,3), "Here you go!"
Topic=10 -> "Ok, your loss.", Idle
#TASK ALREADY
"task",QuestValue(6522000)>0 -> "You already have a task, would you like to know name of this task?",Topic=20
Topic=20,"yes",QuestValue(6522000)=1 -> "You already on a Rotworms task."
Topic=20,"yes",QuestValue(6522000)=2 -> "You already on a Dragons task."
Topic=20,"yes",QuestValue(6522000)=3 -> "You already on a Demons task."
Topic=20 -> "Good bye. Dont walk in the dark alone, the evil is just around the corner!", Idle
#ALL DONE
"task",QuestValue(6522003)=3 -> "You have completed all the tasks!"
#SET NEW
"task",QuestValue(6522003)<1 -> SetQuestValue(6522000,1),SetQuestValue(6522001,50),"Started Rotworms task."
"task",QuestValue(6522003)=1 -> SetQuestValue(6522000,2),SetQuestValue(6522001,100),"Started Dragons task."
"task",QuestValue(6522003)=2 -> SetQuestValue(6522000,3),SetQuestValue(6522001,666),"Started Demons task."
but i want to get storage value from my lua object. Its possible? Thanks for answer
Last edited: