elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Metin2 Private Server (https://www.elitepvpers.com/forum/metin2-private-server/)
-   -   Function for unlock premium title with an item (https://www.elitepvpers.com/forum/metin2-private-server/4546799-function-unlock-premium-title-item.html)

Uzeris 10/30/2018 12:54

Function for unlock premium title with an item
 
Hi mates! :)

Quote:

when 391.kill with pc.is_gm() begin
local to_learn_count = 10
local _getqf = pc.getqf("title_15")
if to_learn_count >= _getqf + 1 and not pc.get_title(15) then
if pc.set_title(15, 1) == true then
syschat("You just unlock the Mi-Jung Hunter title, compliments!")
end
else
pc.setqf("title_15", _getqf + 1)
end
end
Can anyone modify this function to unlock a title with an inventory item? (as a potion , for example) .
So only if you have an item with a specific code (e.g. /i 333 in the inventory, you can activate a title.
__________
Cheers , Uzeris

Uzeris 10/31/2018 13:57

UP! Is there someone who can help me, please? :handsdown:


All times are GMT +2. The time now is 00:26.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.