16-07-2006, 05:39 AM
I'm trying to make some systems who need save items or "rewards" to offline player, i don't have a idea of a simple way to do it, thats why i need ask help -_- lets see if someone can do it... ^^ *plz*
Give Items to a offline player
|
16-07-2006, 05:39 AM
I'm trying to make some systems who need save items or "rewards" to offline player, i don't have a idea of a simple way to do it, thats why i need ask help -_- lets see if someone can do it... ^^ *plz*
16-07-2006, 06:50 AM
Im not too flash with blting, but im okay with all the other stuff.. I can pretty much do things, although i cant garentee speed.. If you could explain thoroughly what your after, with the help of others of course, we can come up with a good system of how to achieve what your after.. From what you posted, im assuming you want to make a system which can send items to players which are offline.. Im still unsure of what your trying to say.. Sorry if it sounded harsh..
16-07-2006, 08:42 AM
Haha, is ok, man... i just posted without explain what i'm really after. Well, i just finish a market system, what is that? is a place where any player can post a item he want sell, then any player appear, see the post and buy it if he want. The only problem i have now is that the owner of the post need be online if he want sell the item. Then, the idea is that he can go offline, and if any player buy the item from the market, the owner of it recieve the pay.
With the thing i'm trying to do (the offline thing) u can do a reward systems, mails, leave messages, etc... but i need right now, for my market system ^^
16-07-2006, 12:03 PM
so basically you need to scan through all the accounts to find the right
character in order to give them something? or load their acocunt to add some thing to it.. well I have managed to make a system of loading an offline players account into a temporary server side account with which you could then add something to it it first scans through all the accounts to find the right persons account and character then it will laod that account and all its characters to allow you to edit hem as you see fit to do so if this is what you are looking for let me know.. I guess since this is the second time of giving out this code i should juts post it only if this is what he wants
16-07-2006, 02:54 PM
Lol, Spoons system seems a lot more logical than mine.. I have a question though, i was pretty sure you could edit peoples accounts whether or not they were online.. But i guess not, since spoon made that system..
So, with the help of spoon awesome sounding system, which i need by the way.. I've come up with this.. When a player posts an item up for sale, it saves it into a database.. Then the player can log off and, their details will still be online.. Now, when a player comes and wants to buy that certain item.. It uses the info already saved and puts all that info spoons subroutine.. Which, then yeah.. ![]() I hope that helped.. Since you brought it up Xentar.. Im gonna try and make what you were saying.. ![]()
16-07-2006, 03:29 PM
okay well you want the system as far as
scanning the accounts to find the right one then laoding that account into a temp account array serverside then the ability to make your changes and save it.. hmm okay .. I guess I can make a quick copy and paste tutorial on the scanning/loading of the acocunt file into a tempAccount which is then dumped after task is completed okay.. it has a bit of redundant code and depending on what sort of account system you have you may need to adjust it a bit.. keep an eye out in the tutorials section
16-07-2006, 06:13 PM
while i sleep u save me again, spoon XD ok, i will keep my eyes... market system, here we go! xD
thx to u two!
17-07-2006, 01:27 AM
Wouldnt this be easier to just use an INI file?
Say, player 1 puts item up for sale. Write to INI: Player 1 Name Item Number Item Quantity Item Price And a sold boolean, set to no Then, player 1 logs out. Player 2 comes along and buys the item Write to INI: Sold Boolean, set to yes. The rest can stay the same. Then, player 1 logs in. If player 1's name is in the INI file, say Market.INI, and the sold boolean = true, then we reward player 1 with the Item Price. May be a lot of work but it I think this might be a good route to go. EDIT: Nvm, just saw spoon's tut. Thats easier lol. |
« Next Oldest | Next Newest »
|