Jump to content

Official rAthena Pastebin


Akkarin

Recommended Posts


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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~

  • Upvote 9
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

I can see Chinese letter correctly in view raw state, just switch browser  character encoding to UTF-8

 

M3bTRw.jpg

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

so cool o:! just excellent!!

for now, i have not found issues o:!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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 (/#|.|.@|$|$@|@)

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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 ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 problem

so I use back attachment ... attachment doesn't have this problem

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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. :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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?

3CRX5Ke.png

i see a 0 there DDD: shouldn't be a 7 DD:?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   217
  • Joined:  11/22/11
  • Last Seen:  

Cool

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

Awh, more competition :(

Least I my "run" button is still unique..

Edited by Nameless2you
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

 

Awh, more competition :(

Least I my "run" button is still unique..

For now :P

 

Not what I wanted to hear. :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...