Hello!
Can someone tell me how I can make script like this:
It should be with OnFirstLogin function. It should check character realmid number and do following:
If character is from realmid 1 then insert his guid id, char name, and number 1
SQL Table example:
else if char is from realmid 2 then insert his guid id, char name, but instead of adding number 1 add number 2
then if he's from realmid 3 do same things just add number 3... etc
With respect Intouch.
Can someone tell me how I can make script like this:
It should be with OnFirstLogin function. It should check character realmid number and do following:
If character is from realmid 1 then insert his guid id, char name, and number 1
SQL Table example:
Code:
DROP TABLE IF EXISTS `realm_members`;
CREATE TABLE `realm_members` (
`guid` int(10) unsigned NOT NULL,
`player_name` longtext NOT NULL,
`number` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
else if char is from realmid 2 then insert his guid id, char name, but instead of adding number 1 add number 2
then if he's from realmid 3 do same things just add number 3... etc
With respect Intouch.