Jump to content

Rendril

Member
  • Content Count

    612
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Rendril

  1. As Rhaegar said, it was just a random idea, but I'll humour you [quote name='Chewett' date='07 February 2010 - 11:56 PM' timestamp='1265579775' post='54015'] So how do you tax trades? unless you revamp the system, how would you make people pay these taxes? unless you work it from every X coins traded you have to pay some, it wont work since how does the system know every time you "trade"? [/quote] 2 ways: Either each transfer of silver has the tax percentage withdrawn, therefore the receiver gains a perentage less (as with age on creatures) Or you pay VAT (value added tax), in othe
  2. At the risk of going off-topic, what if there was a tax on silver transfer? Lets say 10% gets given to a charity/random newbie/treasury/worthy cause.
  3. There is no list of "creature owners", yet there are many ways to find the creatures you seek. I believe a near-complete catalogue of what items exist (and for some of them, the owners will still be the same) could be assembled from the lists we made for Udgard's quest (if he hasn't already done so) so a rough idea could be given of what items are avaiable. Not to mention, a player's items are visible when viewing their arena/doc page, this in fact means they can't lie about having an item. The forum has a market section for a reason, one could easily post that they are looking for a certa
  4. Grido, you're on the right track. You are only missing the persistent storage. Indiscriminantly count visitors: [code]//get vistor count from storage retrieve(@vv); //check to see if the counter has previously been set if(isset(@vv) && (@vv > 0)){ //increase counter by 1 ++@vv ; }else{ //initiliaze counter (initialize to 0 if you don't want to count your first view of the clickable) @vv = 1; } //save the counter to storage @store(@vv); //output the information you want echo "There have been " . @vv . " visitors here";[/code] Here's an example of
  5. Let me see if I understand this. You are hoarding the items, so that they do not get hoarded? Regardless of whether you actaully believe this logic, you keep directing what is complaint of [i]general[/i] item hoarding to your [i]specific[/i] case. I am most certain that this reasoning does not apply to the other hoarders.
  6. Row 0 column 0 (or row 1 column 1, depending where you start counting)
  7. See if another browser has the problem as well. In the extreme case of this persisting, you could block the image.
  8. I was under the impression that unless specific to the thread/section, the forum is not for roleplay.
  9. Unholy pope has been sold (well, more like given away ) Offers have been updated.
  10. Master of Puppets(Joker) age 320 - current bid: 7 silver Pimped Grasan age 35 - current bid: 4 silver Pimped Grasan age 35 - current bid: 5 silver [s]Unholy Pope age 203[/s] sold Ages as of Year 5, Day 28 Highest acceptable offers get the trade. PM/post your offers.
  11. Thanks for pointing out the change. When I tested it the function was case sensitive. Attritbutes are not required, I added the id only because the particular example I used needed a reference.
  12. [b]null[/b] mds_player_avatar(string $name, string $attributes); Will echo the player's avatar image if the name is valid, otherwise it will give a no avatar message. Player name is not case sensitive. The image is echoed directly by the function with only a null value returned. The function can be called a maximum of 5 times in the script. Attributes are not required, but if used will be given directly to the image in html. Example: HTML [code] <script type="text/javascript"> function toggle(){ var img = document.getElementById("avatar"); img.style.display = img.s
  13. date('z') returns the numeric day of the year (starting from 0) I don't know of a php function that can show a server's age, but you can calculate MD's year: date("Y")-2005;
  14. Awiiya and I discussed this, for those interested in the code here it is: [code] <script type="text/javascript"> window.onload = function(){ document.getElementById("loader").style.display="none"; document.getElementById("content").style.display="block"; } </script> <div id="loader" style="text-align:center"> Loading...<br /> <img src="http://en9.tribalwars.net/graphic/throbber.gif" /> </div> <div id="content" style="display:none"> Your content etc <iframe src="etc etc">Your browser does not suppor
  15. To clarify, do you mean a preloader as in it loads data beforehand or preloader as in it looks like it is doing something while the user waits for everything to load, or both?
  16. Srbija igra u mom gradu, stadijum je 4km od kuce =D

  17. I like the idea of chosing who to allow to edit your papers. As requesting of someone to edit them for you, here you give them explicit access, thereby preventing someone from editing/removing your papers without consent. Maybe they could get your papers listed in addition to theirs under the papers window, thus they get the same interface but it will show only for you and without abuse.
  18. I was able to save the images without any difficulty. I realise now why the image must get used quickly. Thinking about its use, I see that it will need to be written as an image before the new icon function call, so instead can we be able to send more parameters to the image? It would be very useful to have id and class. So a function call like this mds_creature_icon(id, image_attributes); For example:[code] mds_creature_icon(12345, "id='image1' class='icon'");[/code]
  19. Yes, in fact it has been the site of many chases during HC.
  20. The same applies to many of my scripts, and clickables like the book of ancients, oak stories, hanging of mur etc. Having the option of making a clickable permanent would defeat the purpose of the auto-hide, who can justify their script being permanant without it having to be judged by Mur? I would rather have it auto-hide if the script's last use was 14 days ago, which in effect means nobody accessed in that time, of course "last use" needs to be more than merely viewing the clickable. I think allowing a cron to be implemented for each script would cause too much of a load
  21. How is this different to a normal auction? Those that can put forward the most money will of course win in the auction. It is not a flaw of the auction that you cannot afford bidding. I think it is a great initiative and should be savoured. That which possibly makes it seem unfair is the high prices the opening bids started at, this was of course a strategic move to eliminate opposition early on, but I feel it was too early too quickly. The minimum starting bid is 1 silver, I would have liked to see it start from that. I know this was a trial run, but I feel 3 items is too little, and the
  22. Rather than returning the image path, it could return the unique hash for the image and the coder can append it to make an image path. I think this would make the function more versatile. Script execution time is limited to 5 seconds (and memory use is limited too), even a badly coded script will not be able to run indefinitely. Perhaps limit the number of creature icons a script can gather in one session, like with avatars. 20 should be sufficient (1kb ?), pagination can be used when the coder needs more. If the concern is the memory waste from a bad script, consider the additional load
  23. [b]null[/b] mds_creature_icon(int|string $id, string $attributes); Will echo an image icon of the creature matching the ID if it is valid otherwise it will give a missing creature message. The image is echoed directly by the function, there is only a null value returned. Since it is a direct echo rather than a string, your HTML code will need ot be wraped around it. The paramter sent is the creature ID, not the CTC. It can be found under the creature in the creature menu. Example: HTML[code] <form method="post" action=""> Enter CTC to see the creature's day of birth<br /
  24. [quote name='phantasm' date='05 January 2010 - 08:07 PM' timestamp='1262714844' post='51917'] the only song types you can put into a embed file are mp3 files only [/quote] It depends on the browser and plugin support. I think midi, wav and mp3 are the default supported are.
  25. You are trying to play a YouTube (flv file), this is why I asked what type of file it was. YouTube has a small protection on their .flv's, so you need to add some more parameters. Change the width and height if you want the player to visible. [code] <embed width="0" height="0" allowscriptaccess="always" type="application/x-shockwave-flash" src="http://www.youtube.com/v/UH4HDn4v24I&amp;feature=player_embedded&amp;fs=1&amp;autoplay=1"></embed> [/code] On a side note, YouTube provides the code in the "Embed" box to the right of the video, I haven't tested it but
×
×
  • Create New...