Peace and Protection forum
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Slap!
snow
Junior Member
**




Posts: 16
Registered: 17-1-2010
Member Is Offline


[*] posted on 3-11-2019 at 23:59
Slap!


Hi there,

Thanks for keeping this project!

My question is.. there is any option to integrate Slap! button into the pnp?
View user's profile View All Posts By User
kap
PnP Developer
***




Posts: 54
Registered: 6-8-2015
Member Is Offline


[*] posted on 4-11-2019 at 13:43


There's no slap! in the PnP popups. It's trivial to add the standard mIRC slap! into PnP files. Or you could script an add-on that does this!
View user's profile View All Posts By User
kap
PnP Developer
***




Posts: 54
Registered: 6-8-2015
Member Is Offline


[*] posted on 4-11-2019 at 16:29


1. Save the following as slap.ppa in %appdata%\mIRC\addons
2. Load the slap addon using the PnP menu > Addons > More... interface

Code:
; #= ppslap -rs ; ######################################## ; Peace and Protection ; PnP Slap! (standard addon) ; ######################################## #.ppa.info off [addon] name=Slap! group=Extras popup=Slap! author=acvxqs version=1.00 url= email= id=ppslap ppver=4.22 [files] 1=slap.ppa [notes] 1=Adds the default trout slap to PnP. [nicklist] 1=Slap!:me slaps $$1 around a bit with a large trout #.ppa.info end on *:LOAD:{ ; PnP check if (!$_ispnp) { echo 4 -ati2 *** This addon requires Peace and Protection by pai to use. echo 4 -ati2 *** You can download Peace and Protection at http://www.kristshell.net/pnp/ .timer -mio 1 0 .unload -rs " $+ $script $+ " halt } ; Invalid load method check if (!$istok($_cfgx(addons,ids),$readini($script,n,addon,id),32)) { .timer -mio 1 0 .unload -rs " $+ $script $+ " dispa Unloading ' $+ $script $+ ' $chr(40) $+ addon is not properly loaded; use /addon to load it $+ $chr(41) halt } }
View user's profile View All Posts By User
snow
Junior Member
**




Posts: 16
Registered: 17-1-2010
Member Is Offline


[*] posted on 5-11-2019 at 02:10


Hi there,

Many thanks! Works great!!!


[Edited on 5-11-2019 at 01:13 by snow]
View user's profile View All Posts By User
snow
Junior Member
**




Posts: 16
Registered: 17-1-2010
Member Is Offline


[*] posted on 11-4-2020 at 23:36


Hi there again!

One question: is there posible to move Slap! button from Misc. right under X options?

View user's profile View All Posts By User
kap
PnP Developer
***




Posts: 54
Registered: 6-8-2015
Member Is Offline


[*] posted on 12-4-2020 at 09:38


Sure. You would have to take out the [nicklist] portion and define a menu nicklist.

Attention: be sure to unload SLAP.PPA first, make the changes in the SLAP.PPA file, then install the addon again!

Code:
; #= ppslap -rs ; ######################################## ; Peace and Protection ; PnP Slap! (standard addon) ; ######################################## #.ppa.info off [addon] name=Slap! group=Extras popup=Slap! author=acvxqs version=1.00 url= email= id=ppslap ppver=4.22 [files] 1=slap.ppa [notes] 1=Adds the default trout slap to PnP. #.ppa.info end on *:LOAD:{ ; PnP check if (!$_ispnp) { echo 4 -ati2 *** This addon requires Peace and Protection by pai to use. echo 4 -ati2 *** You can download Peace and Protection at http://www.kristshell.net/pnp/ .timer -mio 1 0 .unload -rs " $+ $script $+ " halt } ; Invalid load method check if (!$istok($_cfgx(addons,ids),$readini($script,n,addon,id),32)) { .timer -mio 1 0 .unload -rs " $+ $script $+ " dispa Unloading ' $+ $script $+ ' $chr(40) $+ addon is not properly loaded; use /addon to load it $+ $chr(41) halt } } menu nicklist { Slap!:me slaps $$1 around a bit with a large trout }


Whether it is below X, I can't tell. If you've loaded X before SLAP it will, otherwise it will be above...

[Edited on 12-4-2020 at 08:38 by kap]

[Edited on 12-4-2020 at 09:35 by kap]
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2017 The XMB Group