Ir para conteúdo
  • Cadastre-se
  • 0

Criando uma tabela na Db para Donation


egonfelipealves

Pergunta

-- ----------------------------

-- `Table structure for items`

-- ----------------------------

CREATE TABLE IF NOT EXISTS `items` (

`owner_id` INT, -- object id of the player or clan,owner of this item

`object_id` INT NOT NULL DEFAULT 0, -- object id of the item

`item_id` INT, -- item id

`count` INT,

`enchant_level` INT,

`loc` VARCHAR(10), -- inventory,paperdoll,npc,clan warehouse,pet,and so on

`loc_data` INT, -- depending on location: equiped slot,npc id,pet id,etc

`tradeable` varchar(5) NOT NULL default 'false',

`price_sell` INT,

`price_buy` INT,

`time_of_use` INT, -- time of item use, for calculate of breackages

`custom_type1` INT DEFAULT 0,

`custom_type2` INT DEFAULT 0,

`mana_left` decimal(3,0) NOT NULL default -1,

PRIMARY KEY (`object_id`),

KEY `key_owner_id` (`owner_id`),

KEY `key_loc` (`loc`),

KEY `key_item_id` (`item_id`),

KEY `key_time_of_use` (`time_of_use`)

) DEFAULT CHARSET=utf8;

Isso e a tabela q vc pode bloquiar o intem no char ..depois de bater um monte a cabeça crieei essa tabela

 

CREATE TABLE IF NOT EXISTS `Donations` (

`owner_id` INT, -- object id of the player or clan,owner of this item

`object_id` INT NOT NULL DEFAULT 0, -- object id of the item

`tradeable` varchar(5) NOT NULL default 'true',

`dropable` varchar(5) NOT NULL default 'true',

`destroyable` varchar(5) NOT NULL default 'true',

`item_id` INT, -- item id

`count` INT,

`enchant_level` INT,

`loc` VARCHAR(10), -- inventory,paperdoll,npc,clan warehouse,pet,and so on

`loc_data` INT, -- depending on location: equiped slot,npc id,pet id,etc

`price_sell` INT,

`price_buy` INT,

`time_of_use` INT, -- time of item use, for calculate of breackages

`custom_type1` INT DEFAULT 0,

`custom_type2` INT DEFAULT 0,

`mana_left` decimal(3,0) NOT NULL default -1,

PRIMARY KEY (`object_id`),

KEY `key_owner_id` (`owner_id`),

KEY `key_loc` (`loc`),

KEY `key_item_id` (`item_id`),

KEY `key_time_of_use` (`time_of_use`)

) DEFAULT CHARSET=utf8;

essa seria minha tabela para ter um controle sobre itens donator..so q eu executo na Db vai legal..quando vo cria a sql tudo certo o iten nao vai oara o char ?

Ausente sim,Offline Nunca!!!!!!!!

Skype:Egon_alves

Msn:[email protected] =D

@egonfelipe

Ninguém vai escutar o que você disser até cometer um erro

10zn4.png

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts recomendados


com a primeira editada ele vai de boa ...so nao bloquei a na mão do player a arma ele pode joga no chao;passa en trade e blablbalbla..

eu vo consegui afazer essa tabela ou parecida

vo tenta mexe na tabela vip..

se der certo post aqui se nao der preciso de ajuda

Ausente sim,Offline Nunca!!!!!!!!

Skype:Egon_alves

Msn:[email protected] =D

@egonfelipe

Ninguém vai escutar o que você disser até cometer um erro

10zn4.png

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...



×
×
  • Criar Novo...

Important Information

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.