1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

[v1.10] ServerEPRSystem

Discussion in 'Unsupported / Outdated Plugins' started by vharonftw, Sep 11, 2011.

  1. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    thank you for that compliment ^_^but Im not at Twitchy's level yet :p lol I'm just a beginner :p as a matter of fact i received help from him and other ppl from the tshock team (and others too) in making this (as you'll see some of my posts around the forums hehe) .. I barely know C# :p

    but like i said if ur using C3Mod it should be easy enough to draft up a few lines of codes for this (i'd have to ask Twitchy tho if i can.. but he's not on right now so lets just w8 till i can get a hold of him or when he sees this ^_^)
    --- Last Edited: Sep 14, 2011 6:41 PM ---
    also would you like me to rig something up as well to turn off monster point-drops (since u prolly won't need monster points)?
     
  2. Conner4892

    Conner4892 Level 2

    Joined:
    Aug 5, 2011
    Messages:
    27
    Removing monster point-drops could be cool. If its easy to implement, it wouldn't be a bad idea at all :p. Also, a suggestion, When buying something, it would be cool to see how much you spent.. Like instead of "Transaction Complete", maybe "Transaction completed for 100 points." "You have xxxx points remaining! Also, maybe a suggestion to work with c3. C3 would give "Game Tokens" in which can be exchanged for ''free'' items. For instance 2 tokens can get you any free item, and you win 1 token when you win a match of anything. This might prevent people from just letting eachother kill the other repeatedly for more and more points.
     
  3. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    thats not really a problem since you can actually set it so that players lose points when they die see the command "/cpoints deathtoll"

    will change that next build ^_^

    you'd have to ask Twitchy for that :p
     
  4. Conner4892

    Conner4892 Level 2

    Joined:
    Aug 5, 2011
    Messages:
    27
    Also, i noticed a typo. When changing the name of what points are called, no matter what word you change there is always an S on the end. I changed the name to tokens, and it was called Tokenss, so i had to just call it Token which makes it tokens lol :p
     
  5. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    lol the s was placed on purpose :p not a typo :p(though that means u cant put anything with an S at the end or Z for that matter... or X... or H ^_^ unless you don't mind wrong grammar :p)
     
  6. DaGamesta

    DaGamesta Level 5

    Joined:
    Sep 3, 2011
    Messages:
    114
    You should do what TShock does with items, which is put an s in () at the end. Like, "Gave Player 20 dirt block(s)"
     
  7. alerek

    alerek Level 6

    Joined:
    Jul 25, 2011
    Messages:
    125
    I love this! I'd kill for some type of pvp reward for shards, as well as an option to turn off the notifications that you received them~
     
  8. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    ok- those of you that have installed it and are running it share some tips on getting it up and running as soon as possible and without problems... like best ways to configure.
     
  9. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    Seems the PvP thing is a bit popular :p oh well i guess I'll put that on the top of my list :p... as for the notifications (yeah they seem to spam your screen when you kill a lot hehe) i'll put an off switch next build :p

    I'll try to set up a wiki on github for this :p in the meantime if you have any tips, info, or setup instructions you' d wish to share post them here or send me a message and ill post it up on the wiki :p
     
  10. DaGamesta

    DaGamesta Level 5

    Joined:
    Sep 3, 2011
    Messages:
    114
    Here's an idea: Set a timer after each notification, and don't send any notifications after that until that time expires. Also, in the meantime, add to an array (designated to that specific player) that'll keep track of kill information. Then, post the total number of points in a single notification, reset the array, restart the timer, and resume? Whaddya think?
     
  11. alerek

    alerek Level 6

    Joined:
    Jul 25, 2011
    Messages:
    125
    That wouldn't hurt my feelings either, just some form of throttle would be perfect :)

    Edited just for: ...Gah. Playing around with it a tiny bit more, and it's just awesome. Setting up multiple shops in a little tower with housing regions~ Please keep this up!!
     
  12. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    was actually thinking of this too... and if you look at the source code i already have those arrays set up just that the time that their updated aren't fixed because they update the Database everytime the point bank is accessed... if i put this onupdate it will revive tha lag problem i just fixed because accessing the DB actually takes up a lot of CPU usage if used continuously... though this could be fixed by storing everything in the arrays and not update the DB until the world saves.. however that would mean if the server crashed the information would be reset (plus i like the feature that you can actually edit other people's accounts directly from SQLite manager :p) also that would mean i would have to over haul the whole system cuz this isnt the actual set up..

    what's easiest is actually just putting an on/off switch to this that individual players can access by using /shards notify (or /points notify).. (plus idk how to use time stuff on C# (like i said im a noob) WAHAHAHAHA :p )
    --- Last Edited: Sep 15, 2011 1:58 PM ---
    glad u liked it :D
     
  13. Conner4892

    Conner4892 Level 2

    Joined:
    Aug 5, 2011
    Messages:
    27
    Is there a way you could perhaps change the command for checking your pouches balance? Because of the ability to change the name of shards, /shards pouch doesnt always make sense.. Again not necessary, just a suggestion! Maybe like a /balance or /pouch or something! Keep up the great work!
     
  14. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    yeah i did that... you can now use /points pouch and /points pay... will ad sumthing so u can use /<whatever u set it to be called> pouch

    I put it in the main post you know :p just saying :p
    --- Last Edited: Sep 15, 2011 2:38 PM ---
     
  15. DaGamesta

    DaGamesta Level 5

    Joined:
    Sep 3, 2011
    Messages:
    114
    Well, you could simply access the database at the end of that period of time, instead of every time the player kills a monster. I guess even that might cause problems, though. Personally, what I would do instead is write to a text file instead of a database, and see if that causes lag. Then, at the start and end of the server, I would empty this text file into the database. As for using time, learning from the OnUpdate command in TShock.cs was good enough for me.

    That beings said, you've already said it'd be too much of a hassle, so you can just ignore my thinking out loud about how it could have been done. XD
     
  16. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    havent read the source code eh :p like i said... i dont access the DB everytime sum1 kills a monster (not anymore as that causes lag) its only accessed when a player accesses his account by buying sumthing or checking his pouch also when dying :p


    not that i dont wanna improve my code.. just that its oo much of a hassle to includethis in 1.0.6 :p may be in a latter build :p like 1.1 :p
     
  17. DaGamesta

    DaGamesta Level 5

    Joined:
    Sep 3, 2011
    Messages:
    114
    I'll have to get around to it sometime, but I've been busy with my own stuff. So, I guess that's the lag fix you came up with? Still possible to lose info, but I guess that's better than lag. I'm still curious as to whether writing to a text file would be fast enough to keep from causing lag, but I don't have the time to run such tests right now. XD
     
  18. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    1.0.6 is out ^_^ will try to make the PvP reward plugin when Twitchy posts his C3 API sorry if it took too long :p i kinda banned myself from programming on weekdays :p hehe (though i'll fix any bug immediately if you found one ^_^ just post here)
     
  19. vharonftw

    vharonftw Testing until the end

    Joined:
    Aug 19, 2011
    Messages:
    326
    v 1.1.0 is out ^__^ (added command costs plugin to the series :D)
     
  20. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    can you elaborate a bit more on how to get the rankings working? i installed it but where in the database does it refer to the different level and their costs? I also want to grant commands to the user per level if that is possible?

    thanks!