Jump to content
Close

gmstrikker

Member
  • Content Count

    222
  • Joined

  • Last visited

1 Follower

About gmstrikker

  • Rank
    Knight

Profile Information

  • Gender
    Masculino
  • I am
    OT-Admin
  • My character
    GM Strikker
  • Favorite OTServ
    arthos.servegame.com

Recent Profile Visitors

1158 profile views
  1. https://github.com/Fir3element/3777/tree/master/src
  2. Como compilar o OTClient no Debian 9, já estou tentando a um tempo, se preciso até pago pra quem me ajudar! As dependencias estão instaladas: root@tduarte:/home/leo# apt-get install -y build-essential cmake git-core Reading package lists... Done Building dependency tree Reading state information... Done git-core is already the newest version (1:2.11.0-3+deb9u2). build-essential is already the newest version (12.3). cmake is already the newest version (3.7.2-1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. root@tduarte:/home/leo# apt-get install -y libboost-all-dev libphysfs-dev libssl-dev liblua5.1-0-dev Reading package lists... Done Building dependency tree Reading state information... Done libssl-dev is already the newest version (1.1.0f-3+deb9u1). libboost-all-dev is already the newest version (1.62.0.1). libphysfs-dev is already the newest version (2.0.3-5). liblua5.1-0-dev is already the newest version (5.1.5-8.1+b2). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. root@tduarte:/home/leo# apt-get install -y libglew-dev libvorbis-dev libopenal-dev zlib1g-dev Reading package lists... Done Building dependency tree Reading state information... Done libglew-dev is already the newest version (2.0.0-3+b1). libvorbis-dev is already the newest version (1.3.5-4). libopenal-dev is already the newest version (1:1.17.2-4+b2). zlib1g-dev is already the newest version (1:1.2.8.dfsg-5). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Mas quando eu tento compilar... root@tduarte:/home/leo/Documents/otclient/build# make [ 1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o /home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’: /home/leo/Documents/otclient/src/framework/util/crypt.cpp:329:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_dec2bn(&m_rsa->n, n.c_str()); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:330:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_dec2bn(&m_rsa->e, e.c_str()); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:333:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:333:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:333:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ _rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’: /home/leo/Documents/otclient/src/framework/util/crypt.cpp:338:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_dec2bn(&m_rsa->p, p.c_str()); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:339:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_dec2bn(&m_rsa->q, q.c_str()); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:340:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_dec2bn(&m_rsa->d, d.c_str()); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:343:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:343:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:343:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ _rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:344:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:344:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:344:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ _rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; } ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ In file included from /usr/include/openssl/asn1.h:24:0, from /usr/include/openssl/rsa.h:16, from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35: /home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’: /home/leo/Documents/otclient/src/framework/util/crypt.cpp:355:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx); ^ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ In file included from /usr/include/openssl/asn1.h:24:0, from /usr/include/openssl/rsa.h:16, from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35: /home/leo/Documents/otclient/src/framework/util/crypt.cpp:355:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx); ^ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ In file included from /usr/include/openssl/asn1.h:24:0, from /usr/include/openssl/rsa.h:16, from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35: /home/leo/Documents/otclient/src/framework/util/crypt.cpp:356:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx); ^ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ In file included from /usr/include/openssl/asn1.h:24:0, from /usr/include/openssl/rsa.h:16, from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35: /home/leo/Documents/otclient/src/framework/util/crypt.cpp:356:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx); ^ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:358:29: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:358:42: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ /home/leo/Documents/otclient/src/framework/util/crypt.cpp:358:52: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’ BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx); ^~ In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0: /home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’ typedef struct rsa_st RSA; ^~~~~~ CMakeFiles/otclient.dir/build.make:110: recipe for target 'CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o' failed make[2]: *** [CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed make[1]: *** [CMakeFiles/otclient.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 root@tduarte:/home/leo/Documents/otclient/build#
  3. Vc q manja pra cacete, me ajuda a fazer isso pls Pra vc não achar que eu to querendo me aproveitar de sua nobresa andei pesquisando pra não fazer merda, acho que fiz certo pra adicionar a tabela a ALTER TABLE `auction_system` ADD `rarity` TINYINT(1) NOT NULL DEFAULT '0' AFTER `date`; (Isso no sistema de tradeoff) CREATE TABLE `auction_system` ( `id` int(11) NOT NULL auto_increment, `player` int(11), `item_id` int(11), `item_name` varchar(255), `count` int(11), `cost` int(11), `date` int(11), PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; ALTER TABLE `players` ADD `auction_balance` INT( 11 ) NOT NULL DEFAULT '0'; Ou era pra fazer na parte do item do player, pq ai eu não consigo achar como faz... Ai no market system --[[ Offline player to player item trader (Auction System) by vDk Script version: 1.2a [ -- FIXED CLONE ITEMS BUG -- ] ]]-- local config = { levelRequiredToAdd = 50, maxOffersPerPlayer = 5, SendOffersOnlyInPZ = true, blocked_items = {2165, 2152, 2148, 2160, 2166, 2167, 2168, 2169, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2343, 2433, 2640, 6132, 6300, 6301, 9932, 9933} } function onSay(cid, words, param, channel) if(param == '') then local msg = "Market:\n\n/market buy, ID\n/market remove, ID\n/market add, ItemName, ItemPrice, ItemCount\n\nMore information look in us website!" doPlayerPopupFYI(cid, msg) return true end local t = string.explode(param, ",") if(t[1] == "add") then if((not t[2]) or (not t[3]) or (not t[4])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end if(not tonumber(t[3]) or (not tonumber(t[4]))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't set valid price or items count.") return true end if(string.len(t[3]) > 7 or (string.len(t[4]) > 3)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This price or item count is too high.") return true end local item = getItemIdByName(t[2], false) if(not item) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end if(getPlayerLevel(cid) < config.levelRequiredToAdd) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have required (" .. config.levelRequiredToAdd .. ") level.") return true end if(getPlayerVocation(cid) == 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have the profession to do that action!") return true end if(isInArray(config.blocked_items, item)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This item is blocked.") return true end if(getPlayerItemCount(cid, item) < (tonumber(t[4]))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you don't have this item(s).") return true end local check = db.getResult("SELECT `id` FROM `auction_system` WHERE `player` = " .. getPlayerGUID(cid) .. ";") if(check:getID() == -1) then elseif(check:getRows(true) >= config.maxOffersPerPlayer) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry you can't add more offers (max. " .. config.maxOffersPerPlayer .. ")") return true end if(config.SendOffersOnlyInPZ) then if(not getTilePzInfo(getPlayerPosition(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You must be in PZ area when you add offert to database.") return true end end if(tonumber(t[4]) < 1 or (tonumber(t[3]) < 1)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to type a number higher than 0.") return true end local itemcount, costgp = math.floor(t[4]), math.floor(t[3]) doPlayerRemoveItem(cid, item, itemcount) db.executeQuery("INSERT INTO `auction_system` (`player`, `item_name`, `item_id`, `count`, `cost`, `date`) VALUES (" .. getPlayerGUID(cid) .. ", \"" .. t[2] .. "\", " .. getItemIdByName(t[2]) .. ", " .. itemcount .. ", " .. costgp ..", " .. os.time() .. ")") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You successfully add " .. itemcount .." " .. t[2] .." for " .. costgp .. " gps to offerts database.") end if(t[1] == "buy") then if(not tonumber(t[2])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") return true end local buy = db.getResult("SELECT * FROM `auction_system` WHERE `id` = " .. (tonumber(t[2])) .. ";") if(buy:getID() ~= -1) then if(getPlayerMoney(cid) < buy:getDataInt("cost")) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enoguh GP.") buy:free() return true end if(getPlayerName(cid) == getPlayerNameByGUID(buy:getDataInt("player"))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can't buy your own items.") buy:free() return true end if(getPlayerFreeCap(cid) < getItemWeightById(buy:getDataInt("item_id"), buy:getDataInt("count")))then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You try to buy a " .. buy:getDataString("item_name") .. ". It weight " .. getItemWeightById(buy:getDataInt("item_id"), buy:getDataInt("count")) .. " cap oz. and you have only " .. getPlayerFreeCap(cid) .. " oz. free capacity. Put some items to depot and try again.") buy:free() return true end if(getPlayerVocation(cid) == 0 or getPlayerVocation(cid) == 13 or getPlayerVocation(cid) == 14) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have the profession to do that action!") return true end if(isItemStackable((buy:getDataString("item_id")))) then doPlayerAddItem(cid, buy:getDataString("item_id"), buy:getDataInt("count")) else for i = 1, buy:getDataInt("count") do doPlayerAddItem(cid, buy:getDataString("item_id"), 1) end end doPlayerRemoveMoney(cid, buy:getDataInt("cost")) db.executeQuery("DELETE FROM `auction_system` WHERE `id` = " .. t[2] .. ";") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You bought " .. buy:getDataInt("count") .. " ".. buy:getDataString("item_name") .. " for " .. buy:getDataInt("cost") .. " gps!") db.executeQuery("UPDATE `players` SET `auction_balance` = `auction_balance` + " .. buy:getDataInt("cost") .. " WHERE `id` = " .. buy:getDataInt("player") .. ";") buy:free() else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") end end if(t[1] == "remove") then if((not tonumber(t[2]))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") return true end if(config.SendOffersOnlyInPZ) then if(not getTilePzInfo(getPlayerPosition(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You must be in PZ area when you remove offerts from database.") return true end end local delete = db.getResult("SELECT * FROM `auction_system` WHERE `id` = " .. (tonumber(t[2])) .. ";") if(delete:getID() ~= -1) then if(getPlayerGUID(cid) == delete:getDataInt("player")) then db.executeQuery("DELETE FROM `auction_system` WHERE `id` = " .. t[2] .. ";") if(isItemStackable(delete:getDataString("item_id"))) then doPlayerAddItem(cid, delete:getDataString("item_id"), delete:getDataInt("count")) else for i = 1, delete:getDataInt("count") do doPlayerAddItem(cid, delete:getDataString("item_id"), 1) end end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your offert has been deleted from offerts database.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This is not your offert!") end delete:free() else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong ID.") end end if(t[1] == "withdraw") then local balance = db.getResult("SELECT `auction_balance` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";") if(balance:getDataInt("auction_balance") < 1) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have money on your auction balance.") balance:free() return true end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You got " .. balance:getDataInt("auction_balance") .. " gps from auction system!") doPlayerAddMoney(cid, balance:getDataInt("auction_balance")) db.executeQuery("UPDATE `players` SET `auction_balance` = '0' WHERE `id` = " .. getPlayerGUID(cid) .. ";") balance:free() end return true end Ai no item add if(t[1] == "add") then Teria que colocar a parte do rarity do item db.executeQuery("INSERT INTO `auction_system` (`player`, `item_name`, `item_id`, `count`, `cost`, `date`) VALUES (" .. getPlayerGUID(cid) .. ", \"" .. t[2] .. "\", " .. getItemIdByName(t[2]) .. ", " .. itemcount .. ", " .. costgp ..", " .. os.time() .. ")") E no buy if(t[1] == "buy") then Teria que colocar a parte do rarirty tbm doPlayerAddItem(cid, buy:getDataString("item_id"), buy:getDataInt("count")) Tbm, eu acho que é só isso, mas não sei como faze
  4. Vc diz a tabela auction_system? Não sei mexer não, mas se vc me der um luz posso tentar! # Name Type Collation Attributes Null Default Comments Extra Action 1 id int(11) No None AUTO_INCREMENT Change Drop Primary More 2 player int(11) Yes NULL Change Drop Primary More 3 item_id int(11) Yes NULL Change Drop Primary More 4 item_name varchar(255) latin1_swedish_ci Yes NULL Change Drop Primary More 5 count int(11) Yes NULL Change Drop Primary More 6 cost int(11) Yes NULL Change Drop Primary More 7 date int(11) Yes NULL Change Drop Primary More
  5. Como tu disse é possivel mesmo mano! Meu amigo me mandou um OT que tem isso: http://www.noxiousot.com/?subtopic=market

Open Tibia Server

Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia começando do zero.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!

×
×
  • Create New...