Register for your free account! | Forgot your password?

You last visited: Today at 14:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] With pets

Discussion on [HELP] With pets within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
slovacisko's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 108
Received Thanks: 48
[HELP] With pets

Hallo,
ich habe unbugged invoice files.
Ich habe 32 bit version.
Haustiere sind nicht funktioniert. Bitte helfen Sie. Danke

.lua file:
Code:
--[[
    Questliberweiterung generiert by Mijago
    Link: http://questwriting.mijago.org/questlib/index.php?exec=1&updater=0&b1=1&b2=1
    Funktionen: 
        split, mysql_query
--]]


--[[
    @name   split
    @author Internet (http://lua-users.org/wiki/SplitJoin)
    @descr
Splittet einen String in eine Tabelle.
--]]
function split(str, delim, maxNb)
    if str == nil then return str end
    if string.find(str, delim) == nil then return { str } end
    if maxNb == nil or maxNb < 1 then maxNb = 0 end
    local result = {}
    local pat = "(.-)" .. delim .. "()"
    local nb = 0
    local lastPos
    for part, pos in string.gfind(str, pat) do
        nb = nb + 1
        result[nb] = part
        lastPos = pos
        if nb == maxNb then break end
    end
    if nb ~= maxNb then result[nb + 1] = string.sub(str, lastPos) end
    return result
end


--[[
    @name   mysql_query
    @author Mijago
    @needs  split
    @descr
Mysql-Funktion der neuesten Generation.
--]]
mysql_query = function(query)
    if not pre then
        local rt = io.open('CONFIG','r'):read('*all')
        pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4')
    end
    math.randomseed(os.time())
    local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{}
    os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- für MySQL51
    -- os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- für MySQL55
    for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);
    for i = 2, table.getn(t) do table.foreach(t[i],function(a,b)
        out[i-1]               = out[i-1] or {}
        out[i-1][a]            = tonumber(b) or b or 'NULL'
        out[t[1][a]]           = out[t[1][a]] or {}
        out[t[1][a]][i-1]      = tonumber(b) or b or 'NULL'
    end) end
    return out
end
#closerequest
Solved. I create my quest for pets, hate lua
slovacisko is offline  
Closed Thread


Similar Threads Similar Threads
[Help]Non Tradeable Items, Pets, Grap Pets Etc.
12/22/2011 - SRO Private Server - 0 Replies
How can i do these? I want to do this Item Mall items can not be traded. and I want to gave a grap pet and premium(only 1 week term) for my new player when they open a new character they see this on their inventory. Also i want to gave this like award for event times.
[Demon pets Online] Newest database, God Maps, Customs, New Pets, Check us Out.
07/17/2010 - EO PServer Hosting - 15 Replies
http://i45.tinypic.com/2j26zio.png Server Rates: • Exp Rate: Mediun • Drop Gold: Medium • Drop 2700 card: Medium • Drop 270 card: Medium • Drop Bags: Medium
WTS Rare Pets and Basic Pets on Lydian
02/11/2010 - Rappelz Trading - 5 Replies
I am selling all my pets i have in game at the server of Lydian. full ob Angel and Kenta low lvl Naga low lvl Harpy , Hawk and Sala I am selling the Pets only for CASH ! I can show screenshots or i can show you the pets in Game too ! Dont accept trading or ppl who gave me offer and pm me back in more then 7 days again !
[HELP] pets disappear , pets name , skills , others
01/30/2009 - EO PServer Hosting - 9 Replies
hi guyz hope u can help me with those 1 - someone in my server pet's has disappear from warehouse and inventory and knights table , but they still exist in the leg totem , and cq_eudemon , i've checked the owner_id and stuff all correct whats wrong ? 2 - pets in my server have Chinese names or smthn strange how can i make them English back again ? 3 - i know that i've asked this thing maaaaaaaaaaaany times , but so far no answer can somone plz tell me how to fix or at least tell me...
New Way to Dupe Pets / Call out Multiple Pets
04/21/2006 - General Gaming Discussion - 0 Replies
*TESTCENTER*do this before the blue frog disappears and stops giving out mounts/vehicles. 1. go to to the blue frog, go to vehicles/mounts. 2. pick ur mount, it will come out 3. wait till it disappears 4. once it disappears call it out, and mount it



All times are GMT +2. The time now is 14:58.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.