Hello itec, and thanks for your reply!
I understand your example, and that is acctually how my script is written right now! But the problem is, there are so many different types of quests on one single NPC, which leads to that i have to create so many different Properties! And thats my main problem, so I wanted to improve the structure of the script using datafiles!
But people had trouble with my explanation of what i really tried to do, so i tried to make 2 different -scripts- which will show you more detailed how i ment! here we go:
Quote:
use uo;
use os;
program_Quest(who)
OpenDataFile(::Mariaquest) ///The .cfg OR datafile
If(If you can't see +charname1+)
StartQuest(who, "Mariaquest1");
elseif
(You can see +charname1+)
StartQuest(who, "Mariaquest2");
elseif
(You can see (+charname1+ || +charname2+))
StartQuest(who, "Mariaquest3);
elseif
(You can see (+charname1+ || +charname2+ || +charname3+))
SendSysMessage(who, "Hi there dear fellow, have a good day! 3, ,50);
endif
////////////////////////////////////////
use uo;
use os;
program_mariaquest1(who)
SendSysMessage(who, "hi, bring me 100 gold",3 ,50);
CheckBackPack(who)
If(There is 100gp in backpack)
SendSysMessage(who, "Thank you, you have finished the quest" ,3 ,50);
ADD +CHARNAME1+ TO DATA/.CFG FILE MARIAQUEST! <------
elseif(There isn't 100gp in backpack)
SendSysMessage(who, "You don't got 100gp in your backpack, go get them pl0x!" ,3 ,50);
endif
EXPLANATION:
If you do the first quest you will get the number 1 after your name, and since i don't know
how to script that yet, i added an lousy example "+charname->1<-+" so thats why there is a number 1 after charname
also notify these sentences:
ADD +CHARNAME1+ TO DATA/.CFG FILE MARIAQUEST! <------
Thats the whole point.. How to add the charname in the file.
The whole first script is checking what type of quest it's going to be started.
Please help, thanks!
