Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Monster Generator, Niewiem jak zamieścić
Zonni
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 17.09.2008

Ostrzeżenie: (0%)
-----


Proszę oto mój formularz :

Kod
<form action="configmonstergen.php" method="get">
Monster Name <br>
<input type="text" name="monster_name"><br>
Description <br>
<input type="text" name="description"><br>
Race <br>
<input type="text" name="race"><br>
experience <br>
<input type="text" name="experience"><br>
speed <br>
<input type="text" name="speed"><br>
manacost <br>
<input type="text" name="manacost"><br>
health <br>
<input type="text" name="health"><br>
look <br>
<input type="text" name="look"><br>
corpse <br>
<input type="text" name="corpse"><br>
attack <br>
<input type="text" name="attack"><br>
defense <br>
<input type="text" name="defense"><br>
summonable <br>
<input type="text" name="summonable"><br>
attackable <br>
<input type="text" name="attackable"><br>
hostile <br>
<input type="text" name="hostile"><br>
illusionable <br>
<input type="text" name="illusionable"><br>
convinceable <br>
<input type="text" name="convinceable"><br>
canpushitems <br>
<input type="text" name="canpushitems"><br>
canpushcreatures <br>
<input type="text" name="canpushcreatures"><br>
targetdistance <br>
<input type="text" name="targetdistance"><br>
pushable <br>
<input type="text" name="pushable"><br>
runonhealth <br>
<input type="text" name="runonhealth"><br>
attack_name <br>
<input type="text" name="attack_name"><br>
interval <br>
<input type="text" name="interval"><br>
skill <br>
<input type="text" name="skill"><br>
attack_value <br>
<input type="text" name="attack_value"><br>
attack_value2 <br>
<input type="text" name="attack_value2"><br>
interval2 <br>
<input type="text" name="interval2"><br>
chance <br>
<input type="text" name="chance"><br>
range <br>
<input type="text" name="range"><br>
min <br>
<input type="text" name="min"><br>
max <br>
<input type="text" name="max"><br>
attribute_key <br>
<input type="text" name="attribute_key"><br>
defenses_armor <br>
<input type="text" name="defenses_armor"><br>
defense2 <br>
<input type="text" name="defense2"><br>
defense_name <br>
<input type="text" name="defense_name"><br>
interval3 <br>
<input type="text" name="interval3"><br>
chance3 <br>
<input type="text" name="chance3"><br>
speedchange <br>
<input type="text" name="speedchange"><br>
duration <br>
<input type="text" name="duration"><br>
attribute_key2 <br>
<input type="text" name="attribute_key2"><br>
value <br>
<input type="text" name="value"><br>
value2 <br>
<input type="text" name="value2"><br>
immunity_physical <br>
<input type="text" name="immunity_physical"><br>
immunity_energy <br>
<input type="text" name="immunity_energy"><br>
immunity_fire <br>
<input type="text" name="immunity_fire"><br>
immunity_poison <br>
<input type="text" name="immunity_poison"><br>
immunity_lifedrain <br>
<input type="text" name="immunity_lifedrain"><br>
immunity_paralyze <br>
<input type="text" name="immunity_paralyze"><br>
immunity_outfit <br>
<input type="text" name="immunity_outfit"><br>
immunity_drunk <br>
<input type="text" name="immunity_drunk"><br>
immunity_invisible <br>
<input type="text" name="immunity_invisible"><br>
<button type="submit"> wyslij </BUTTON>
</form>




i config

Kod
<?
$monster_name = $_GET['monster_name'];
$description = $_GET['description'];
$race = $_GET['race'];
$experience = $_GET['experience'];
$speed = $_GET['speed'];
$manacost = $_GET['manacost'];
$health = $_GET['health'];
$look = $_GET['look'];
$corpse = $_GET['corpse'];
$attack = $_GET['attack'];
$defense = $_GET['defense'];
$summonable = $_GET['summonable'];
$attackable = $_GET['attackable'];
$hostile = $_GET['hostile'];
$illusionable = $_GET['illusionable'];
$convinceable = $_GET['convinceable'];
$canpushitems = $_GET['canpushitems'];
$canpushcreatures = $_GET['canpushcreatures'];
$targetdistance = $_GET['targetdistance'];
$pushable = $_GET['pushable'];
$runonhealth = $_GET['runonhealth'];
$attack_name = $_GET['attack_name'];
$interval = $_GET['interval'];
$skill = $_GET['skill'];
$attack_value = $_GET['attack_value'];
$attack_value2 = $_GET['attack_value2'];
$interval2 = $_GET['interval2'];
$chance = $_GET['chance'];
$range = $_GET['range'];
$min = $_GET['min'];
$max = $_GET['max'];
$attribute_key = $_GET['attribute_key'];
$defenses_armor = $_GET['defenses_armor'];
$defense2 = $_GET['defense2'];
$defense_name = $_GET['defense_name'];
$interval3 = $_GET['interval3'];
$chance3 = $_GET['chance3'];
$speedchange = $_GET['speedchange'];
$duration = $_GET['duration'];
$attribute_key2 = $_GET['attribute_key2'];
$value = $_GET['value'];
$value2 = $_GET['value2'];
$immunity_physical = $_GET['immunity_physical'];
$immunity_energy = $_GET['immunity_energy'];
$immunity_fire = $_GET['immunity_fire'];
$immunity_poison = $_GET['immunity_poison'];
$immunity_lifedrain = $_GET['immunity_lifedrain'];
$immunity_paralyze = $_GET['immunity_paralyze'];
$immunity_outfit = $_GET['immunity_outfit'];
$immunity_drunk = $_GET['immunity_drunk'];
$immunity_invisible = $_GET['immunity_invisible'];

?>



I chodzi mi tutaj o umieszczenie danych z formularza w takim czymś :
Kod
[size="2"]

<?xml version="1.0" encoding="UTF-8"?>

<monster name="$monster_name" nameDescription="$description" race="$race" experience="experience" speed="$speed" manacost="$manacost">

<health now="$health" max="$health"/>

<look type="$look" head="0" body="0" legs="0" feet="0" corpse="$corpse"/>

<targetchange interval="2000" chance="5"/>

<strategy attack="$attack" defense="$defense"/>

<flags>

<flag summonable="$summonable"/>

<flag attackable="$attackable"/>

<flag hostile="$hostile"/>

<flag illusionable="$illusionable"/>

<flag convinceable="$convinceable"/>

<flag pushable="$pushable"/>

<flag canpushitems="$canpushitems"/>

<flag canpushcreatures="$canpushcreatures"/>

<flag targetdistance="$targetdistance"/>

<flag runonhealth="$runonhealth"/>

</flags>

<attacks>

<attack name="$attack_name" interval="$interval" skill="$skill" attack="$attack_value"/>

<attack name="$attack_name2" interval="$interval2" chance="$chance" range="$range" min="-$min" max="-max">

<attribute key="$attribute_key" value="$value2"/>

</attack>

</attacks>

<defenses armor="50" defense="65">

<defense name="speed" interval="1000" chance="7" speedchange="900" duration="8000">

<attribute key="areaEffect" value="$value"/>

</defense>

</defenses>

<immunities>

<immunity physical="$immunity_physical"/>

<immunity energy="$immunity_energy"/>

<immunity fire="$immunity_fire"/>

<immunity poison="$immunity_poison"/>

<immunity lifedrain="$immunity_lifedrain"/>

<immunity paralyze="$immunity_paralyze"/>

<immunity outfit="$immunity_outfit"/>

<immunity drunk="$immunity_drunk"/>

<immunity invisible="$immunity_invisible"/>

</immunities>

</monster>

[/size]









Proszę o poważne potraktowanie tematu oraz odpowiedź z skryptem/skryptem + poprawione błędy winksmiley.jpg

Z góry dziękuję exclamation.gif
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 04:27