Yes, I'm not joking. Chatgpt is able to scripting. Of course it's not rly the complex one but it works.
Here is the code:
prontera,140,140,4 script Healer 4_F_HILDA,{
if (getgmlevel() >= 1) { // nur für GMs verfügbar
mes "[Healer]";
mes "Hallo, wie kann ich dir helfen?";
next;
if (select("Ich möchte geheilt werden.") == 1) {
mes "[Healer]";
mes "Klar, ich werde dich heilen!";
heal 100,100; // HP und SP heilen
close2;
}
} else {
mes "[Healer]";
mes "Es tut mir leid, ich kann dir nicht helfen.";
close2;
}
}
OnInit:
setarray .mobid, 383; // Sprite-ID des Healers
setarray .mobx, 140; // X-Koordinate des Healers
setarray .moby, 140; // Y-Koordinate des Healers
setarray .mobs, 4; // Richtung des Healers
setarray .mobby, 0; // Mobspawn-Optionen
spawnnpc .mobid[rand(0, getarraysize(.mobid)-1)], .mobx[rand(0, getarraysize(.mobx)-1)], .moby[rand(0, getarraysize(.moby)-1)], .mobs[rand(0, getarraysize(.mobs)-1)], "", .mobby[rand(0, getarraysize(.mobby)-1)], 0, 0, 0, 0;
end;
Rynbef~