Akkarin Posted January 6, 2014 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: April 15 Share Posted January 6, 2014 Evening all! In an effort to assist users with scripting their NPCs, and to help keep their paste's safe from prying eyes, i've setup a Pastebin within our forums. What's so different about our Pastebin, i hear you say? Well, not only do we have the Athena Scripting Language installed for syntax highlighting, we also have function linking to our wiki! For an example of this, see [paste=2899d724exg2]. This also brings a new bbcode to the board: [paste=2899d724exg2] I'm in the process of modifying it even further to incorporate NPC script debugging, which will be made available to the public soon. A Pastebin link has been added to our header. If you find any issues with this new system, please get in touch! Akkarin~ 9 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 7, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 7, 2014 (edited) wow !! makes me remember back someone else actually did similar stuffs back then http://www.eathena.ws/board/index.php?showtopic=156843 but that site went down though yeah its better to add the feature directly into the forum ok, as I expected, from my past experienced, 1. post#14 in eathena forum [paste=53zbub9qama] this paste can show chinese letter correctly but when click on the TEXT button to view raw some funny letters come out so is this compatible with international forum section ? EDITED: but the [Download] seems working fine so ... I think can leave this bug out 2. post#19 comment block aren't colored to green [paste=7ug16w5fda1] 3. can set [athena] script language as default ? 4. why can't I delete my own paste ? 5. Paste title: Type: Password: these 3 fields, password and paste title are optional issit possible to add another field Topic ID/URL: we can paste the url of the topic inside this field (optional) and besides [Text] [Download] <-- add this button ? Edited January 7, 2014 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 7, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 7, 2014 that's nice ! I think can use this pastebin from now on forget about 1. it just a minor issue lol 2 and 4 has been fixed 3. actually the [Type] there ... there's too many I'm thinking we actually just use some of them athena (default) C++ PHP JavaScript SQL Diff Text issit possible to only enable only these few, so there's no need to drag the long long drop-box ... 5. I dunno ... so that when I look my own pastebin from my user profile I can click on the topic link from this paste to see this script belongs to which topic ... this one is not important, just some minor suggestion ... or actually I can just paste the topic url into the [Title] straight away Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted January 7, 2014 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted January 7, 2014 I can see Chinese letter correctly in view raw state, just switch browser character encoding to UTF-8 2 Quote Link to comment Share on other sites More sharing options...
Kido Posted January 7, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 7, 2014 so cool o:! just excellent!! for now, i have not found issues o:!! Quote Link to comment Share on other sites More sharing options...
Lighta Posted January 7, 2014 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted January 7, 2014 Hey please add Perl, and Bash for me, and maybe Makefile (cause we're using those too) nb : On your exemple we can see that .@menu$ point to function menu, this is wrong on wiki, as in this case it's only a variable name. (regex should onle be preceded by ' '+|.|,|( (space, + , . (for string concatenation), coma or parenthese(as arg on function)) else it's prety much a variable or you could say is a variable if preceded by (/#|.|.@|$|$@|@) 2 Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted January 8, 2014 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted January 8, 2014 Looks promising, but there's no option to disable the the highlighting, I mean the <None> for simple text file, and also you can put a link to the pastebin on the IRC topic too. But please make the link short Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 8, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 8, 2014 ok ... now I hit this encoding issue already from this post http://rathena.org/board/topic/77088-certain-map-weapon-restriction/?p=239079 the original diff looks like this + while ( i <= l && k < MAX_RESTRICTED_LIST ) { + if ( w4[i] != ' ' && w4[i] != ' ' && w4[i] != ',' && w4[i] != '\0' ) { + temp[j++] = w4[i]; + } + else if ( w4[i-1] != ' ' && w4[i-1] != ' ' && w4[i-1] != ',' ) { + temp[j] = '\0';it has the '\0'but when upload to rathena pastebin, it becomes + if ( w4[i] != ' ' && w4[i] != ' ' && w4[i] != ',' && w4[i] != '' ) { + temp[j++] = w4[i]; + } + else if ( w4[i-1] != ' ' && w4[i-1] != ' ' && w4[i-1] != ',' ) { + temp[j] = '';the \0 DISAPPEAR !no need to say if I view it raw, some weird symbols again ... + if ( w4[i] != ' ' && w4[i] != ' ' && w4[i] != ',' && w4[i] != '�' ) { + temp[j++] = w4[i]; + } + else if ( w4[i-1] != ' ' && w4[i-1] != ' ' && w4[i-1] != ',' ) { + temp[j] = '�';if download from the pastebin, it also has the problemso I use back attachment ... attachment doesn't have this problem Quote Link to comment Share on other sites More sharing options...
Cydh Posted January 8, 2014 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted January 8, 2014 Hey please add Perl, and Bash for me, and maybe Makefile (cause we're using those too) nb : On your exemple we can see that .@menu$ point to function menu, this is wrong on wiki, as in this case it's only a variable name. (regex should onle be preceded by ' '+|.|,|( (space, + , . (for string concatenation), coma or parenthese(as arg on function)) else it's prety much a variable or you could say is a variable if preceded by (/#|.|.@|$|$@|@) u lie, u rarely use pastebin recently instead dropbox. Quote Link to comment Share on other sites More sharing options...
Kido Posted January 8, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted January 8, 2014 well seems a bit buggy D:! go Akkarin you can do it !! i don't know a thing about how to fix or something but if i can help in something throw me a pm D:! Lol i have come to love to use spoilers. Off-topic: dunno where to pust this, so i'll leave here for now o: why i can't see the real amount of +ups? i see a 0 there DDD: shouldn't be a 7 DD:? Quote Link to comment Share on other sites More sharing options...
goddameit Posted January 8, 2014 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted January 8, 2014 Cool Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted January 9, 2014 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted January 9, 2014 (edited) Awh, more competition Least I my "run" button is still unique.. Edited January 9, 2014 by Nameless2you Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted January 9, 2014 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted January 9, 2014 Awh, more competition Least I my "run" button is still unique.. For now Not what I wanted to hear. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.