Sol Reklam
Sağ Reklam
What's new

[QUEST] %55 dmg

KONU YAZAR

Winber789

New member
Onaylı Üye
Apr
15
12
1
This quest allow you to give everyone a weapon with 55% dmg when *he logs the server.

Spoyler: quest

Kod:


Code:
--[[
[HIDETHANKS]###########################
# Author: VegaS           #
# Date: 2017.04.20        #
# Quest: Choose the item  #
###########################
]]
quest select_item_quest begin
    state start begin
        when login with pc.get_level() == 1 begin
            send_letter("Choose the item")
        end
   
        when button or info begin
            say_title(string.format("Welcome to our server %s!", pc.get_name()))
            say("For start, we give you the opportunity")
            say("to choose a item with bonus.")
            say("I hope you choose wise!")
            say("")
       
            local SETTINGS_DICT = {
                [WARRIOR]   = {
                    ['type_weapon'] = {"Fms"},
                    ['vnum'] = {299, 3219}
                },
                [ASSASSIN]  = {
                    ['type_weapon'] = {"Pumnal", "Arc"},
                    ['vnum'] = {1179, 2199}
                },
                [SURA]      = {
                    ['type_weapon'] = {"Fms"},
                    ['vnum'] = {299}
                },
                [SHAMAN]    = {
                    ['type_weapon'] = {"Clopot", "Evantai"},
                    ['vnum'] = {5119, 7169}
                },
            }
            local jobIndex = pc.get_job()
            local dict = SETTINGS_DICT[jobIndex]['type_weapon']

            table.insert(dict, "Exit")
            local key = select_table(dict);
       
            if (key == table.getn(dict)) then
                send_letter("Choose the item")
                return
            end

            pc.give_item2_select(SETTINGS_DICT[jobIndex]['vnum'][key])
            item.set_value(0, 72, 55)
            set_state(__COMPLETE__)
        end
    end
    state __COMPLETE__ begin end
end[/HIDETHANKS]

How to install:

  • Save the quest in a document .txt named for ex. name_quest.quest
  • connect in filezilla / winscp and go in /usr/home/game/share/locale/germany/quest (depend wich files you're using).
  • drag the file ( .quest or .lua).
  • login in FreeBSD / putty and writer: cd /usr/home/game/share/locale/germany/quest apoi ./qc name_quest.quest
  • log in on server and write /reload q
 
Back
Top