Jump to content
  • 0

Login Show name of the 'Towns'


Drakkus

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Hello, i'm curios if does rAthena have this kind of features or system?

When you log-in the town will shown on your screen the name of the 'TOWN'

Video:

When you log into a map it will display a picture of the map name for about 3 seconds! Just another feature to eSperiaRO! I might release the source snipet + the script... IDK.

If anyone have this, much appreciated if you share it to me.

Thank you!

Link to comment
Share on other sites

16 answers to this question

Recommended Posts


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

-    script    ldfjhsdlf    -1,{
OnPCLoadMapEvent:
   while ( strcharinfo(3) != .town$[.@i] && .@i < 4 ) .@i++;
   if ( .@i == 4 || @town_map_cutin_loaded & 1 << .@i ) end;
   @town_map_cutin_loaded = @town_map_cutin_loaded | 1 << .@i;
   cutin .pic$[.@i], 4;
   sleep2 3000;
   cutin "", 255;
   end;
OnInit:
   setarray .town$, "prontera", "morocc", "geffen", "payon";
   setarray .pic$, "sign_01", "sign_02", "sign_03", "sign_04";
   while ( .@i < 4 ) {
       setmapflag .town$[.@i], mf_loadevent;
       .@i++;
   }
   end;
}

I believe using OnPCLoadMapEvent is more correct method ...

I know, but the person use some small 'source' to prevent poping -up when he use @go.
just do something like

pc_setreg( sd, add_str("@town_map_cutin_loaded"), pc_readreg( sd, add_str("@town_map_cutin_loaded") ) | 1 << town );

I guess ... ?

EDIT for below:

XD ... I never make my script works outside rathena xD

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

All that is is a basic mapbased event that shows a cutin picture

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

All that is is a basic mapbased event that shows a cutin picture

I know, but the person use some small 'source' to prevent poping -up when he use @go.

I think it only appear 1 at time.

I forgot Aeromas was the Owner of this Server.

He uses 'Source' and 'Scripts.

to able to trigger this event.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

actually...you can just do it in scripting way....like Pneuma Said...it is a cutin picture..so you have to create your own cutin picture and add it...

and for the script part...

with some trick way..you can enable this cutin to be shown ONLY when you login / relogin without need to worry keep shown the cutin when teleport / use @go etc...

[ Pastebin ] Show Cutin upon Login for 1 times

and please do let me know if this fit what you want..coz i will move it to script section as there is no source are required..except you insist want to make it using source mod

Edited by Emistry
Wrong Script
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

actually...you can just do it in scripting way....like Pneuma Said...it is a cutin picture..so you have to create your own cutin picture and add it...

and for the script part...

with some trick way..you can enable this cutin to be shown ONLY when you login / relogin without need to worry keep shown the cutin when teleport / use @go etc...

[ Pastebin ] Show Cutin upon Login for 1 times

and please do let me know if this fit what you want..coz i will move it to script section as there is no source are required..except you insist want to make it using source mod

Thanks for the respond, however there are lots of TOWNS to be <cutin> shows how exactly to do that?

Thanks again,!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

owh...thx for the remind..

after reviewing back the video...i then wonder it was the town name..not server name..damn

and i do it in a bad way.. =='' LOL

nvm..here is the fix....

[ Pastebin ] Show Town Cutin upon Login

if dont work please let me the error or etc..coz i cant try it due to i didnt have test client

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

Its has a fade effect(something like that) when it pops out.

cutins doesn't do that right ?.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

i think he just using several cutin images to show in each town...

and eventually result in a fading effect.....

i dont think there will be some code for you to get the fading effect in source...

if there is...then most probably will be client hex...

personally i dont think it is possible

correct me if i am wrong.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

i think he just using several cutin images to show in each town...

and eventually result in a fading effect.....

i dont think there will be some code for you to get the fading effect in source...

if there is...then most probably will be client hex...

personally i dont think it is possible

correct me if i am wrong.

Read the VIDEO's description.

He uses. Source and Scripts.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

The effect is realized by using more cutins for 1 town. like some official ones.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

^

oh now i get it.

Thank tr0n.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   0
  • Joined:  03/22/12
  • Last Seen:  

Looks cool.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

maybe a timer is used to make a fading effect like making a pictures with different opacity or transparency?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

i made mine like this:

- script Welcome -1,{
OnPCLoginEvent:
// Map that will show the Cutin Picture
setarray .@Map$,"poring_c02",
 "payon",
 "izlude",
 "hugel";
// Cutin File name for each maps.
setarray .@Pic$,"Welcome",
 "Welcome",
 "Welcome",
 "Welcome";
for( set .@i,0; .@i < getarraysize( .@Map$ ); set .@i,.@i + 1 )
if( strcharinfo(3) == .@Map$[.@i] && !@MapCutin ){
 set @MapCutin,1;
 cutin .@Pic$[.@i],4;
 sleep2 3000;
 cutin "",255;
}
end;
}

but nothing happened. This is the path of my bmp. exture\À¯ÀúÀÎÅÍÆäÀ̽º\illust\Welcome.bmp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

annie can u repost the ra code youve posted into a 3ceam code or ea codes?

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
Answer this question...

×   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...