Jump to content

cosmin24hd

Inactive Member
  • Posts

    16
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by cosmin24hd

  1. P Skill (NPC) Quest + Secondary skills, enjoy

     

    1. P-Skill for NPC =>

    quest skill begin
    
    state start begin
    
    when 20094.chat."Skills" begin
    
    say_title(mob_name(npc.get_race())..":")
    
    say("Hello "..pc.name)
    
    say("What abilities you need?....[ENTER][ENTER][ENTER][ENTER]")
    
    local s = select ("M","G","P","Exit")
    
    if s==1 then
    
    sk=20
    
    skill = "M"
    
    limita=30
    
    bani=1000000
    
    elseif s==2 then
    
    sk=30
    
    skill = "G"
    
    limita=60
    
    bani=10000000
    
    elseif s==3 then
    
    sk=59
    
    skill = "P"
    
    limita=90
    
    bani=50000000
    
    end
    
    say_title(mob_name(npc.get_race())..":")
    
    say("Hello "..pc.name)
    
    say("You have choosed  "..skill.."")
    
    say("to continue you need ")
    
    say("Level: "..limit.."[ENTER]Yang:"..yang.."")
    
    say("Wanna continue?[ENTER](c) M2Dev")
    
    if select("Da","Nu")==1 then
    
    if pc.get_level() >=limit and pc.get_gold() >= yang then
    
    pc.changegold ( -yang )
    
    table.foreachi(special.active_skill_list[pc.get_job()+1][pc.get_skill_group()],function(r,skill) pc.set_skill_level(skill,sk) end)
    
    end
    
    elseif pc.get_level() < limit then
    
    say_title(mob_name(npc.get_race())..":")
    
    say("Hello "..pc.name)
    
    say("You choosed your skills "..skill.."")
    
    say("but you don't have the necessary level ("..limit..")")
    
    say("comeback when you grow up.")
    
    elseif pc.get_gold() < yang then
    
    say_title(mob_name(npc.get_race())..":")
    
    say("Hello "..pc.name)
    
    say("You have choosed your skills"..skill.."")
    
    say("but you don't have enough gold ("..yang..")")
    
    say("come back when you have enough money.")
    
    end
    
    end
    
    end
    
    end[/spoiler]

    2. Part 2, for secondary skills

     

    state start begin
    
    when 50512.use begin
    
    say_title("P-Skill Script:")
    
    say("Hello "..pc.name)
    
    say("Choose what abilities you want....[ENTER][ENTER][ENTER][ENTER]")
    
    local s = select ("M","G","P","Secondary","Exit")
    
    if s==1 then
    
    sk=20
    
    skill = "M"
    
    limita=30
    
    bani=1000000
    
    elseif s==2 then
    
    sk=30
    
    skill = "G"
    
    limita=60
    
    bani=10000000
    
    elseif s==3 then
    
    sk=59
    
    skill = "P"
    
    limita=90
    
    bani=50000000
    
    elseif s==4 then
    
    sk=59
    
    skill = "Secondary"
    
    limita=90
    
    bani=50000000
    
    end
    
    say_title("P-Skill Script:")
    
    say("Hello "..pc.name)
    
    say("You have choosed your skills "..skill.."")
    
    say("To continue you need level ")
    
    say("Nivelul: "..limit.."[ENTER]Yang:"..yang.."")
    
    say("Wanna continue?[ENTER](c) M2Dev")
    
    if select("Yes","No")==1 then
    
    if pc.get_level() >=limit and pc.get_gold() >= yang then
    
    pc.changegold ( -yang )
    
    if skill=="Secundare" then
    
    pc.set_skill_level(121 ,59)
    
    pc.set_skill_level(122 ,2)
    
    pc.set_skill_level(123 ,59)
    
    pc.set_skill_level(124 ,59)
    
    pc.set_skill_level(125 ,59)
    
    pc.set_skill_level(126 ,59)
    
    pc.set_skill_level(127 ,59)
    
    pc.set_skill_level(128 ,59)
    
    pc.set_skill_level(129 ,59)
    
    pc.set_skill_level(130 ,30)
    
    pc.set_skill_level(131 ,59)
    
    pc.set_skill_level(132 ,59)
    
    pc.set_skill_level(133 ,59)
    
    pc.set_skill_level(134 ,59)
    
    pc.set_skill_level(135 ,59)
    
    pc.set_skill_level(136 ,59)
    
    pc.set_skill_level(137 ,59)
    
    elseif skill=="G" or skill=="M" or skill=="P" then
    
    table.foreachi(special.active_skill_list[pc.get_job()+1][pc.get_skill_group()],function(r,skill) pc.set_skill_level(skill,sk) end)
    
    end
    
    end
    
    elseif pc.get_level() < limita then
    
    say_title("P-Skill Script:")
    
    say("Hello "..pc.name)
    
    say("You have choosed your skills "..skill.."")
    
    say("but you don't have the necessary level("..limit..")")
    
    say("Come back when you grow.")
    
    elseif pc.get_gold() < yang then
    
    say_title("P-Skill Script:")
    
    say("Hello "..pc.name)
    
    say("You have choosed your skills "..skill.."")
    
    say("but you don't have enough yang ("..yang..")")
    
    say("come back when you got them.")
    
    end
    
    end
    
    end
    
    end

     

    Limit = Level Limit

    Yang = Necessary yang

    The quest isn't tested and made by me so it can have some bugs but you can easy deal with them as long as you modify logically.
    
  2. MATTHIAS0397

    what ist the Password and User on  mysql.

     

    1. Open PuTTY and log in as

    User: root
    Password dev
    

    2.

    Type cd /var/db
    

    3

    tar zxvf inscarnium_db.tar.gz
    

    After this follow the next steps =>

     

    1 Go to

    /etc/rc  (FileZilla)
    

    2

    Edit rc.conf and add last line
    mysql_args="--skip-grant-tables --skip-networking"
    

    3

    /usr/local/etc/rc.d/mysql-server restart
    

    4

     mysql -u root mysql
    

    5

    UPDATE user SET Password=PASSWORD('New Password') WHERE USER='root';
    

    6

    FLUSH PRIVILEGES;
    

    7

    exit;
    

    8

    Edit again rc. conf and delete the line
    mysql_args="--skip-grant-tables --skip-networking"
    

    8

    /usr/local/etc/rc.d/mysql-server restart
    

    9

    mysql_upgrade -p --force => the password you've set above
    
    

    10

    Login to MySQL with your password.
    
    • Metin2 Dev 2
    • Good 2
    • Love 3
  3. 1. Google 'metin2 source code' or 'metin2 source kraizy.tgz'

    2.

    For game & db use the VM with BSD 9.2 and g++

    For client binary use VS2008 + SP1 ( full support for Windows XP [all SP] ) 

    Thanks a lot, any tutorial about how to compile the source?

     

    EDIT1: got this annoying error o.o

    https://metin2.download/picture/iE1jRsqk378MK4Nl7dlUKJRtUkifnsvr/.png

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.