Everything posted by Chew
-
Forms!
Forms comprise of two parts. The actual form, and the processing Code Here is my form <form method="post" action=""> Please type something in here: <input type=text name="box" size="25" maxlength="50"> <br /> Do you use GGG? <input type="radio" name="radio" value="use"> yes <input type="radio" name="radio" value="dont use"> no <br /> Pick some of these, you choose! <input type="checkbox" name="checkbox_1" value="1"> one <input type="checkbox" name="checkbox_2" value="2"> two <input type="checkbox" name="checkbox_3" value="3"> three <br /> Are you a... <select name="listbox"> <option value="Fighter">Fighter</option> <option value="Roleplayer">Roleplayer</option> <option value="Fighter and roleplayer">Fighter and roleplayer</option> </select> <input type="submit" value="Submit!"/> </form> Here are some numerous examples of the differnt objects you can have on a form. points to note. 1. the "name" value will be sent to the MDscript as @input['name'] Where name is your name of your object 2. You can only select one choice with radio buttons 3. You can select more than one with a check box And here is my Mdscript that "handles" the form if(isset(@input['box'])) { echo "you typed in " . @input['box'] . "<br />"; } if(isset(@input['radio'])) { echo "You said you " . @input['radio'] . " GGG <br />"; } if(isset(@input['checkbox_1'])) { echo "You selected Check box 1! <br />"; } if(isset(@input['checkbox_2'])) { echo "You selected Check box 2! <br />"; } if(isset(@input['checkbox_3'])) { echo "You selected Check box 3! <br />"; } if(isset(@input['listbox'])) { echo "You said you are a " . @input['listbox'] . " <br />"; } echo @content['0']; Here i have used the php function isset() to see if the variable is set. if(isset(@input['textbox'])) { ... } All this means is, Check if @input['textbox'] is set (someone typed something in) and if it is, do what is in the brackets. This will prevent all this code from being done when the user first loads up the page Instead of just echoing the values you could make it more intresting by doing something with the values, like storeing the value as a variable in your quest. But! be careful, Just because someone can enter something, doesnt mean it will be something you nesscariy want to be entered. For example if you need a number to be entered, someone could enter a letter, and if your script doesnt check, it might break your script! NOTE: This is PHP and i have no access to MDscript, So, if anyone wants to help me, please test the script.
-
A Delete Button
You need some way of displaying all Keys you have assigned and being able to remove all keys you assigned from everyone. That would solve the Quest cleanup problem
-
Creature Description Contest
Make comments on the creatures that havent got a description, Like most dracorns have no description
-
A Delete Button
[quote name='Rendril' date='01 November 2009 - 03:28 PM' timestamp='1257089324' post='46295'] To remove a key use mds_take_rpqc_keys("key name") He won't have access to your script. [/quote] so this will remove what key? all keys of that name? from everyone?
-
Win One Silver Contest!
what about now? if you cant view it use this link for the moment http://magicduel.invisionzone.com/gallery_uploads/1255871650/gallery_3245_79_3602.jpg
-
Win One Silver Contest!
Image Now Approved, So now people can actually see it
-
Thank You
Well done whoever thought of this idea, Its a good one. To Mur: You will never know how much we all appreciate the game and respect you.
-
Happy Birthday!
Happy birthday to the both of you!
-
Vacation
[quote name='dst' date='31 October 2009 - 04:20 PM' timestamp='1257006034' post='46213'] Starting from tonight 23:40 server time I am officially on vacation. That will mean sporadic response to PMs, bitchy remarks (not that I don't do that even when I am not in vacation) and almost no help coming from my side. If you desperately need something talk to No one. I will probably log in every day but just to get my days. If I find a decent quest that I decide is good enough to waste my time I will try it. Wish me lots of sun and and a nice tan So...have fun and behave [/quote] At the moment im trying to think of a sarcastic/rude/funny comment tying in Halloween, Witches and dst going away... Oh well, The forum will run around and i might even get some work to do people side. Have fun!
-
Toolbar Bug
Closed for inanity If mur wants to fix it, all the info is here.
-
Toolbar Bug
Rj, you are being unclear, what toolbar are you refering to now? If there is nothing apart from a small graphical problem i am closing this topic.
-
Toolbar Bug
Comeon Rj, its a minor display glitch that doesnt even warrent a post...
-
Toolbar Bug
its a minor display issue that has been around for ages... with the amount of bugs in the game do you think that this one needs to be fixed?
-
Creatures & Health & Logoff Problem...?
Suggestions how to avoid: Log out in areas with little or no people Log out in a Sanctuary (with 6 or less heads during the head contest) have a "dummy" ritual up, including just one creature (with more than 301 vitality) so that when you get attacked you only lose one creature, Have a couple of these dummy rits up
-
Hello Im New
[quote name='teufelhunden' date='31 October 2009 - 08:39 AM' timestamp='1256978387' post='46168'] I think you were not bet and did it on your own....... [/quote] Correct! first one to guess it right lol
-
Restrict Access To A Quest By Id
[quote name='Grido' date='30 October 2009 - 07:15 PM' timestamp='1256930131' post='46152'] 3 is ''Default Player'' (which i think has been around a while) and 4 is ''Mur..'' (which is more recent) Yes, i tend to pay attention to random things like this [/quote] ah, dont spoil it, i love the description of Mur..
-
I Had A Horrible Dream
good question. i would say leave the key there, but im not sure about the garbage collection thing. lets see what Ren thinks
-
Php Abuse
[quote name='Fenrir Greycloth' date='30 October 2009 - 06:07 AM' timestamp='1256882872' post='46113'] I would like to see a way to limit what we can do(won't hear that often) so that I(and others) can sleep soundly at night... [/quote] Thats already in place, Its not php its MDScript, Its run through a parser that checks the functions and it will only allow the ones MDscript has been programmed to understand. The language is Php, but there is a big Chunk of it missing You cant access variables from Md since you can only use pre-allowed ones, so no session vars or anything, and only certain functions have been allowed, So no database operations for us. Its 99% fullproof, And i make this point. Anyone who can access it will not want to drop the entire whatever table. They are smart enough not to do that. Magicduel has survived sql injections and the users responsible were not banned because they then helped Mur to fix them. There has only been once incident in the entire history of MD where something was done maliciously and that was to the previous forum. I think there is no reason to worry about the MDScript
-
Missing Game Documents
Very offtopic: But can we have a poll as you did say anything can be voted on Ontopic: I will ban ya all for being offtopic, So, Mur, you are on your last warning, as am i actually
-
Free Creds
The Error seems to have been fixed now Currently Memory is away from Magicduel Due to RL Any more Links please post them here or email me (chewett (at) magicduel.com) and i shall send them to Mur
-
Restrict Access To A Quest By Id
[quote name='I am Bored' date='29 October 2009 - 07:25 PM' timestamp='1256844306' post='46086'] oh and just so you know, there is only 1 id that is under 100, and that is king manu, the next is muratus del mur...... or wait.... did live help survive? if live help did then it has id 2, but there is no account with an id of 62 [/quote] 4 accounts under id 100, you might want to check them out, they are intresting
-
Clickable Objects Features
[quote name='Muratus del Mur' date='28 October 2009 - 11:11 AM' timestamp='1256728278' post='45941'] Offtopic (to be moved?)I am open to suggestions regarding the distribution of the ability to edit clickables. Currently only 16 ppl can edit items, thats too low. What should be increased?wp price - means more smart pplactive days - more loyal, active and constant pplconsumed wp - ppl with a strong bgOn what other base should this ability be given, considering it can change the realm a lot and i plan much more for it [/quote] Surely anyone who can prove their worth with such items should be able to code for them? Having someone like Ren who can validate someones skill, would be useful for people like me (yes big headed) Who dont have time to quest and do other things for the game. Or perhaps give it Quest doc style, Free for anyone who asks but only if they make a really good use of it. It seems unfair to not give people who could use it the ability just because they dont want to gain 7 wishpoints [quote name='Muratus del Mur' date='28 October 2009 - 11:55 PM' timestamp='1256774143' post='46016'] (To be moved in a poll maybe if you think its important)Should alt check be availabe in script?Something if(is_alt('id or playername of main')){...Alt checks could have a few points of accuracy, like no way, might be, defenetly ...Consider someone could collect data with it and display a Alt list for public review or for his own. Alts as you know are allowed, but using them to boos your main is not (meaning you can use them though but within decent limits and only for the purpose of playing an other character/personality)I am sure this is useful for preveting quest cheating but its also a serious threat to privacy. [/quote] Alt check eh? Bring on the data scraping. It would be much too easy to pull data from this, By using a script, it could be done automatically, And if its php... there is no end to the data that can be pulled from the system Assigning keys to each player, will mean they will at least have to complete it twice, Perhaps also by generating a code for people to give you, so you can check and talk with them and see if they are an alt. Just providing a function would be a little invasive, and also considering that many players have "leant" their account to others for active days (*cough* grido), and it would consequently show as an alt
-
Time: Check If Person Took Too Long
[quote name='Burns' date='29 October 2009 - 04:03 PM' timestamp='1256832209' post='46069'] uhmm... i know i'm not supposed to post here, but you have a little mistake there, you have @vh once where it should be @vd [at least i think so O_o] [/quote] Thanks Burns, i changed that [quote name='Rendril' date='29 October 2009 - 04:16 PM' timestamp='1256833008' post='46070'] Nice code Chewett, but I think you mean @vh [b]+[/b] 10 * 60 Otherwise it would be checked in the next 6000 years or so [/quote] and perhaps i might want it to be checked within the next 6000 years changed also, thanks Did anyone test it? since i cant actually check as i have no access...
-
Missing Game Documents
Something i pointed out when the game was in initial alpha (limited testers) and i was told they would be put up "soon" but yes i agree, really we should have them by now
-
Time: Check If Person Took Too Long
[code]// first object @vd = time(); // gets time in seconds and sets it to a variable store(@vd); // stores the variable into whever ------------- // object two retrieve(@vd); // Gets the time we stored in object one if((@vd + 10 * 60) < time() ){ // first it gets the first time, and adds 10 * 60 onto it (which is 10 minutes) then // compares it with current time. If current time is bigger than the sum you calculated // then it will be over the 10 minutes and it displays the apropiate text echo "sorry you are too slow"; }else{ echo "you win the game!"; }[/code] time() will retrive the current time (for more techincal people its actually a unix timestamp) Basicly in seconds from a certain event. This is not easily readable by people as its returned in seconds but for this example its great. NOTE: i dont have mdscript, nor will i ever since i dont quest, so this is all vague guessings from documentation and my knowledge of php. I know php, so techincally it should work... Any questions or if someone wants to test it, Go ahead This is just an example, You will need to make sure that @vd is set already from the first object but i left that out as it clouds the example