antiblock
Cyphriun
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
ƤāƱŁѲ ƒēƦƦēƗƦā

[Quest/function]Upgrade Item

7 posts in this topic

antiblock
Elveron

Obrigado por partilhares!

 

 

+1

 

 

Cumprimentos

Share this post


Link to post
Share on other sites

interessante.  good job 

Share this post


Link to post
Share on other sites

velho essa formalidade não fica bem com vcyolo

Share this post


Link to post
Share on other sites

Tá aí para 2089: 

function pc_upgrade(cell, itemup)	if item.select_cell(tonumber(cell)) then		local attr = {{lf_item.get_attr(0)}, {lf_item.get_attr(1)}, {lf_item.get_attr(2)}, {lf_item.get_attr(3)}, {lf_item.get_attr(4)}, {lf_item.get_attr(5)}, {lf_item.get_attr(6)}}		local socket = {item.get_socket(0), item.get_socket(1), item.get_socket(2)}		item.remove()		pc_give_or_drop_item_and_select(itemup, 1)		for i = 1, table.getn(attr) do			if tonumber(attr[i][1]) > 0 then				lf_item.set_attr(i-1, attr[i][1], attr[i][2])			end		end		for i = 1, table.getn(socket) do			if tonumber(socket[i]) > 0 then				item.set_socket(i-1, socket[i])			end		end		return true	end	return falseendfunction pc_give_or_drop_item_and_select(iVnum, iCount)	if pc.enough_inventory(iVnum) then		pc.give_item2(iVnum, iCount)	else		game.drop_item_with_ownership(iVnum, iCount)	endend
Não testei, nem vou testar. Nem sei se a lf_item.get_attr funciona como o item2.get_attr, que funciona como se fosse um array.

Share this post


Link to post
Share on other sites

Uma pergunta, como meto a lib do iMer a trabalhar? a libstdc++.so.6 eu já estava a usar, mas a outra, ando meio baralhado com essa...

É com a função do LD_32_PROLOAD certo? se sim, alguem que me escreva aí a função que eu não a sei de cor -.-

Share this post


Link to post
Share on other sites

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
Sign in to follow this