Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nation = player:getNation();
- -- To prevent the cs conflict, use the 1st and 2nd for guard and 3/4 for npc
- -- missionid, {Guard1CS,option}, {Guard2CS,option}, {NPC1 CS,option}, {NPC2 CS,option}, {{function,value},...},
- -- 1: player:addMission(nation,mission);
- -- 2: player:messageSpecial(YOU_ACCEPT_THE_MISSION);
- -- 3: player:setVar(variablename,value);
- -- 4: player:tradeComplete();
- -- 5: player:addRankPoints(number);
- -- 6: player:setRankPoints(0);
- -- 7: player:addPoint(player:getNation(),number); player:messageSpecial(YOUVE_EARNED_CONQUEST_POINTS);
- -- 8: player:addGil(GIL_RATE*number); player:messageSpecial(GIL_OBTAINED,GIL_RATE*number);
- -- 9: player:delKeyItem(number);
- -- 10: player:addKeyItem(number); player:messageSpecial(KEYITEM_OBTAINED,number);
- -- 11: player:setRank(number);
- -- 12: player:completeMission(nation,mission);
- -- 13: player:addTitle(number);
- -- 14: player:setVar("MissionStatus",value);
- if(nation == SANDORIA) then
- if((csid == 0x03f1 or csid == 0x07d9) and option ~= 1073741824 and option ~= 31) then
- if(option > 100) then
- badoption = {101,1,102,2,104,4,110,10,111,11};
- for op = 1, table.getn(badoption), 2 do
- if(option == badoption[op]) then
- timeline = {badoption[op+1],{0x03f1,badoption[op]},{0x07d9,badoption[op]},{0,0},{0,0},{{1},{2}}}; end
- end
- elseif(option == 14) then
- timeline = {option,{0x03f1,option},{0x07d9,option},{0,0},{0,0},{{1},{2},{3,"MissionStatus",9}}};
- else
- timeline = {option,{0x03f1,option},{0x07d9,option},{0,0},{0,0},{{1},{2}}};
- end
- else
- timeline = {
- -- MissionID,{Guard#1 DialogID, option},{Guard#2 DialogID, option},{NPC#1 DialogID, option},{NPC#2 DialogID, option},{function list}
- 0,{0x03e8,0},{0x07d0,0},{0,0}, {0,0},{{1},{2}}, -- MISSION 1-1 (First Mission [START])
- 0,{0x03fc,0},{0x07e4,0},{0,0}, {0,0},{{4},{5,150},{12},{14,0}}, -- MISSION 1-1
- 0,{0x03ea,0},{0x07d2,0},{0,0}, {0,0},{{4},{5,150},{12}}, -- MISSION 1-1 [Repeat]
- 1,{0x03ff,0},{0x07e7,0},{0,0}, {0,0},{{4},{14,0},{5,200},{12}}, -- MISSION 1-2
- 1,{0x03eb,0},{0x07d3,0},{0,0}, {0,0},{{4},{14,0},{5,200}{12}}, -- MISSION 1-2 [Repeat]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement