se7enet purgatorio

Page 1 of 6 12345>Last »
Topic Options
Rate This Topic
#18100 - 09/04/08 08:57 PM Want a custom feature?
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
If you want a custom feature made free of charge post here. Give me full details, like write me a story all about it. I will see what I can do. I would then email you the scripts, and you can choose if you want the others on here to use them also.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#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
#18125 - 09/07/08 06:15 AM Re: Want a custom feature? [Re: Justas]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
EDIT:

http://dragon.se7enet.com/mods/index.php?do=file&id=207


Edited by basleijser (09/07/08 06:35 AM)

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.. \:D
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
#18130 - 09/07/08 09:26 AM Re: Want a custom feature? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
In the death function, check if monsterrow id equals 5 and if quest is started, then add +1 to the ratkill field.
_________________________
MasterFayt - Amara 5 - Manas - Banar

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
#18132 - 09/07/08 11:39 AM Re: Want a custom feature? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
No Prob... NEXT!
_________________________
MasterFayt - Amara 5 - Manas - Banar

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.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

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
#18154 - 09/08/08 08:35 AM Re: Want a custom feature? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Because anman is a poopy head.

You need to define the babblebox coding in your lib.php, then in your template use {{babblebox}}.
_________________________
MasterFayt - Amara 5 - Manas - Banar

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:

 Code:
"rightnav"=>parsetemplate($rightnav,$userrow),
"leftnav"=>parsetemplate($leftnav,$userrow),


Replace with:

 Code:
"rightnav"=>parsetemplate($rightnav,$userrow,$controlrow),
"leftnav"=>parsetemplate($leftnav,$userrow,$controlrow),


Now open rightnav or leftnav.php and paste the following code somewhere:

 Code:
<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
#18159 - 09/08/08 10:43 AM Re: Want a custom feature? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Exactly. lib.php controls what goes into those templates. Once you define them, it's easy to put in.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 6 12345>Last »


Hop to:

se7enet

Barack Obama Logo