#18124 - 09/07/08 05:49 AM
Re: Want a custom feature?
[Re: Fayt]
|
Justas
Corn Flakes
Registered: 08/30/08
Posts: 63
|
Offline
|
|
I need moderators member class. Moderators wouldn't be able to access Admin Panel, they would only post news, (un)ban users, delete bablebox posts..
Sorry for my very bad English and Thanks.. Justas
|
|
Top
|
|
|
#18127 - 09/07/08 06:39 AM
Re: Want a custom feature?
[Re: gamefreak888]
|
Justas
Corn Flakes
Registered: 08/30/08
Posts: 63
|
Offline
|
|
Oh.. I didn't saw that mod..
|
|
Top
|
|
|
#18128 - 09/07/08 06:49 AM
Re: Want a custom feature?
[Re: Justas]
|
Justas
Corn Flakes
Registered: 08/30/08
Posts: 63
|
Offline
|
|
Oh you made a new mod.. Thanks very much..
Edited by Justas (09/07/08 06:49 AM)
|
|
Top
|
|
|
#18129 - 09/07/08 07:32 AM
Re: Want a custom feature?
[Re: Justas]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
@Fayt,
I'd like the following custom feature:
Very simple mission script, player needs to kill ~ monsters, but not just monsters: rats. Let's say the monster ID number of a rat is 5.
How do I do this?
Perhaps a function in fight.php that checks whether you're doing the "Kill 10 rats" quest (new field in users table: Q1, at the accept quest page a simple update query: SET Q1=1) and that updates the number of rats you killed since you started that quest (if monsterid = 5, set ratskilled=ratskilled+1, with 'ratskilled' as a new field)?
Thanks in advance
Edited by basleijser (09/07/08 07:33 AM)
|
|
Top
|
|
|
#18131 - 09/07/08 09:42 AM
Re: Want a custom feature?
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Ok thanks
|
|
Top
|
|
|
#18143 - 09/08/08 01:07 AM
Re: Want a custom feature?
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Ok I've another problem.
How can I place the babblebox in the rightnav or leftnav? I've tried everything, copying babblebox scripts to lib.php in the display function, copying the iframe script into leftnav.php or rightnav.php, but I just can't get it to work.
|
|
Top
|
|
|
#18148 - 09/08/08 02:29 AM
Re: Want a custom feature?
[Re: gamefreak888]
|
AnmanIndustries
Cookie Crisp
   
Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth
|
Offline
|
|
Theres actually a tone of threads regarding that.
|
|
Top
|
|
|
#18149 - 09/08/08 03:30 AM
Re: Want a custom feature?
[Re: AnmanIndustries]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Ok I did a search in the Dragon Knight forums with the keywords "babble", "babblebox", "chat" and "chatbox" and the only result I got was this topic...
|
|
Top
|
|
|
#18156 - 09/08/08 09:53 AM
Re: Want a custom feature?
[Re: Fayt]
|
gamefreak888
Rice Krispies
Registered: 09/06/07
Posts: 215
|
Offline
|
|
Finally managed to do it 
It's very easy -.-'
Open LIB.PHP, find:
"rightnav"=>parsetemplate($rightnav,$userrow),
"leftnav"=>parsetemplate($leftnav,$userrow),
Replace with:
"rightnav"=>parsetemplate($rightnav,$userrow,$controlrow),
"leftnav"=>parsetemplate($leftnav,$userrow,$controlrow),
Now open rightnav or leftnav.php and paste the following code somewhere:
<iframe src="index.php?do=babblebox" name=\"sbox\" width=\"100%\" height=\"250\" frameborder=\"0\" id=\"bbox\">
Your browser does not support iframes. Your browser must be gay. So upgrade to a new browser (we recommend Firefox) today!</iframe>
And you're done.
Edited by basleijser (09/08/08 09:53 AM)
|
|
Top
|
|
|
|
|