Advertisement
Guest User

Untitled

a guest
Jan 24th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.13 KB | None | 0 0
  1.  
  2.     nation = player:getNation();
  3.  
  4.     -- To prevent the cs conflict, use the 1st and 2nd for guard and 3/4 for npc
  5.     -- missionid, {Guard1CS,option}, {Guard2CS,option}, {NPC1 CS,option}, {NPC2 CS,option}, {{function,value},...},
  6.     --  1: player:addMission(nation,mission);
  7.     --  2: player:messageSpecial(YOU_ACCEPT_THE_MISSION);
  8.     --  3: player:setVar(variablename,value);
  9.     --  4: player:tradeComplete();
  10.     --  5: player:addRankPoints(number);
  11.     --  6: player:setRankPoints(0);
  12.     --  7: player:addPoint(player:getNation(),number); player:messageSpecial(YOUVE_EARNED_CONQUEST_POINTS);
  13.     --  8: player:addGil(GIL_RATE*number); player:messageSpecial(GIL_OBTAINED,GIL_RATE*number);
  14.     --  9: player:delKeyItem(number);
  15.     -- 10: player:addKeyItem(number); player:messageSpecial(KEYITEM_OBTAINED,number);
  16.     -- 11: player:setRank(number);
  17.     -- 12: player:completeMission(nation,mission);
  18.     -- 13: player:addTitle(number);
  19.     -- 14: player:setVar("MissionStatus",value);
  20.  
  21.     if(nation == SANDORIA) then
  22.         if((csid == 0x03f1 or csid == 0x07d9) and option ~= 1073741824 and option ~= 31) then
  23.             if(option > 100) then
  24.                 badoption = {101,1,102,2,104,4,110,10,111,11};
  25.                 for op = 1, table.getn(badoption), 2 do
  26.                     if(option == badoption[op]) then
  27.                     timeline = {badoption[op+1],{0x03f1,badoption[op]},{0x07d9,badoption[op]},{0,0},{0,0},{{1},{2}}}; end
  28.                 end
  29.             elseif(option == 14) then
  30.                 timeline = {option,{0x03f1,option},{0x07d9,option},{0,0},{0,0},{{1},{2},{3,"MissionStatus",9}}};
  31.             else
  32.                 timeline = {option,{0x03f1,option},{0x07d9,option},{0,0},{0,0},{{1},{2}}};
  33.             end
  34.         else
  35.             timeline = {
  36.  -- MissionID,{Guard#1 DialogID, option},{Guard#2 DialogID, option},{NPC#1 DialogID, option},{NPC#2 DialogID, option},{function list}
  37.  0,{0x03e8,0},{0x07d0,0},{0,0},     {0,0},{{1},{2}},        -- MISSION 1-1 (First Mission [START])
  38.  0,{0x03fc,0},{0x07e4,0},{0,0},     {0,0},{{4},{5,150},{12},{14,0}},    -- MISSION 1-1
  39. 0,{0x03ea,0},{0x07d2,0},{0,0},      {0,0},{{4},{5,150},{12}},       -- MISSION 1-1 [Repeat]
  40. 1,{0x03ff,0},{0x07e7,0},{0,0},      {0,0},{{4},{14,0},{5,200},{12}},            -- MISSION 1-2
  41.  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