View previous topic :: View next topic |
Author |
Message |
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Mar 08, 2012 2:18 am Post subject: how to beep on memory record activate? |
|
|
Code: | addresslist = getAddressList()
description= [[( D ) Remove Food from market. Option 37]]
memoryrec = addresslist_getMemoryRecordByDescription(addresslist, description)
memoryrecord_onActivate(memoryrec, beeping)
function beeping()
beep()
beep()
beep()
end
|
I use this code and my game crashes?
I want to make a beep sound when the memoryrecord is activated.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Mar 08, 2012 3:45 am Post subject: |
|
|
At the time that memoryrecord_onActivate(memoryrec, beeping) is called "beeping" is not defined yet. Define the function first
About the game crashing and not ce, no idea
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Mar 08, 2012 4:27 am Post subject: |
|
|
Is there anything like memoryrecord_setActive ?
Like I want to set memoryrecord within the lua engine.
And I have another problem. I had set a hotkey with the memory record. Before lua scripting it was working properly. But now after this lua script my hotkey is not working and even I am unable to select the cheat script manually using mouse?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Mar 08, 2012 5:31 am Post subject: |
|
|
memoryrecord_freeze is what you need
About onActivate routine:
The function called takes 3 parameters (memoryrecord, before, currentstate), and is executed twice when clicked (once before activating, once after)
You must return true in that function
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
wzslrb How do I cheat? Reputation: 0
Joined: 10 Feb 2023 Posts: 2
|
Posted: Fri Feb 10, 2023 7:44 am Post subject: |
|
|
Try This
Code: |
playSound(findTableFile('Activate'))
|
|
|
Back to top |
|
|
|