Abdeltif's scripts |
![]() ![]() « Citoyen » 1383487980000
| 0 | ||
Here i'l store my minor scripts that I don't deserve a whole thread about them. My first minigame : Be smart ! : The minigame is to reach the cheese using the canons But be aware of the falling boxes ! Updated Be Smart • The number of lives you have is shown in your score, when you die you lose a life, when you win you win some. • When the life counter reachs 0, you will be eliminated. • You automaticly get to 350, 550 at the begining of the round (behind the cannon spawn) -------------------------------------------------------------------------------------------------------- Menu Pad Menu Pad is simply some commands ordered in a text area You don't need to !thing , you just click some words and write some options in the appearing popups and it will serve you as you wish.! Discover this your self . MADE BY ABDELTIF AND HOPHIPMICE . -------------------------------------------------------------------------------------------------------- I was such a noob *-* UTILITIES Here you'll find some useful set of functions (custom APIs) that can help you in specific cases. Note : * means that some functions depend on other custom ones, meaning you need the whole script for 1 function to work properly. Abd's String Utils - Working on more functions Description : Most description is commented in the script itself but if you didn't get the hang of it, click on the spoilers. Mpattern(arg1, arg2) What this function basicly does, is it gets all the captures from a string that follow a given set of patterns (matches) Because you have to define the number of matches when using string.match and because the set "().()" only gets you the location of the match, I made this. arg1 : The string you're working with arg2 : The set of patterns + the capture, note : You can only put 1 capture "()" but it's intentional and will be "upgraded" in the future. Example : local matches = { Mpattern( "Errors ruin my day the most.", '(%a+)') } print(matches[1]) print(matches[3]) It will be "upgraded" soon ;) str_tbl_check(tbl, str) This function is VERY SPECIFIC, 90% of the time you will not need it , but in case you do :> here is what it does : You got a table {"o", "7", "a", "m", "a","z",7,"e"} and a string "amaze" The numbers in this table are ignored, either they are in a string or not. the function checks for the word "amaze" in the table, in the same order (1,2,3,4,5) or (2,3,4,5,6,7), if it finds it without any letters in bettween the word, it will return true, or else, it will return false so str_tbl_check({"o", "7", "a", "m", "a","z",7,"e"}, "amaze") will return true. but str_tbl_check({"o", "7", "a", "m", "a","z","lol","e"}, "amaze") will return false. it's very specific and it's going to be updated too . Abd's math utils*- Working on more functions Description : This is most self explanatory, but just incase AGAIN you don't understand these gray lovely comments I'll explain them (;-;), click on the spoilers. Math.sum(...) It takes infinite number of arguments and add them Mosly useful when you use it with table.unpack(tbl) example : local tbl = {1,5,8,3,1,7,3,8,2,4,6,8,2,5,1,6,4,86,32,564,21,2,1,56,164} sum = math.sum(table.unpack(tbl)) print(sum) -- prints the sum math.sumup(...) Ok I agree with you if you don't understand this one. let's say we got these arguments : 1 , 2 , 3 , 4 , 5 what this function returns is : 1 , 1+2 , 1+2+3 , 1+2+3+4 , 1+2+3+4+5 another example :/ local tbl = {1,2,3,4} local results = {math.sumup(table.unpack(tbl))} print(table.concat(tbl, " ,")) -- prints 1 , 3 , 6 , 10 For a reverse result, use a for loop and inverse all the results, and resort the table. math.upwards(...) Checks if the given arguments are , in an upward sequence ? example math.upwards(1,2,3,4,5,6,7,8,9,10) -- true math.upwards(1,2,4,5,6,7,8,9,10) -- false math.downwards does the opposite thing. Now to the main one Math.addto(end, start) Example : end = 10, start = 5 : it will do this : 5 + 6 + 7 + 8 + 9 + 10 end = 10, start = nil : It will do this : 1 + 2 + 3 + 4 + ... + 10 for a reverse result do this : -(math.addto(end, start)) I DID IT !!!!!!!!!!! Abdeltif-Creator Bethdacat-Module Manager Pawgold-Helper Dernière modification le 1451392500000 |
![]() ![]() « Citoyen » 1383489360000
| 0 | ||
Can you describe this minigame? |
![]() ![]() « Citoyen » 1383490680000
| 0 | ||
Fluffypuffeh a dit : Done [E] I edited the script a bit . |
![]() ![]() « Citoyen » 1383557100000
| 0 | ||
[E] Added a timing system for "Be smart" minigame. So at first it says : Get ready ! When it starts it says : Go go go ! [E] Added some pop ups . |
![]() ![]() « Citoyen » 1385742180000
| 0 | ||
New script : a dit : Do !p word for inserting a word in the room // like chat command but with textAreas To remove the chat do !rpop |
![]() ![]() « Censeur » 1385743080000
| 0 | ||
Why is the last argument of ui.addTextArea boolean? It's supposed to be float. e/ Also there is no variable x nor y? |
![]() ![]() « Citoyen » 1385747160000
| 0 | ||
1st . nil x and nil y automaticly takes it as 50 ( 50 x and 50 y ) seconde , for that true : ![]() ![]() ![]() -- Thoose are for lua members only ![]() -- The new things in popUp and textArea |
![]() ![]() « Censeur » 1385748720000
| 0 | ||
Giving x and y strings nil value automatically setst he textarea to 50, so yeah. Plus it's the first time I hear about this fixedpos boolean. (don't even know what it does :v) |
![]() ![]() « Citoyen » 1385748960000
| 0 | ||
Safwanrockz a dit : Looks like you didin't check the news :3 Have fun saf! ++ It makes the pop moves with you if the map is long or hight |
![]() ![]() « Censeur » 1385749080000
| 0 | ||
Ohh, useful for minigames that need long maps. e/ I only use the documentation on CFM and it wasn't updated xD |
![]() ![]() « Citoyen » 1385749320000
| 0 | ||
Safwanrockz a dit : There is one there ? ._. Also , I updated it a bit for no mess I added !t to set a pop up under that one so mice communicate : a dit : . |
![]() ![]() « Citoyen » 1385760120000
| 0 | ||
Pro Scripts ! :D |
![]() ![]() « Citoyen » 1385845860000
| 0 | ||
Pro Scripts ! _* |
![]() ![]() « Citoyen » 1385847780000
| 0 | ||
thanks ! :D |
![]() ![]() « Citoyen » 1385849040000
| 0 | ||
1 Abdeltif a dit : TY |
![]() ![]() « Citoyen » 1385883900000
| 0 | ||
Updated the scripts , a dit : |
![]() ![]() « Citoyen » 1386259560000
| 0 | ||
Hehehe , look who got a new script to share today ! :3 This : a dit : Do !part number(between 0 and 37) to make a particle appear ! for example : !part 5 to throw a heart !part 6 to throw a bubble En'joy |
![]() ![]() « Citoyen » 1386357120000
| 0 | ||
Update : a dit : . |
![]() ![]() « Censeur » 1386360660000
| 0 | ||
You know you can just use the "for" statement instead of this excessively long script. :x |
![]() ![]() « Citoyen » 1386422640000
| 0 | ||
Safwanrockz a dit : Yus but diffirecnt places and deacted ids , impossible Saving A script : a dit : . Edit : It is possible to use a for loop for it :) Dernière modification le 1419355620000 |