Index: scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua =================================================================== --- scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua (revision 2793) +++ scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua (working copy) @@ -69,6 +69,18 @@ -- printf("RESULT: %u",option); if(csid == 0x2712 and option == 1) then + local new_nation = WINDURST; + local rank = getNationRank(new_nation); + local cost = 0; + + if(rank == 1) then + cost = 40000; + elseif(rank == 2) then + cost = 12000; + elseif(rank == 3) then + cost = 4000; + end + player:setNation(new_nation) player:setGil(player:getGil() - cost); player:setRankPoints(0); Index: scripts/zones/Metalworks/npcs/Mythily.lua =================================================================== --- scripts/zones/Metalworks/npcs/Mythily.lua (revision 2793) +++ scripts/zones/Metalworks/npcs/Mythily.lua (working copy) @@ -67,6 +67,18 @@ -- printf("RESULT: %u",option); if(csid == 0x0168 and option == 1) then + local new_nation = BASTOK; + local rank = getNationRank(new_nation); + local cost = 0; + + if(rank == 1) then + cost = 40000; + elseif(rank == 2) then + cost = 12000; + elseif(rank == 3) then + cost = 4000; + end + player:setNation(new_nation) player:setGil(player:getGil() - cost); player:setRankPoints(0); Index: scripts/zones/Northern_San_dOria/npcs/Beriphaule.lua =================================================================== --- scripts/zones/Northern_San_dOria/npcs/Beriphaule.lua (revision 2793) +++ scripts/zones/Northern_San_dOria/npcs/Beriphaule.lua (working copy) @@ -66,6 +66,18 @@ -- printf("RESULT: %u",option); if(csid == 0x025e and option == 1) then + local new_nation = SANDORIA; + local rank = getNationRank(new_nation); + local cost = 0; + + if(rank == 1) then + cost = 40000; + elseif(rank == 2) then + cost = 12000; + elseif(rank == 3) then + cost = 4000; + end + player:setNation(new_nation) player:setGil(player:getGil() - cost); player:setRankPoints(0);