Custom PrintToPlayer/PrintToServer Stuff

Joe
Posts: 33
Joined: Sun Jan 20, 2013 4:18 pm

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by Joe » Sun Feb 15, 2015 10:53 am

I really like this.

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by tagban » Mon Feb 16, 2015 4:58 pm

Thanks Joe! I have a lot of fun with it, and use it to announce new users logging into our small server. :)

Joe
Posts: 33
Joined: Sun Jan 20, 2013 4:18 pm

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by Joe » Mon Feb 16, 2015 8:53 pm

Has anyone submitted this to the repository? I think this would be a great addition to the game server.

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by tagban » Wed Feb 25, 2015 9:41 pm

I was told that it doesn't follow retail and would be rejected for that reason.

sonicblazer
Posts: 4
Joined: Thu Jul 30, 2015 7:53 am

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by sonicblazer » Wed Aug 26, 2015 4:31 am

Hey guys, is this script still working?

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by tagban » Wed Aug 26, 2015 6:10 am

Yeppers works great

bluesolarflare
Posts: 129
Joined: Wed May 27, 2015 4:23 pm

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by bluesolarflare » Thu Aug 27, 2015 9:44 pm

I've noticed that if you are trying to create custom dialogs, it will only allow you to use one specific color per line. If you use a color more than once on a multi-line message it crashes the client.

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by tagban » Thu Aug 27, 2015 11:38 pm

Correct.

Avatarati
Posts: 53
Joined: Mon Jun 30, 2014 2:51 pm

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by Avatarati » Sun Jan 03, 2016 12:25 pm

Reviving this old topic...

I cannot get this to work for some reason:

Code: Select all

player:PrintToServer(string.format("The character %s has logged in...", player:getName()), 0x1C);
Tried simplifying the message to just get something to pop up when a user logs in. This is how I have it inserted into the onGameIn function from the player.lua file:

Code: Select all

function onGameIn(player, firstlogin, zoning)


    if (not zoning) then -- Things checked ONLY during logon go here.

		player:PrintToPlayer("Test");
		
        if (firstlogin) then
            CharCreate(player);
        end
				
    end
Tried inserting it into other functions as well...can never get the message to display upon a login. What am I doing wrong?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Custom PrintToPlayer/PrintToServer Stuff

Post by kjLotus » Sun Jan 03, 2016 2:42 pm

did you make the lua_baseentity changes and recompile?

Post Reply