User talk:Kymara
cleanup postman table
<source lang="sql"> CREATE TABLE IF NOT EXISTS temp_postman ( source VARCHAR(64),
target VARCHAR(64), message TEXT);
LOAD DATA LOCAL INFILE '/home/katie/workspace/stendhal/postmantable.csv' INTO TABLE temp_postman FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';
insert into postman (source, target, message, timedate, messagetype, delivered)
select source, target, message, '2010-07-20 00:00:00', 'P', 0 from temp_postman;
-- yes thats a lie about the message type, some came from npcs update postman set messagetype = 'N' where source in ('MrTaxman','Dagobert','Harold','Wilfred');
-- add indices on target and delivered (combined?)
-- remove messages where the target does not correspond to an existing character name delete postman from postman left join characters on character.charname = postman.target where character.charname is null;
-- remove messages where the target account.username is permanently banned (why do this first? it might get more?) delete postman from postman join account on account.username = postman.target where account.status='banned';
-- remove messages where the target character has an account which is is permanently banned delete postman from postman join characters on character.charname = postman.target join account on account.id = characters.player_id where account.status='banned';
-- remove any uncaught spam? delete from postman where source = 'Harold' and length(message)>1000;
</source>
Stuff to do, over time
- Correct some of the warnings in findbugs:
- Blackjack
- Help tomi string append
- Portal cast
- Review golden orc sword quest that's in feature requests
- Create quests pointing to dungeons