DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • January 20, 2018, 01:19:02 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Dark Horse Tavern's EXAMINE players  (Read 2153 times)
0 Members and 1 Guest are viewing this topic.
Pointdexter
Guest
« on: March 25, 2004, 10:38:06 PM »

Right now it is coded that the price to check on a person is 200 gold, how would i do it to make it charge according to your lvl?
Logged
Drenac
Guest
« Reply #1 on: March 26, 2004, 03:38:44 PM »

Do the following to make it so the gold needed is your level multiplied by 100....adjust the line which calculates $goldToSearch to suit your needs...

darkhorse.php
------------------------
after
$session[user][specialinc]="darkhorse.php";

add...
$goldToSearch = $session['user']['level'] * 100;

replace...
if ($session[user][gold]>=100){

with
if ($session[user][gold]>=$goldToSearch){

If your current max is indeed 200, then you'll want to search for the comparison with 200, not with 100...but 100 is the stock 0.9.7 setting.

Cheers! ~Drenac  Cool
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
16 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search