Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Era Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #61  
Old 11-02-2011, 10:23 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by Supaman771 View Post
Quantity
My bad.

Um, if you push the search button it sorts by gun name instead of account. After making it, I kinda like the search window better. I fixed the typo though.
__________________
Reply With Quote
  #62  
Old 11-02-2011, 11:09 PM
WillaWonka WillaWonka is offline
Stay Frosty
WillaWonka's Avatar
Join Date: Oct 2010
Location: Uijeongbu, South Korea
Posts: 978
WillaWonka will become famous soon enough
Do it as account name/community name so we don't have to see a load of Graal1234567s
__________________
Reply With Quote
  #63  
Old 11-03-2011, 02:40 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by WillaWonka View Post
Do it as account name/community name so we don't have to see a load of Graal1234567s
I'll give it a shot, The way I have it set up, it might be an issue. But I'll try and do it, most likely i'll have it formatted like this, Tim_Rocks (Graal123456). If that doesn't work, I'll just have to modify the DB table and include a row for community names (which is probably what I'm going to do)....
__________________
Reply With Quote
  #64  
Old 11-03-2011, 02:54 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Tim_Rocks View Post
I'll give it a shot, The way I have it set up, it might be an issue. But I'll try and do it, most likely i'll have it formatted like this, Tim_Rocks (Graal123456). If that doesn't work, I'll just have to modify the DB table and include a row for community names (which is probably what I'm going to do)....
You shouldn't show the Graal###### at all. It's never necessary for players to see those (with the exception of players who haven't chosen a community name).
__________________
Reply With Quote
  #65  
Old 11-03-2011, 03:17 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
You shouldn't show the Graal###### at all. It's never necessary for players to see those (with the exception of players who haven't chosen a community name).
Well that's how I have it set up right now anyway.. So I'll just leave it, I suppose.
__________________
Reply With Quote
  #66  
Old 11-03-2011, 05:06 AM
bloodykiller bloodykiller is offline
Era since 2005
Join Date: Oct 2010
Location: Italy
Posts: 1,421
bloodykiller is infamous around these partsbloodykiller is infamous around these parts
as long as it's in alphabetical order so we'll find ppl with no problems
Reply With Quote
  #67  
Old 11-03-2011, 06:15 AM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Graal#s are extremely annoying and not needed.
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?
Reply With Quote
  #68  
Old 11-03-2011, 06:51 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Tim_Rocks View Post
If that doesn't work, I'll just have to modify the DB table and include a row for community names (which is probably what I'm going to do)....
There's no reason to change your tables to store redundant data. I know there is already a table that stores every player's account/community name, and updates the community name if it has changed.
__________________
Reply With Quote
  #69  
Old 11-03-2011, 08:11 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by salesman View Post
There's no reason to change your tables to store redundant data. I know there is already a table that stores every player's account/community name, and updates the community name if it has changed.
Well, I'm just sticking with community name, I'm not doing any of that extra un-needed stuff. I suppose if they update their community name the previous community name already in the DB will just be stuck in there... Unless a staff deletes it.
__________________
Reply With Quote
  #70  
Old 11-03-2011, 01:36 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Tim_Rocks View Post
Well, I'm just sticking with community name, I'm not doing any of that extra un-needed stuff. I suppose if they update their community name the previous community name already in the DB will just be stuck in there... Unless a staff deletes it.
Uhm, you should not be storing the community name in the table at all unless you're using it in addition to the account. I hope you're keeping in mind that some players don't have community names, and that they can change. The account should be used as an internal identifier. There are already functions available for getting a community name from an account (DB_Names.getCommunityName or something like that iirc) that you should be using.
__________________
Reply With Quote
  #71  
Old 11-03-2011, 05:21 PM
bloodykiller bloodykiller is offline
Era since 2005
Join Date: Oct 2010
Location: Italy
Posts: 1,421
bloodykiller is infamous around these partsbloodykiller is infamous around these parts
/lookup "account name" or /lookup "community name" tells u both
Reply With Quote
  #72  
Old 11-03-2011, 10:10 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
Uhm, you should not be storing the community name in the table at all unless you're using it in addition to the account. I hope you're keeping in mind that some players don't have community names, and that they can change. The account should be used as an internal identifier. There are already functions available for getting a community name from an account (DB_Names.getCommunityName or something like that iirc) that you should be using.
could use a JOIN operation to get community names in a single query. Assuming the table that stores updated accounts/community names is called 'accounts':

NPC Code:
SELECT bulletin_table.account[, other_rows_you_need], accounts.communityname FROM bulletin_table
LEFT JOIN accounts ON bulletin_table.account = accounts.account;



My SQLite is a bit rusty, but I'm pretty sure the syntax is correct and that it would work without explicitly defining any primary/foreign keys.
__________________
Reply With Quote
  #73  
Old 11-03-2011, 11:29 PM
bloodykiller bloodykiller is offline
Era since 2005
Join Date: Oct 2010
Location: Italy
Posts: 1,421
bloodykiller is infamous around these partsbloodykiller is infamous around these parts
yah i agree with sales the npc code looks good id say, gj
Reply With Quote
  #74  
Old 11-04-2011, 06:32 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Well, here's what I changed tonight (not much), but I fixed the search to find things a little better.



What I'm working on now is limiting your options a little, I'm going to make it so it loads all the items from your inventory, removes spam and or crap.
__________________
Reply With Quote
  #75  
Old 11-04-2011, 07:59 AM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Keep up the good work! =]
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.