Jump to content
  • We need you!

    You must register to discover all the features of our community!

[C++][Lua] A function that assumes items and a start game


Recommended Posts

Posted (edited)

Receive items the first time you log in to the server.
Contains the lua function in C ++ and the quest.
This function allows you to receive the item and put it on. If you want to use it elsewhere, remember to check if the user has the equipment on.

 

I do quests at a good price. I invite you :)

 

Quote


Settings

local item = {
  ['all'] = {  -- Items for everyone
    {ITEM_ID, COUNT}, -- count OR "EQ" If I give EQ, the item will be put on the character
  },
  [1] = {       -- Warrior
    {ITEM_ID, ITEM_ID},   -- Put on
    {ITEM_ID, ITEM_ID}    -- Equipment
  },
  [2] = {       -- Ninja
    {ITEM_ID, ITEM_ID},   -- Put on
    {ITEM_ID, ITEM_ID}    -- Equipment
  },
  [3] = {       -- Sura
    {ITEM_ID, ITEM_ID},   -- Put on
    {ITEM_ID, ITEM_ID}    -- Equipment
  },
  [4] = {       -- Shaman
    {ITEM_ID, ITEM_ID},   -- Put on
    {ITEM_ID, ITEM_ID}    -- Equipment
  }
}


Also you can add

ds.give_qualification()     -- Alchemy
horse.set_level(1)          -- Horse level
pc.set_skill_level(122, 2)  -- Gives 2 combos
pc.set_skill_level(131, 10) -- Summon a horse
horse.ride()


Notification

chat("Have a nice game!")
Edited by Alerin (see edit history)
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.