Jump to content
  • 0

if any player enter in home town..rainbow appears


JassMax

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

i want if any player login and find themselves in home town there would be rainbow appear (specialeffect 410)

rainbow should appear in particular spot..or it would be work..as well if there is not particular spot...

Thanks in advance..

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


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


prontera,155,181,5 script Sample #rainbow 111,{

end;

OnPCLoadMapEvent:

if( strcharinfo(3) == .map$ )

specialeffect EF_RAINBOW;

end;

OnInit:

set .map$,strnpcinfo(4);

setmapflag .map$,mf_loadevent;

end;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

OnPCLogInEvent:

 

if if( strcharinfo(3) == "<map_name>" ) {

specialeffect 410;

end;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  


hmm not working..? need to correct script ?

thanks for reply..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

prontera,155,181,5	script	Sample	#rainbow	111,{
end;

OnPCLoadMapEvent:
if( strcharinfo(3) == .map$ )
	specialeffect EF_RAINBOW;
end;

OnInit:
set .map$,strnpcinfo(4);
setmapflag .map$,mf_loadevent;
end;
}

Cool working..but i dont want to add npc...

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:  

you need that "invisible npc" ... otherwise i have no idea where the rainbow will be shown ... 

to display any effects from trunk/doc/effect_list.txt , you need to attach the script to a npc or player...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

you need that "invisible npc" ... otherwise i have no idea where the rainbow will be shown ... 

to display any effects from trunk/doc/effect_list.txt , you need to attach the script to a npc or player...

Alright this will work too.. thanks a lot Emistry  /thx

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