News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: *RELEASE* - Bully LUA Script Sources (just a few)  (Read 74173 times)

0 Members and 1 Guest are viewing this topic.

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #60 on: December 31, 2012, 08:24:17 AM »
I experimented with faction attitudes and wrote down all the IDs, which are basically the same order as in pedpop.dat.

0 - Prefects
1 - Nerds
2 - Jocks
3 - Dropouts/Townies
4 - Greasers
5 - Preppies
6 - Non-Clique Students
7 - Cops
8 - Teachers
9 - Townspeople
10 - Shopkeepers
11 - Bullies
12 - ? (Crashes upon load)
13 - Player

An example of changing the attitude for the nerds to hate the player:
Code: [Select]
PedSetTypeToTypeAttitude(1, 13, 0)
SetFactionRespect(1, 0)
The first line sets the nerds to attack the player on sight, and the second line sets their 'respect percentage' in the menu to 0%.

EDIT: In another faction-related subject, you can change the faction of a script-created ped using: 
Code: [Select]
PedSetFaction(l_1_7, 1)This example in particular when added onto the debug bodyguard  script madman has on the first page will turn whoever you spawned as your bodyguard into a nerd.
« Last Edit: December 31, 2012, 09:59:59 AM by JmTsHaW »

Offline xXxNarumi

  • Apprehended (Captured)
  • Hero Member
  • ****
  • Posts: 2,641
  • Gender: Male
  • xNarumi wont be missed.
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #61 on: December 31, 2012, 08:30:43 AM »
12 doesnt seem to crash on me
I dont think any1 even spawns on 12 and there is 1 removed faction from bully

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #62 on: December 31, 2012, 09:59:02 AM »
How do I make it lock doors?
I want the script to lock all doors outside the school like stores and such, how does one do this?

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #63 on: December 31, 2012, 10:06:00 AM »
There is a code for locking doors, but usually those are in area scripts, which are not fully decompiled, thus making overriding them impossible until they're fully decompiled.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #64 on: December 31, 2012, 10:37:47 AM »
Okay :/
Also, how do I rotate vehicles and peds?
They seem to spawn facing one way

Offline MikerBarba

  • Cold as winter ice, this is your paradise?
  • Sr. Member
  • ***
  • Posts: 718
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #65 on: December 31, 2012, 10:58:37 AM »
Damn! this is sooo cool!, i'll be starting Lua by tomorrow :3

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #66 on: December 31, 2012, 11:26:02 AM »
Okay :/
Also, how do I rotate vehicles and peds?
They seem to spawn facing one way

I haven't checked for vehicles, but peds is done through PedFaceXYZ.

deadpoolXYZ

  • Guest
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #67 on: December 31, 2012, 11:33:35 AM »
Thanks Red the music works now.

Is there a way to make a bodyguard to not disappear if he/she gets far enough from you?
In the missions your bodyguard never disappears.

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #68 on: December 31, 2012, 12:04:31 PM »
Hiring a bodyguard through lua will make that bodyguard never disappear.

Offline JmTsHaW

  • Jr. Member
  • **
  • Posts: 79
  • Gender: Male
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #69 on: December 31, 2012, 12:56:21 PM »
Any way to get the bodyguard to spawn on a bike?

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #70 on: December 31, 2012, 01:25:36 PM »
Yeah, but I don't remember the exact code.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #71 on: December 31, 2012, 03:47:45 PM »
How do I rotate the peds then? :P

Also, log in to xfire man :D
« Last Edit: December 31, 2012, 03:51:36 PM by SWEGTA »

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #72 on: December 31, 2012, 05:37:06 PM »
Sry I have not been around on xfire to be on hand for any help but I have been taking a very much needed break.

This is just so that anyone on my list doesn't wonder where I went all of a sudden....I will resume being on xfire regularly probably in a few days.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #73 on: December 31, 2012, 07:43:17 PM »
How do you close the school gates? Both the main gate and the parking lot that is?

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: *RELEASE* - Bully LUA Script Sources (just a few)
« Reply #74 on: January 02, 2013, 01:24:33 PM »
I can give you code that will not only allow you to close them or what not...but open and close them with a button press  :biggrin: .

I can also do the same for ANY door in the game at any time.