• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

SMS Shop(item/player) + show EQ + my skin for nicaw acc

@specx error adding player to store

Cannot add or update a child row: a foreign key constraint fails (`veridicot`.`bans`, CONSTRAINT `bans_ibfk_1` FOREIGN KEY (`admin_id`) REFERENCES `players` (`id`) ON DELETE SET NULL)
 
@specx error adding player to store

Cannot add or update a child row: a foreign key constraint fails (`veridicot`.`bans`, CONSTRAINT `bans_ibfk_1` FOREIGN KEY (`admin_id`) REFERENCES `players` (`id`) ON DELETE SET NULL)
Unknown column 'points' in 'field list' <- this appears when i buy a character
 
"Unknown column 'points' in 'field list' <- this appears when i buy a character"
fix:
in buy_player.php
it:
PHP:
$buy2 = mysql_query("UPDATE players SET points = 0 WHERE id = '$id' AND name = '$name'")OR die(mysql_error()); //zmienia points, gracz nie będzie miał ceny
change to:
PHP:
$buy2 = mysql_query("UPDATE players SET price = 0 WHERE id = '$id' AND name = '$name'")OR die(mysql_error()); //zmienia points, gracz nie będzie miał ceny

delete all tested players, with there are bugs
======================================================================

item shop:
I dont have server(avesta) in my pc, but tested it, if item dont go to player, i can fix for next week

the error is still?:
Cannot add or update a child row: a foreign key constraint fails (`veridicot`.`bans`, CONSTRAINT `bans_ibfk_1` FOREIGN KEY (`admin_id`) REFERENCES `players` (`id`) ON DELETE SET NULL)
 
item shop:
you don't change pud, change "103" to "101" item go to bp(player must have bp) or "10" - slot arrow

change
PHP:
$dar = mysql_query("INSERT INTO player_items VALUES('".$idpp."', '".$pud."', '103', '".$idmg."', '1', '')")OR die(mysql_error());

to:
PHP:
$dar = mysql_query("INSERT INTO player_items VALUES('".$idpp."', '".$pud."', '101', '".$idmg."', '1', '')")OR die(mysql_error());
or:
PHP:
$dar = mysql_query("INSERT INTO player_items VALUES('".$idpp."', '".$pud."', '10', '".$idmg."', '1', '')")OR die(mysql_error());

test and tell my how work
 
If you except people to use this you should index the variables abit better, use atleast something like p or even better player for the player class(an example) and translate all the polish to english.
Also why are you using MySQL insted of MySQLi?
 
@elnelson fix shop, all work, tested it, download version Acc v3.2 on site and add sql:
PHP:
ALTER TABLE `accounts` ADD `points` int(11) NOT NULL;
ALTER TABLE `accounts` ADD `points_history` int(11) NOT NULL;

ALTER TABLE `players` ADD `shop` int(11) NOT NULL;
ALTER TABLE `players` ADD `price` int(11) NOT NULL;

CREATE TABLE IF NOT EXISTS `shop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `info` text NOT NULL,
  `price` int(11) NOT NULL,
  `image` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;


CREATE TABLE IF NOT EXISTS `quest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`storage` int(11) NOT NULL,
`questname` varchar(20) NOT NULL,
`lvl` int(11) NOT NULL,
`desc` text NOT NULL, 
`rew` text NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

@WibbenZ i make this only for fun, i noob in sql/php
 
You succesfully bought your item! it was now added to your backpack, have fun!

and no have in backpack ;/
 
it is impossible, i download now latest version acc, install and test and all work!
1. goto: ACC TEST
2. download acc v3.2
3. read "SQL_README.txt"
4. install and add sql

PLAYER MUST BE OFFLINE WHEN BUY ITEM!
 
Hello.
I'm use nicaw from nicaw.net and item shop dont sending items to my BP.
What's going on ?

I don't use your nicaw, errors from database...

Regards !
 
This is only for nicaw for avesta,
Please any moderator to change topic name on "[NICAW ACC AVESTA] Sms Shop Item/Player, show EQ, HP, MP, QUESTS in sql"
 
Ekhm...
Okay, Can you can convert it to SQL Nicaw? form Nicaw.net ?
 
No, i don't know how builds is nicaw sql, if you minimal understand sql, you make convert
 
Back
Top