Autor |
Wiadomość |
|
derred
Administrator
Dołączył: 07 Cze 2006
Posty: 64
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Pon 14:44, 09 Paź 2006 Temat postu: Alkohole |
|
|
Jak wiecie alkohole nie działają. Trzeba wymyślić dla nich jakąś funkcję. Oto moja propozycja:
Wypijając napój o zawartości alkoholu x%:
- masz x% szansy na to, że twoja siła wzrośnie o 1
- masz 100% - x%, że stracisz 2 punkty zręczności
Jak macie jakieś propozycję, albo chcecie rozbudować mój pomysł to piszcie w tym temacie.
Post został pochwalony 0 razy |
|
|
Powrót do góry |
|
|
 |
|
plit
Dołączył: 01 Wrz 2006
Posty: 25
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Wto 4:35, 10 Paź 2006 Temat postu: |
|
|
Najlepiej pod stol
Case 'lightbeer':
if ($Player['hpmodifier'] < 0 || $Player['agilitymodifier'] < 0 || $Player['strengthmodifier'] < 0) {
////
break;
}
$hp_mod = ceil( rand(5, 15) * ($Player['hpmax'] - $Player['hpmodifier']*2) ) / 100;
$Player['hpmodifier'] += $hp_mod;
$Player['hpmax'] += $hp_mod;
if ($Player['hp'] < $Player['hpmax'])
{
$Player['hp'] += ceil(rand(4, 13) * ($Player['hpmax'] - $Player['hpmodifier']) ) / 100;
if ($Player['hp'] > $Player['hpmax']) $Player['hp'] = $Player['hpmax'];
}
if ($Player['agility'] + $Player['strength'] < $Player['hpmodifier'] || rand(0,6)< 2 {
$Player['hp'] = 1;
$Player['mp'] = 1;
$Player['mpmodifier'] = -$Player['mpmax']/2;
$Player['hpmodifier'] = -$Player['hpmax']/rand(1,3);
$Player['agilitymodifier'] = -$Player['agility'];
$Player['strengthmodifier'] = -$Player['strength']/2;
$db->sql_query("INSERT INTO `galaxy_chat` (`from` , `message`) VALUES ('<font color=\"red\">Barman</font>', '<font color=\"yellow\">" . $Player['login'] . " lezy nieprzytomny pod barem w " . $Player['planet'] ."</font>')");
$db->sql_query("
UPDATE `${prefix}users`
SET
`hp`='".$Player['hp']."',
`hpmodifier`='".$Player['hpmodifier']."',
`mp`='".$Player['mp']."',
`mpmodifier`='".$Player['mpmodifier']."',
`strengthmodifier`='".$Player['strengthmodifier']."',
`agilitymodifier`='".$Player['agilitymodifier']."'
WHERE `login`='".$login."' LIMIT 1;");
}
else
{
$db->sql_query("UPDATE `${prefix}users` SET `hpmodifier`='".$Player['hpmodifier']."',`hp`='".$Player['hp']."' WHERE `login`='".$login."' LIMIT 1;");
}
if ( 0 >= (-- $Equipment[$id]['count']) )
{
$db->sql_query("DELETE FROM `${prefix}equipment` WHERE `id`='".$id."' AND `owner`='".$login."' LIMIT 1;");
}
else
{
$db->sql_query("UPDATE `${prefix}equipment` SET `count`='".$Equipment[$id]['count']."' WHERE `id`='".$id."' AND `owner`='".$login."' LIMIT 1;");
}
break;
Post został pochwalony 0 razy |
|
|
Powrót do góry |
|
|
derred
Administrator
Dołączył: 07 Cze 2006
Posty: 64
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Wto 10:10, 10 Paź 2006 Temat postu: |
|
|
Wrzuciłeś stary kod, a ja chcę stworzyć coś nowego, a nie żeby alkohol na każdym GF działał tak samo.
Post został pochwalony 0 razy |
|
|
Powrót do góry |
|
|
|
|
Możesz pisać nowe tematy Możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
fora.pl - załóż własne forum dyskusyjne za darmo
|
|