Items
Required Items
Spray Can
Required for creating graffiti to mark gang territory.
['spray'] = {
['name'] = 'spray',
['label'] = 'Spray',
['weight'] = 10,
['type'] = 'item',
['image'] = 'spray.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Spray can for gang graffiti'
}
Spray Remover
Used to remove enemy gang graffiti from walls.
['spray_remover'] = {
['name'] = 'spray_remover',
['label'] = 'Spray Remover',
['weight'] = 10,
['type'] = 'item',
['image'] = 'spray_remover.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Remove graffiti from walls'
}
Usage
Creating Graffiti
- Equip a spray can
- Use command:
/spray <word>(maximum 9 characters) - Aim at a flat wall surface
- Follow the progress bar to complete the graffiti
- Earn 20 points for your gang
Removing Graffiti
- Equip a spray remover
- Stand near enemy graffiti
- Use the spray remover item
- Follow the progress bar to remove the graffiti
Spray Configuration
-- Spray persistence (hours)
Config.sprayPersist = 2
-- Time to create graffiti (milliseconds)
Config.progressBarDuration = 20000
-- Time to remove graffiti (milliseconds)
Config.sprayRemoveDuration = 20000
-- Blacklisted words (cannot be used in graffiti)
Config.blacklist = {'word1', 'word2', 'word3'}
Drug Items
The script supports selling various drugs to NPCs. Configure allowed drugs in the configuration:
AO.allowedDrugs = {'weed_white-widow', 'cocaine', 'lsd'}
Make sure these items exist in your inventory system for the drug dealing feature to work.
[!TIP] You can find spray can and spray remover images in the items gallery at https://items.bit-code.dev/