Author Topic: Gimp sayings...  (Read 6459 times)

0 Members and 1 Guest are viewing this topic.

Offline Griff

  • Newbie
  • *
  • Posts: 40
  • Karma: 3
Gimp sayings...
« on: March 11, 2006, 09:20:28 AM »
ok, i had a look at mani and that lets you add your own gimp sayings... i found the part about gimped users in the ulx file, and its just peices of code etc, could it be easyer for ulx to do the same as mani and have a totaly different file for the gimped sayings?

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Gimp sayings...
« Reply #1 on: March 11, 2006, 11:08:45 AM »
Yeah, you could open ulx_fun.lua and find the part that says

Code: [Select]
table.insert( gimp_say, "" )
and add after that

Code: [Select]
_OpenScript("ulx/ulx_gimpsays.lua")

Copy a lua file to the ULX folder and rename it to gimpsays with the extension .lua
Open it, and put this in there, replacing everything else:
Code: [Select]
table.insert( gimp_say, "INSERT THING TO SAY HERE" )
and put one of those things on every line for every new thing you want to say, EX:

Code: [Select]
table.insert( gimp_say, "weeee" )
table.insert( gimp_say, "circles" )
table.insert( gimp_say, "yay" )
table.insert( gimp_say, "helooo im nigel thornberreeey" )


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gimp sayings...
« Reply #2 on: March 11, 2006, 01:27:15 PM »
It's not necessary to keep this in:
Code: [Select]
table.insert( gimp_say, "" )
Experiencing God's grace one day at a time.

Offline Griff

  • Newbie
  • *
  • Posts: 40
  • Karma: 3
Re: Gimp sayings...
« Reply #3 on: June 09, 2006, 11:53:28 AM »
Code: [Select]
table.insert( gimp_say, "Liek Oh, mai, GAWD!!! taht is soooo seks3!" )
table.insert( gimp_say, "ohh, ahhh, oohhh, ahhhhhh" )
table.insert( gimp_say, "I like to be a mingebag" )
table.insert( gimp_say, "" )

function cc_ulxGimp( userid, args, argv, argc )
local target = getUser( userid, argv[ 1 ] )
if target == nil then
return
end

ok, so all those tableinserts i can wipe out, and add in that little line. i.e.

Code: [Select]

_OpenScript("ulx/ulx_gimpsays.lua")

function cc_ulxGimp( userid, args, argv, argc )
local target = getUser( userid, argv[ 1 ] )
if target == nil then
return
end


and then in the gimpsay lua file just have
Code: [Select]
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
etc...

is this right, or can you correct me?

Edit: ok, i have done this and it works perfectly, thansk so much ULX once again! ur much better than mani, you actualy let users see the code :)
« Last Edit: June 09, 2006, 12:37:28 PM by Griff »