case "Start Opium Smuggle Quest":
//Keep track of how many times we did this
if(!CheckAttribute(Pchar,"amount_smuggleruns_opium")) Pchar.amount_smuggleruns_opium = 0;
Pchar.amount_smuggleruns_opium = sti(Pchar.amount_smuggleruns_opium) + 1;
questbookname = "smuggle_opium&number="+Pchar.amount_smuggleruns_opium; //Set a questname
//Add Questbook Data
Preprocessor_AddQuestData("buyer", PChar.quest.opium_smuggling.lastbuyer.name);
Preprocessor_AddQuestData("place", GetPrettyLocationName(pchar.location));
Preprocessor_AddQuestData("amount", PChar.quest.opium_smuggling.lastbuyer.amount);
SetQuestHeader(questbookname);
AddQuestRecord(questbookname, 1);
Preprocessor_Remove("buyer");
Preprocessor_Remove("place");
Preprocessor_Remove("amount");
//Set attribute to keep track the quest is bussy
PChar.quest.opium_smuggling.questgiven = true;
//Set expiration timer
PChar.quest.Opium_Smuggling_Expire.win_condition.l1 = "Timer";
PChar.quest.Opium_Smuggling_Expire.win_condition.l1.date.day = GetAddingDataDay(0,2,0); // TALISMAN corrected - timer was 2 days?!! not 2 months - PChar.quest.Opium_Smuggling_Expire.win_condition.l1.date.day = GetAddingDataDay(0,0,2);
PChar.quest.Opium_Smuggling_Expire.win_condition.l1.date.month = GetAddingDataMonth(0,2,0); // TALISMAN corrected - timer was 2 days?!! not 2 months - PChar.quest.Opium_Smuggling_Expire.win_condition.l1.date.month = GetAddingDataMonth(0,0,2);
PChar.quest.Opium_Smuggling_Expire.win_condition.l1.date.year = GetAddingDataYear(0,2,0); // TALISMAN corrected - timer was 2 days?!! not 2 months - PChar.quest.Opium_Smuggling_Expire.win_condition.l1.date.year = GetAddingDataYear(0,0,2);
PChar.quest.Opium_Smuggling_Expire.win_condition = "Opium Smuggle Expire";
break;