Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Grant Money on Death
Grant Money on Death [message #279693] Fri, 17 August 2007 19:19 Go to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
What scripts do i sue so when i player dies they are given money

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #279695 is a reply to message #279693] Fri, 17 August 2007 19:22 Go to previous messageGo to next message
Canadacdn is currently offline  Canadacdn
Messages: 1830
Registered: September 2005
Location: Temple of Nod
Karma: 0
General (1 Star)
PLECOS MASTER
You could make a powerup that grants you some money, and make your character drop it when it dies. That way, you will pick up the money powerup you drop when you die.
Re: Grant Money on Death [message #279699 is a reply to message #279693] Fri, 17 August 2007 19:41 Go to previous messageGo to next message
Cpo64 is currently offline  Cpo64
Messages: 1246
Registered: February 2003
Location: Powell River, B.C. Canada
Karma: 0
General (1 Star)
Money to the player who died? or the player who killed him?

-->
Re: Grant Money on Death [message #279703 is a reply to message #279693] Fri, 17 August 2007 19:53 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
money to the player that died

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #279708 is a reply to message #279693] Fri, 17 August 2007 20:15 Go to previous messageGo to next message
Cpo64 is currently offline  Cpo64
Messages: 1246
Registered: February 2003
Location: Powell River, B.C. Canada
Karma: 0
General (1 Star)
you would want to use the "send custom on death" script, and i'm sure there is a "grant money on custom" script. not sure how you would make them work together tho ^_^

-->
Re: Grant Money on Death [message #279710 is a reply to message #279693] Fri, 17 August 2007 20:22 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
thats y i asked -_-

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #279786 is a reply to message #279710] Sat, 18 August 2007 09:36 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
"JFW_Add_Script_On_Custom" but it would be a lot easier just to make him drop a powerup, beings you would pick it up. Otherwise if I had not read what Canadacdn said, thats what I would have done, use the attach script that is.

Re: Grant Money on Death [message #279802 is a reply to message #279693] Sat, 18 August 2007 11:14 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Actually just do it in the "Destroyed" event of a script that has been attached to the character GameObject. Smile

HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: Grant Money on Death [message #279818 is a reply to message #279693] Sat, 18 August 2007 13:29 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
what should i put the id custom and parm

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #279942 is a reply to message #279818] Sun, 19 August 2007 09:06 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Death custom must match the add custom's script's. (and make a daves arrow with the JFW_Reflect_Custom script and use that for the id).

Re: Grant Money on Death [message #280142 is a reply to message #279942] Mon, 20 August 2007 10:22 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Ok i decided go to go the easy route and just use a spawn besides it didnt work server side

I used JFW_spawn_object_on_Death attached to the char and then made it spawn money crate with JFW_Grantmoney_powerup attached to it or what ever and it works fine in a pkg or when i host it but it dont work serevr side idk y

Dosent JFW_spawn_object_on_Death work server side ?
i also tried gfu_spawn_object_on_Death or what ever didnt workserver side ? what am i doing wrong ?

Edit: Does it does it have to do with ssgm


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Mon, 20 August 2007 10:23]

Report message to a moderator

Re: Grant Money on Death [message #280217 is a reply to message #279693] Mon, 20 August 2007 17:59 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Any 1 ?

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #280229 is a reply to message #279693] Mon, 20 August 2007 20:27 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
AND HALO2PAC to the rescue Dun dun da da!!!!
ok mr noobie halo is here to help .. sure i suck at some things... dont say life u geeks.....

------
ok heres what u need :
1. 1 of theses files depends on ur server.....
http://black-cell.net/downloads/index.php?act=category&id=6

2. http://black-cell.net/downloads/index.php?act=view&id=25
aka the plugin for making commands/ whatever attachments to whatever
3. an edited vesion of the lua file .. not the dll...
(attached below = luaplugin.lua)
4. a server .... a dedicated 1.....
http://www.fileshack.com/file.x?fid=700
serial = 06690000000000-ad more zeros till u hear beep. (if i put bad serial then plz correct me)
with the newest version of nightregualtor http://www.nightregulator.co.uk/
ssaow... from http://www.nightregulator.co.uk/

5. install server ...
6. configure server *.ini* files
7. install nightregulator and in nightreg options select UPDATE TO BETA VERSIONS.....
8 install ssaow ... dont edit config files / ini files
9. install ssgm edit config files / ini files

make sure u add 01=LuaPlugin.dll under plugins

10. put the stuff in the http://black-cell.net/downloads/index.php?act=view&id=25 file in .. well heres the readme text "Installation:
Unzip LuaPlugin.dll and LuaPlugin.lua into your server folder, the same place where scripts.dll is.
Open up ssgm.ini and search for "[Plugins]" WITHOUT a ; in front of it.
Add "##=LuaPlugin.dll" after "[Plugins]." Replace ## with the number of the plugin, if you have no plugins installed then it
would be "01." If you have 2 plugins installed then it would be "03," and so on.
Edit LuaPlugin.lua to create your own LUA scripts."


11. add ur code or have some 1 add it or i will when i make my own copy plz and ty.
luaplugin.lua can be edited with notepad and same with *ini files



um add comments / edits to anything i screwed up lol...
i have crapppy short term mem ... what was i saying?


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Grant Money on Death [message #280233 is a reply to message #279693] Mon, 20 August 2007 20:57 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
I do not need a plugin for a simple mod

http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Mon, 20 August 2007 21:08]

Report message to a moderator

Re: Grant Money on Death [message #280295 is a reply to message #279693] Tue, 21 August 2007 06:26 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
any simple command / action / whatever needs this plugin to work ....... but if u want it more difficult the TRY c++... cause only way to do it is to edit scripts.dll .. have fun

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Grant Money on Death [message #280313 is a reply to message #279693] Tue, 21 August 2007 09:10 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
lol i dont need to edit scripts.dll to make a char drop a spawn ...

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #280410 is a reply to message #279693] Tue, 21 August 2007 22:13 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
ok smarty pants then show us how u do it then...

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Grant Money on Death [message #280421 is a reply to message #279693] Wed, 22 August 2007 02:35 Go to previous messageGo to next message
SWNight is currently offline  SWNight
Messages: 138
Registered: June 2006
Karma: 0
Recruit
Attach this script to the PowerUp. But then you need to find out how to drop the powerup.

JFW_GrantMoney_Powerup (clone of M00_GrantMoney_Powerup)
ScoreAmount (how much cash to give)
Entire_Team (give to everyone)
Randomizer (randomize how much cash to give)

EDIT: You don't need to edit Scripts.dll just to drop a powerup! There is already a script for it but I dont know what it is.


cncnick13 wrote on Fri, 24 August 2007 23:05

ok but will it work for vista

Ryu wrote on Sat, 25 August 2007 00:31

No, It will make your pc explode!!11 The Bomb

cncnick13 wrote on Sat, 25 August 2007 00:32

what you mean

Jerad Gray wrote on Wed, 26 September 2007 10:00

too bad EA murdered Westwood.

http://img206.imageshack.us/img206/7905/swnightfi3.png

[Updated on: Wed, 22 August 2007 02:36]

Report message to a moderator

Re: Grant Money on Death [message #280457 is a reply to message #279693] Wed, 22 August 2007 10:12 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
its JFW_spawn_object_on_Death but it not working serverside

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #280492 is a reply to message #279693] Wed, 22 August 2007 14:04 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
in lua u have
function printf(...)
io.write(string.format(unpack(arg)))
end
function InputConsole(...)
Console_Input(string.format(unpack(arg)))
end


---
function OnPlayerJoin(pID, Nick)

end

function OnPlayerLeave(pID)

end

function OnHostMessage(ID, Type, Message)

end

function OnLevelLoaded()

end

function OnLevelEnded()

end

function OnConsoleOutput(Message)

end

function OnDDERecived(Message)

end

function OnObjectCreate(Object)



where would that go....


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Grant Money on Death [message #280508 is a reply to message #279693] Wed, 22 August 2007 14:57 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
bump

lmao i just switched powerups and it worked server side Blush


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Grant Money on Death [message #280605 is a reply to message #280492] Thu, 23 August 2007 03:55 Go to previous message
SWNight is currently offline  SWNight
Messages: 138
Registered: June 2006
Karma: 0
Recruit
halo2pac wrote on Wed, 22 August 2007 16:04

in lua u have....



Halo2pac STOP SPAMMING THIS FORUM WITH LUA. IF PEOPLE NEED HELP WITH LUA THEY WILL GO TO THE CORRECT SUPPORT FORUM. NOT THIS ONE!!


cncnick13 wrote on Fri, 24 August 2007 23:05

ok but will it work for vista

Ryu wrote on Sat, 25 August 2007 00:31

No, It will make your pc explode!!11 The Bomb

cncnick13 wrote on Sat, 25 August 2007 00:32

what you mean

Jerad Gray wrote on Wed, 26 September 2007 10:00

too bad EA murdered Westwood.

http://img206.imageshack.us/img206/7905/swnightfi3.png
Previous Topic: script or a way to lock vehicle spawns
Next Topic: Flying infantry powerup problem
Goto Forum:
  


Current Time: Wed May 15 07:25:09 MST 2024

Total time taken to generate the page: 0.01069 seconds